Skip to content

Commit

Permalink
feat(logging): update the api
Browse files Browse the repository at this point in the history
#### logging:v2

The following keys were added:
- schemas.LogView.properties.schema.$ref (Total Keys: 1)
- schemas.TableFieldSchema (Total Keys: 7)
- schemas.TableSchema (Total Keys: 4)
  • Loading branch information
yoshi-automation committed Aug 31, 2021
1 parent 1dcf7df commit 55ba494
Show file tree
Hide file tree
Showing 8 changed files with 458 additions and 20 deletions.
13 changes: 13 additions & 0 deletions docs/dyn/logging_v2.billingAccounts.buckets.views.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,19 @@ <h3>Method Details</h3>
&quot;description&quot;: &quot;A String&quot;, # Describes this view.
&quot;filter&quot;: &quot;A String&quot;, # Filter that restricts which log entries in a bucket are visible in this view.Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE(&quot;projects/myproject&quot;) AND resource.type = &quot;gce_instance&quot; AND LOG_ID(&quot;stdout&quot;)
&quot;name&quot;: &quot;A String&quot;, # The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view
&quot;schema&quot;: { # Schema of a table containing logs. # Describes the schema of the logs stored in the bucket that are accessible via this view.This field is only populated for views in analytics-enabled buckets.
&quot;fields&quot;: [ # Describes the fields in a table.
{ # A field in TableSchema. The fields describe the static fields in the LogEntry. Any dynamic fields generated by the customer in fields like labels and jsonPayload are not listed in the schema as they use a native JSON type field.
&quot;description&quot;: &quot;A String&quot;, # Optional. The field description.
&quot;fields&quot;: [ # Optional. Describes the nested schema fields if the type property is set to RECORD.
# Object with schema name: TableFieldSchema
],
&quot;mode&quot;: &quot;A String&quot;, # Optional. The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
&quot;name&quot;: &quot;A String&quot;, # Required. The field name corresponding to fields in the LogEntry.
&quot;type&quot;: &quot;A String&quot;, # Required. The field data type. Possible values include: STRING INTEGER (or INT64) FLOAT (or FLOAT64) BOOLEAN (or BOOL) TIMESTAMP RECORD (or STRUCT)Use of RECORD/STRUT indicates that the field contains a nested schema.
},
],
},
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the view.
}</pre>
</div>
Expand Down
69 changes: 67 additions & 2 deletions docs/dyn/logging_v2.billingAccounts.locations.buckets.views.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ <h2>Instance Methods</h2>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#create">create(parent, body=None, viewId=None, x__xgafv=None)</a></code></p>
<p class="firstline">Creates a view over log entries in a log bucket. A bucket may contain a maximum of 50 views.</p>
<p class="firstline">Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views.</p>
<p class="toc_element">
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes a view on a log bucket.</p>
Expand All @@ -100,7 +100,7 @@ <h3>Method Details</h3>

<div class="method">
<code class="details" id="create">create(parent, body=None, viewId=None, x__xgafv=None)</code>
<pre>Creates a view over log entries in a log bucket. A bucket may contain a maximum of 50 views.
<pre>Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views.

