Skip to content

Commit b4ab366

Browse files
feat(logging): update the api
#### logging:v2 The following keys were added: - schemas.LogMetric.properties.resourceName (Total Keys: 2)
1 parent 4893aa0 commit b4ab366

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

docs/dyn/logging_v2.projects.metrics.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ <h3>Method Details</h3>
162162
&quot;valueType&quot;: &quot;A String&quot;, # Whether the measurement is an integer, a floating-point number, etc. Some combinations of metric_kind and value_type might not be supported.
163163
},
164164
&quot;name&quot;: &quot;A String&quot;, # Required. The client-assigned metric identifier. Examples: &quot;error_count&quot;, &quot;nginx/requests&quot;.Metric identifiers are limited to 100 characters and can include only the following characters: A-Z, a-z, 0-9, and the special characters _-.,+!*&#x27;,()%/. The forward-slash character (/) denotes a hierarchy of name pieces, and it cannot be the first character of the name.This field is the [METRIC_ID] part of a metric resource name in the format &quot;projects/PROJECT_ID/metrics/METRIC_ID&quot;. Example: If the resource name of a metric is &quot;projects/my-project/metrics/nginx%2Frequests&quot;, this field&#x27;s value is &quot;nginx/requests&quot;.
165+
&quot;resourceName&quot;: &quot;A String&quot;, # Output only. The resource name of the metric: &quot;projects/[PROJECT_ID]/metrics/[METRIC_ID]&quot;
165166
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the metric.This field may not be present for older metrics.
166167
&quot;valueExtractor&quot;: &quot;A String&quot;, # Optional. A value_extractor is required when using a distribution logs-based metric to extract the values to record from a log entry. Two functions are supported for value extraction: EXTRACT(field) or REGEXP_EXTRACT(field, regex). The arguments are: field: The name of the log entry field from which the value is to be extracted. regex: A regular expression using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax) with a single capture group to extract data from the specified log entry field. The value of the field is converted to a string before applying the regex. It is an error to specify a regex that does not include exactly one capture group.The result of the extraction must be convertible to a double type, as the distribution always records double values. If either the extraction or the conversion to double fails, then those values are not recorded in the distribution.Example: REGEXP_EXTRACT(jsonPayload.request, &quot;.*quantity=(\d+).*&quot;)
167168
&quot;version&quot;: &quot;A String&quot;, # Deprecated. The API version that created or updated this metric. The v2 format is used by default and cannot be changed.
@@ -227,6 +228,7 @@ <h3>Method Details</h3>
227228
&quot;valueType&quot;: &quot;A String&quot;, # Whether the measurement is an integer, a floating-point number, etc. Some combinations of metric_kind and value_type might not be supported.
228229
},
229230
&quot;name&quot;: &quot;A String&quot;, # Required. The client-assigned metric identifier. Examples: &quot;error_count&quot;, &quot;nginx/requests&quot;.Metric identifiers are limited to 100 characters and can include only the following characters: A-Z, a-z, 0-9, and the special characters _-.,+!*&#x27;,()%/. The forward-slash character (/) denotes a hierarchy of name pieces, and it cannot be the first character of the name.This field is the [METRIC_ID] part of a metric resource name in the format &quot;projects/PROJECT_ID/metrics/METRIC_ID&quot;. Example: If the resource name of a metric is &quot;projects/my-project/metrics/nginx%2Frequests&quot;, this field&#x27;s value is &quot;nginx/requests&quot;.
231+
&quot;resourceName&quot;: &quot;A String&quot;, # Output only. The resource name of the metric: &quot;projects/[PROJECT_ID]/metrics/[METRIC_ID]&quot;
230232
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the metric.This field may not be present for older metrics.
231233
&quot;valueExtractor&quot;: &quot;A String&quot;, # Optional. A value_extractor is required when using a distribution logs-based metric to extract the values to record from a log entry. Two functions are supported for value extraction: EXTRACT(field) or REGEXP_EXTRACT(field, regex). The arguments are: field: The name of the log entry field from which the value is to be extracted. regex: A regular expression using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax) with a single capture group to extract data from the specified log entry field. The value of the field is converted to a string before applying the regex. It is an error to specify a regex that does not include exactly one capture group.The result of the extraction must be convertible to a double type, as the distribution always records double values. If either the extraction or the conversion to double fails, then those values are not recorded in the distribution.Example: REGEXP_EXTRACT(jsonPayload.request, &quot;.*quantity=(\d+).*&quot;)
232234
&quot;version&quot;: &quot;A String&quot;, # Deprecated. The API version that created or updated this metric. The v2 format is used by default and cannot be changed.
@@ -317,6 +319,7 @@ <h3>Method Details</h3>
317319
&quot;valueType&quot;: &quot;A String&quot;, # Whether the measurement is an integer, a floating-point number, etc. Some combinations of metric_kind and value_type might not be supported.
318320
},
319321
&quot;name&quot;: &quot;A String&quot;, # Required. The client-assigned metric identifier. Examples: &quot;error_count&quot;, &quot;nginx/requests&quot;.Metric identifiers are limited to 100 characters and can include only the following characters: A-Z, a-z, 0-9, and the special characters _-.,+!*&#x27;,()%/. The forward-slash character (/) denotes a hierarchy of name pieces, and it cannot be the first character of the name.This field is the [METRIC_ID] part of a metric resource name in the format &quot;projects/PROJECT_ID/metrics/METRIC_ID&quot;. Example: If the resource name of a metric is &quot;projects/my-project/metrics/nginx%2Frequests&quot;, this field&#x27;s value is &quot;nginx/requests&quot;.
322+
&quot;resourceName&quot;: &quot;A String&quot;, # Output only. The resource name of the metric: &quot;projects/[PROJECT_ID]/metrics/[METRIC_ID]&quot;
320323
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the metric.This field may not be present for older metrics.
321324
&quot;valueExtractor&quot;: &quot;A String&quot;, # Optional. A value_extractor is required when using a distribution logs-based metric to extract the values to record from a log entry. Two functions are supported for value extraction: EXTRACT(field) or REGEXP_EXTRACT(field, regex). The arguments are: field: The name of the log entry field from which the value is to be extracted. regex: A regular expression using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax) with a single capture group to extract data from the specified log entry field. The value of the field is converted to a string before applying the regex. It is an error to specify a regex that does not include exactly one capture group.The result of the extraction must be convertible to a double type, as the distribution always records double values. If either the extraction or the conversion to double fails, then those values are not recorded in the distribution.Example: REGEXP_EXTRACT(jsonPayload.request, &quot;.*quantity=(\d+).*&quot;)
322325
&quot;version&quot;: &quot;A String&quot;, # Deprecated. The API version that created or updated this metric. The v2 format is used by default and cannot be changed.
@@ -393,6 +396,7 @@ <h3>Method Details</h3>
393396
&quot;valueType&quot;: &quot;A String&quot;, # Whether the measurement is an integer, a floating-point number, etc. Some combinations of metric_kind and value_type might not be supported.
394397
},
395398
&quot;name&quot;: &quot;A String&quot;, # Required. The client-assigned metric identifier. Examples: &quot;error_count&quot;, &quot;nginx/requests&quot;.Metric identifiers are limited to 100 characters and can include only the following characters: A-Z, a-z, 0-9, and the special characters _-.,+!*&#x27;,()%/. The forward-slash character (/) denotes a hierarchy of name pieces, and it cannot be the first character of the name.This field is the [METRIC_ID] part of a metric resource name in the format &quot;projects/PROJECT_ID/metrics/METRIC_ID&quot;. Example: If the resource name of a metric is &quot;projects/my-project/metrics/nginx%2Frequests&quot;, this field&#x27;s value is &quot;nginx/requests&quot;.
399+
&quot;resourceName&quot;: &quot;A String&quot;, # Output only. The resource name of the metric: &quot;projects/[PROJECT_ID]/metrics/[METRIC_ID]&quot;
396400
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the metric.This field may not be present for older metrics.
397401
&quot;valueExtractor&quot;: &quot;A String&quot;, # Optional. A value_extractor is required when using a distribution logs-based metric to extract the values to record from a log entry. Two functions are supported for value extraction: EXTRACT(field) or REGEXP_EXTRACT(field, regex). The arguments are: field: The name of the log entry field from which the value is to be extracted. regex: A regular expression using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax) with a single capture group to extract data from the specified log entry field. The value of the field is converted to a string before applying the regex. It is an error to specify a regex that does not include exactly one capture group.The result of the extraction must be convertible to a double type, as the distribution always records double values. If either the extraction or the conversion to double fails, then those values are not recorded in the distribution.Example: REGEXP_EXTRACT(jsonPayload.request, &quot;.*quantity=(\d+).*&quot;)
398402
&quot;version&quot;: &quot;A String&quot;, # Deprecated. The API version that created or updated this metric. The v2 format is used by default and cannot be changed.
@@ -477,6 +481,7 @@ <h3>Method Details</h3>
477481
&quot;valueType&quot;: &quot;A String&quot;, # Whether the measurement is an integer, a floating-point number, etc. Some combinations of metric_kind and value_type might not be supported.
478482
},
479483
&quot;name&quot;: &quot;A String&quot;, # Required. The client-assigned metric identifier. Examples: &quot;error_count&quot;, &quot;nginx/requests&quot;.Metric identifiers are limited to 100 characters and can include only the following characters: A-Z, a-z, 0-9, and the special characters _-.,+!*&#x27;,()%/. The forward-slash character (/) denotes a hierarchy of name pieces, and it cannot be the first character of the name.This field is the [METRIC_ID] part of a metric resource name in the format &quot;projects/PROJECT_ID/metrics/METRIC_ID&quot;. Example: If the resource name of a metric is &quot;projects/my-project/metrics/nginx%2Frequests&quot;, this field&#x27;s value is &quot;nginx/requests&quot;.
484+
&quot;resourceName&quot;: &quot;A String&quot;, # Output only. The resource name of the metric: &quot;projects/[PROJECT_ID]/metrics/[METRIC_ID]&quot;
480485
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the metric.This field may not be present for older metrics.
481486
&quot;valueExtractor&quot;: &quot;A String&quot;, # Optional. A value_extractor is required when using a distribution logs-based metric to extract the values to record from a log entry. Two functions are supported for value extraction: EXTRACT(field) or REGEXP_EXTRACT(field, regex). The arguments are: field: The name of the log entry field from which the value is to be extracted. regex: A regular expression using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax) with a single capture group to extract data from the specified log entry field. The value of the field is converted to a string before applying the regex. It is an error to specify a regex that does not include exactly one capture group.The result of the extraction must be convertible to a double type, as the distribution always records double values. If either the extraction or the conversion to double fails, then those values are not recorded in the distribution.Example: REGEXP_EXTRACT(jsonPayload.request, &quot;.*quantity=(\d+).*&quot;)
482487
&quot;version&quot;: &quot;A String&quot;, # Deprecated. The API version that created or updated this metric. The v2 format is used by default and cannot be changed.
@@ -542,6 +547,7 @@ <h3>Method Details</h3>
542547
&quot;valueType&quot;: &quot;A String&quot;, # Whether the measurement is an integer, a floating-point number, etc. Some combinations of metric_kind and value_type might not be supported.
543548
},
544549
&quot;name&quot;: &quot;A String&quot;, # Required. The client-assigned metric identifier. Examples: &quot;error_count&quot;, &quot;nginx/requests&quot;.Metric identifiers are limited to 100 characters and can include only the following characters: A-Z, a-z, 0-9, and the special characters _-.,+!*&#x27;,()%/. The forward-slash character (/) denotes a hierarchy of name pieces, and it cannot be the first character of the name.This field is the [METRIC_ID] part of a metric resource name in the format &quot;projects/PROJECT_ID/metrics/METRIC_ID&quot;. Example: If the resource name of a metric is &quot;projects/my-project/metrics/nginx%2Frequests&quot;, this field&#x27;s value is &quot;nginx/requests&quot;.
550+
&quot;resourceName&quot;: &quot;A String&quot;, # Output only. The resource name of the metric: &quot;projects/[PROJECT_ID]/metrics/[METRIC_ID]&quot;
545551
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. The last update timestamp of the metric.This field may not be present for older metrics.
546552
&quot;valueExtractor&quot;: &quot;A String&quot;, # Optional. A value_extractor is required when using a distribution logs-based metric to extract the values to record from a log entry. Two functions are supported for value extraction: EXTRACT(field) or REGEXP_EXTRACT(field, regex). The arguments are: field: The name of the log entry field from which the value is to be extracted. regex: A regular expression using the Google RE2 syntax (https://github.com/google/re2/wiki/Syntax) with a single capture group to extract data from the specified log entry field. The value of the field is converted to a string before applying the regex. It is an error to specify a regex that does not include exactly one capture group.The result of the extraction must be convertible to a double type, as the distribution always records double values. If either the extraction or the conversion to double fails, then those values are not recorded in the distribution.Example: REGEXP_EXTRACT(jsonPayload.request, &quot;.*quantity=(\d+).*&quot;)
547553
&quot;version&quot;: &quot;A String&quot;, # Deprecated. The API version that created or updated this metric. The v2 format is used by default and cannot be changed.

