Skip to content

Commit 8b4f6e8

Browse files
feat(logging): update the API
#### logging:v2 The following keys were added: - schemas.MetricDescriptorMetadata.properties.timeSeriesResourceHierarchyLevel.description - schemas.MetricDescriptorMetadata.properties.timeSeriesResourceHierarchyLevel.items.enum - schemas.MetricDescriptorMetadata.properties.timeSeriesResourceHierarchyLevel.items.enumDescriptions - schemas.MetricDescriptorMetadata.properties.timeSeriesResourceHierarchyLevel.items.type - schemas.MetricDescriptorMetadata.properties.timeSeriesResourceHierarchyLevel.type
1 parent 6cd2a2f commit 8b4f6e8

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

discovery/logging-v2.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8424,7 +8424,7 @@
84248424
}
84258425
}
84268426
},
8427-
"revision": "20240726",
8427+
"revision": "20240830",
84288428
"rootUrl": "https://logging.googleapis.com/",
84298429
"schemas": {
84308430
"AuditConfig": {
@@ -10209,6 +10209,25 @@
1020910209
"description": "The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.",
1021010210
"format": "google-duration",
1021110211
"type": "string"
10212+
},
10213+
"timeSeriesResourceHierarchyLevel": {
10214+
"description": "The scope of the timeseries data of the metric.",
10215+
"items": {
10216+
"enum": [
10217+
"TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED",
10218+
"PROJECT",
10219+
"ORGANIZATION",
10220+
"FOLDER"
10221+
],
10222+
"enumDescriptions": [
10223+
"Do not use this default value.",
10224+
"Scopes a metric to a project.",
10225+
"Scopes a metric to an organization.",
10226+
"Scopes a metric to a folder."
10227+
],
10228+
"type": "string"
10229+
},
10230+
"type": "array"
1021210231
}
1021310232
},
1021410233
"type": "object"

src/apis/logging/v2.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,6 +1356,10 @@ export namespace logging_v2 {
13561356
* The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.
13571357
*/
13581358
samplePeriod?: string | null;
1359+
/**
1360+
* The scope of the timeseries data of the metric.
1361+
*/
1362+
timeSeriesResourceHierarchyLevel?: string[] | null;
13591363
}
13601364
/**
13611365
* An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource's schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for "gce_instance" has labels "project_id", "instance_id" and "zone": { "type": "gce_instance", "labels": { "project_id": "my-project", "instance_id": "12345678901234", "zone": "us-central1-a" \}\}

0 commit comments

Comments
 (0)