Args:
parent: string, Required. The bucket in which to create the view `&quot;projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]&quot;` For example:&quot;projects/my-project/locations/global/buckets/my-bucket&quot; (required)
Expand All @@ -112,6 +112,19 @@ <h3>Method Details</h3>
&quot;description&quot;: &quot;A String&quot;, # Describes this view.
&quot;filter&quot;: &quot;A String&quot;, # Filter that restricts which log entries in a bucket are visible in this view.Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE(&quot;projects/myproject&quot;) AND resource.type = &quot;gce_instance&quot; AND LOG_ID(&quot;stdout&quot;)
&quot;name&quot;: &quot;A String&quot;, # The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view
&quot;schema&quot;: { # Schema of a table containing logs. # Describes the schema of the logs stored in the bucket that are accessible via this view.This field is only populated for views in analytics-enabled buckets.
&quot;fields&quot;: [ # Describes the fields in a table.
{ # A field in TableSchema. The fields describe the static fields in the LogEntry. Any dynamic fields generated by the customer in fields like labels and jsonPayload are not listed in the schema as they use a native JSON type field.
&quot;description&quot;: &quot;A String&quot;, # Optional. The field description.
&quot;fields&quot;: [ # Optional. Describes the nested schema fields if the type property is set to RECORD.
# Object with schema name: TableFieldSchema
],
&quot;mode&quot;: &quot;A String&quot;, # Optional. The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
&quot;name&quot;: &quot;A String&quot;, # Required. The field name corresponding to fields in the LogEntry.
&quot;type&quot;: &quot;A String&quot;, # Required. The field data type. Possible values include: STRING INTEGER (or INT64) FLOAT (or FLOAT64) BOOLEAN (or BOOL) TIMESTAMP RECORD (or STRUCT)Use of RECORD/STRUT indicates that the field contains a nested schema.
},
],
},
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the view.
}

Expand All @@ -129,6 +142,19 @@ <h3>Method Details</h3>
&quot;description&quot;: &quot;A String&quot;, # Describes this view.
&quot;filter&quot;: &quot;A String&quot;, # Filter that restricts which log entries in a bucket are visible in this view.Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE(&quot;projects/myproject&quot;) AND resource.type = &quot;gce_instance&quot; AND LOG_ID(&quot;stdout&quot;)
&quot;name&quot;: &quot;A String&quot;, # The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view
&quot;schema&quot;: { # Schema of a table containing logs. # Describes the schema of the logs stored in the bucket that are accessible via this view.This field is only populated for views in analytics-enabled buckets.
&quot;fields&quot;: [ # Describes the fields in a table.
{ # A field in TableSchema. The fields describe the static fields in the LogEntry. Any dynamic fields generated by the customer in fields like labels and jsonPayload are not listed in the schema as they use a native JSON type field.
&quot;description&quot;: &quot;A String&quot;, # Optional. The field description.
&quot;fields&quot;: [ # Optional. Describes the nested schema fields if the type property is set to RECORD.
# Object with schema name: TableFieldSchema
],
&quot;mode&quot;: &quot;A String&quot;, # Optional. The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
&quot;name&quot;: &quot;A String&quot;, # Required. The field name corresponding to fields in the LogEntry.
&quot;type&quot;: &quot;A String&quot;, # Required. The field data type. Possible values include: STRING INTEGER (or INT64) FLOAT (or FLOAT64) BOOLEAN (or BOOL) TIMESTAMP RECORD (or STRUCT)Use of RECORD/STRUT indicates that the field contains a nested schema.
},
],
},
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the view.
}</pre>
</div>
Expand Down Expand Up @@ -175,6 +201,19 @@ <h3>Method Details</h3>
&quot;description&quot;: &quot;A String&quot;, # Describes this view.
&quot;filter&quot;: &quot;A String&quot;, # Filter that restricts which log entries in a bucket are visible in this view.Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE(&quot;projects/myproject&quot;) AND resource.type = &quot;gce_instance&quot; AND LOG_ID(&quot;stdout&quot;)
&quot;name&quot;: &quot;A String&quot;, # The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view
&quot;schema&quot;: { # Schema of a table containing logs. # Describes the schema of the logs stored in the bucket that are accessible via this view.This field is only populated for views in analytics-enabled buckets.
&quot;fields&quot;: [ # Describes the fields in a table.
{ # A field in TableSchema. The fields describe the static fields in the LogEntry. Any dynamic fields generated by the customer in fields like labels and jsonPayload are not listed in the schema as they use a native JSON type field.
&quot;description&quot;: &quot;A String&quot;, # Optional. The field description.
&quot;fields&quot;: [ # Optional. Describes the nested schema fields if the type property is set to RECORD.
# Object with schema name: TableFieldSchema
],
&quot;mode&quot;: &quot;A String&quot;, # Optional. The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
&quot;name&quot;: &quot;A String&quot;, # Required. The field name corresponding to fields in the LogEntry.
&quot;type&quot;: &quot;A String&quot;, # Required. The field data type. Possible values include: STRING INTEGER (or INT64) FLOAT (or FLOAT64) BOOLEAN (or BOOL) TIMESTAMP RECORD (or STRUCT)Use of RECORD/STRUT indicates that the field contains a nested schema.
},
],
},
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the view.
},
],
Expand Down Expand Up @@ -209,6 +248,19 @@ <h3>Method Details</h3>
&quot;description&quot;: &quot;A String&quot;, # Describes this view.
&quot;filter&quot;: &quot;A String&quot;, # Filter that restricts which log entries in a bucket are visible in this view.Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE(&quot;projects/myproject&quot;) AND resource.type = &quot;gce_instance&quot; AND LOG_ID(&quot;stdout&quot;)
&quot;name&quot;: &quot;A String&quot;, # The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view
&quot;schema&quot;: { # Schema of a table containing logs. # Describes the schema of the logs stored in the bucket that are accessible via this view.This field is only populated for views in analytics-enabled buckets.
&quot;fields&quot;: [ # Describes the fields in a table.
{ # A field in TableSchema. The fields describe the static fields in the LogEntry. Any dynamic fields generated by the customer in fields like labels and jsonPayload are not listed in the schema as they use a native JSON type field.
&quot;description&quot;: &quot;A String&quot;, # Optional. The field description.
&quot;fields&quot;: [ # Optional. Describes the nested schema fields if the type property is set to RECORD.
# Object with schema name: TableFieldSchema
],
&quot;mode&quot;: &quot;A String&quot;, # Optional. The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
&quot;name&quot;: &quot;A String&quot;, # Required. The field name corresponding to fields in the LogEntry.
&quot;type&quot;: &quot;A String&quot;, # Required. The field data type. Possible values include: STRING INTEGER (or INT64) FLOAT (or FLOAT64) BOOLEAN (or BOOL) TIMESTAMP RECORD (or STRUCT)Use of RECORD/STRUT indicates that the field contains a nested schema.
},
],
},
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the view.
}