googleapiclient/discovery_cache/documents/logging.v2.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8132,7 +8132,7 @@
81328132
}
81338133
}
81348134
},
8135-
"revision": "20240426",
8135+
"revision": "20240503",
81368136
"rootUrl": "https://logging.googleapis.com/",
81378137
"schemas": {
81388138
"AuditConfig": {
@@ -9576,6 +9576,11 @@
95769576
"description": "Required. The client-assigned metric identifier. Examples: \"error_count\", \"nginx/requests\".Metric identifiers are limited to 100 characters and can include only the following characters: A-Z, a-z, 0-9, and the special characters _-.,+!*',()%/. The forward-slash character (/) denotes a hierarchy of name pieces, and it cannot be the first character of the name.This field is the [METRIC_ID] part of a metric resource name in the format \"projects/PROJECT_ID/metrics/METRIC_ID\". Example: If the resource name of a metric is \"projects/my-project/metrics/nginx%2Frequests\", this field's value is \"nginx/requests\".",
95779577
"type": "string"
95789578
},
9579+
"resourceName": {
9580+
"description": "Output only. The resource name of the metric: \"projects/[PROJECT_ID]/metrics/[METRIC_ID]\" ",
9581+
"readOnly": true,
9582+
"type": "string"
9583+
},
95799584
"updateTime": {
95809585
"description": "Output only. The last update timestamp of the metric.This field may not be present for older metrics.",
95819586
"format": "google-datetime",

0 commit comments

Comments
 (0)