Skip to content

Commit 5bada7d

Browse files
feat(monitoring): update the API
#### monitoring:v1 The following keys were added: - schemas.ColumnSettings.properties.alignment.description - schemas.ColumnSettings.properties.alignment.enum - schemas.ColumnSettings.properties.alignment.enumDescriptions - schemas.ColumnSettings.properties.alignment.type - schemas.ColumnSettings.properties.displayName.description - schemas.ColumnSettings.properties.displayName.type - schemas.ColumnSettings.properties.thresholds.description - schemas.ColumnSettings.properties.thresholds.items.$ref - schemas.ColumnSettings.properties.thresholds.type #### monitoring:v3 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 The following keys were changed: - resources.projects.resources.timeSeries.methods.query.description - schemas.QueryTimeSeriesRequest.description - schemas.QueryTimeSeriesResponse.description
1 parent 0c3d25a commit 5bada7d

File tree

3 files changed

+58
-8
lines changed

3 files changed

+58
-8
lines changed

discovery/monitoring-v1.json

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@
753753
}
754754
}
755755
},
756-
"revision": "20240721",
756+
"revision": "20240829",
757757
"rootUrl": "https://monitoring.googleapis.com/",
758758
"schemas": {
759759
"Aggregation": {
@@ -1022,10 +1022,37 @@
10221022
"description": "The persistent settings for a table's columns.",
10231023
"id": "ColumnSettings",
10241024
"properties": {
1025+
"alignment": {
1026+
"description": "Optional. Whether the column should be left / middle / right aligned",
1027+
"enum": [
1028+
"CELL_ALIGNMENT_UNSPECIFIED",
1029+
"LEFT",
1030+
"CENTER",
1031+
"RIGHT"
1032+
],
1033+
"enumDescriptions": [
1034+
"No horizontal alignment specified; fall back to the default behavior. Label values are left aligned. Numeric values are right aligned.",
1035+
"Left-align",
1036+
"Center-align",
1037+
"Right-align"
1038+
],
1039+
"type": "string"
1040+
},
10251041
"column": {
10261042
"description": "Required. The id of the column.",
10271043
"type": "string"
10281044
},
1045+
"displayName": {
1046+
"description": "Optional. Display name of the column",
1047+
"type": "string"
1048+
},
1049+
"thresholds": {
1050+
"description": "Optional. The thresholds used to determine how the table cell should be rendered given the time series' current value.",
1051+
"items": {
1052+
"$ref": "Threshold"
1053+
},
1054+
"type": "array"
1055+
},
10291056
"visible": {
10301057
"description": "Required. Whether the column should be visible on page load.",
10311058
"type": "boolean"

discovery/monitoring-v3.json

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,7 +2114,7 @@
21142114
},
21152115
"query": {
21162116
"deprecated": true,
2117-
"description": "Queries time series using Monitoring Query Language.",
2117+
"description": "Queries time series by using Monitoring Query Language (MQL). We recommend using PromQL instead of MQL. For more information about the status of MQL, see the MQL deprecation notice (https://cloud.google.com/stackdriver/docs/deprecations/mql).",
21182118
"flatPath": "v3/projects/{projectsId}/timeSeries:query",
21192119
"httpMethod": "POST",
21202120
"id": "monitoring.projects.timeSeries.query",
@@ -2715,7 +2715,7 @@
27152715
}
27162716
}
27172717
},
2718-
"revision": "20240818",
2718+
"revision": "20240829",
27192719
"rootUrl": "https://monitoring.googleapis.com/",
27202720
"schemas": {
27212721
"Aggregation": {
@@ -4621,6 +4621,25 @@
46214621
"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.",
46224622
"format": "google-duration",
46234623
"type": "string"
4624+
},
4625+
"timeSeriesResourceHierarchyLevel": {
4626+
"description": "The scope of the timeseries data of the metric.",
4627+
"items": {
4628+
"enum": [
4629+
"TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED",
4630+
"PROJECT",
4631+
"ORGANIZATION",
4632+
"FOLDER"
4633+
],
4634+
"enumDescriptions": [
4635+
"Do not use this default value.",
4636+
"Scopes a metric to a project.",
4637+
"Scopes a metric to an organization.",
4638+
"Scopes a metric to a folder."
4639+
],
4640+
"type": "string"
4641+
},
4642+
"type": "array"
46244643
}
46254644
},
46264645
"type": "object"
@@ -5197,7 +5216,7 @@
51975216
},
51985217
"QueryTimeSeriesRequest": {
51995218
"deprecated": true,
5200-
"description": "The QueryTimeSeries request.",
5219+
"description": "The QueryTimeSeries request. For information about the status of Monitoring Query Language (MQL), see the MQL deprecation notice (https://cloud.google.com/stackdriver/docs/deprecations/mql).",
52015220
"id": "QueryTimeSeriesRequest",
52025221
"properties": {
52035222
"pageSize": {
@@ -5218,7 +5237,7 @@
52185237
},
52195238
"QueryTimeSeriesResponse": {
52205239
"deprecated": true,
5221-
"description": "The QueryTimeSeries response.",
5240+
"description": "The QueryTimeSeries response. For information about the status of Monitoring Query Language (MQL), see the MQL deprecation notice (https://cloud.google.com/stackdriver/docs/deprecations/mql).",
52225241
"id": "QueryTimeSeriesResponse",
52235242
"properties": {
52245243
"nextPageToken": {

src/apis/monitoring/v3.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,6 +1407,10 @@ export namespace monitoring_v3 {
14071407
* 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.
14081408
*/
14091409
samplePeriod?: string | null;
1410+
/**
1411+
* The scope of the timeseries data of the metric.
1412+
*/
1413+
timeSeriesResourceHierarchyLevel?: string[] | null;
14101414
}
14111415
/**
14121416
* A MetricRange is used when each window is good when the value x of a single TimeSeries satisfies range.min <= x <= range.max. The provided TimeSeries must have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE.
@@ -1767,7 +1771,7 @@ export namespace monitoring_v3 {
17671771
ruleGroup?: string | null;
17681772
}
17691773
/**
1770-
* The QueryTimeSeries request.
1774+
* The QueryTimeSeries request. For information about the status of Monitoring Query Language (MQL), see the MQL deprecation notice (https://cloud.google.com/stackdriver/docs/deprecations/mql).
17711775
*/
17721776
export interface Schema$QueryTimeSeriesRequest {
17731777
/**
@@ -1784,7 +1788,7 @@ export namespace monitoring_v3 {
17841788
query?: string | null;
17851789
}
17861790
/**
1787-
* The QueryTimeSeries response.
1791+
* The QueryTimeSeries response. For information about the status of Monitoring Query Language (MQL), see the MQL deprecation notice (https://cloud.google.com/stackdriver/docs/deprecations/mql).
17881792
*/
17891793
export interface Schema$QueryTimeSeriesResponse {
17901794
/**
@@ -6414,7 +6418,7 @@ export namespace monitoring_v3 {
64146418
}
64156419

64166420
/**
6417-
* Queries time series using Monitoring Query Language.
6421+
* Queries time series by using Monitoring Query Language (MQL). We recommend using PromQL instead of MQL. For more information about the status of MQL, see the MQL deprecation notice (https://cloud.google.com/stackdriver/docs/deprecations/mql).
64186422
*
64196423
* @param params - Parameters for request
64206424
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.

0 commit comments

Comments
 (0)