Expand All @@ -226,6 +278,19 @@ <h3>Method Details</h3>
&quot;description&quot;: &quot;A String&quot;, # Describes this view.
&quot;filter&quot;: &quot;A String&quot;, # Filter that restricts which log entries in a bucket are visible in this view.Filters are restricted to be a logical AND of ==/!= of any of the following: originating project/folder/organization/billing account. resource type log idFor example:SOURCE(&quot;projects/myproject&quot;) AND resource.type = &quot;gce_instance&quot; AND LOG_ID(&quot;stdout&quot;)
&quot;name&quot;: &quot;A String&quot;, # The resource name of the view.For example:projects/my-project/locations/global/buckets/my-bucket/views/my-view
&quot;schema&quot;: { # Schema of a table containing logs. # Describes the schema of the logs stored in the bucket that are accessible via this view.This field is only populated for views in analytics-enabled buckets.
&quot;fields&quot;: [ # Describes the fields in a table.
{ # A field in TableSchema. The fields describe the static fields in the LogEntry. Any dynamic fields generated by the customer in fields like labels and jsonPayload are not listed in the schema as they use a native JSON type field.
&quot;description&quot;: &quot;A String&quot;, # Optional. The field description.
&quot;fields&quot;: [ # Optional. Describes the nested schema fields if the type property is set to RECORD.
# Object with schema name: TableFieldSchema
],
&quot;mode&quot;: &quot;A String&quot;, # Optional. The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
&quot;name&quot;: &quot;A String&quot;, # Required. The field name corresponding to fields in the LogEntry.
&quot;type&quot;: &quot;A String&quot;, # Required. The field data type. Possible values include: STRING INTEGER (or INT64) FLOAT (or FLOAT64) BOOLEAN (or BOOL) TIMESTAMP RECORD (or STRUCT)Use of RECORD/STRUT indicates that the field contains a nested schema.
},
],
},
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the view.
}</pre>
</div>
Expand Down
Loading

0 comments on commit 55ba494

Please sign in to comment.