Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f8b95c0

Browse files
committedFeb 4, 2025
feat(monitoring): update the api
#### monitoring:v1 The following keys were added: - schemas.Scorecard.properties.breakdowns (Total Keys: 2) #### monitoring:v3 The following keys were added: - schemas.Criteria.properties.filter.type (Total Keys: 1)
1 parent 0a9b3f6 commit f8b95c0

File tree

4 files changed

+410
-9
lines changed

4 files changed

+410
-9
lines changed
 

‎docs/dyn/monitoring_v1.projects.dashboards.html

+384
Large diffs are not rendered by default.

‎docs/dyn/monitoring_v3.projects.snoozes.html

+12-6
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ <h3>Method Details</h3>
109109

110110
{ # A Snooze will prevent any alerts from being opened, and close any that are already open. The Snooze will work on alerts that match the criteria defined in the Snooze. The Snooze will be active from interval.start_time through interval.end_time.
111111
&quot;criteria&quot;: { # Criteria specific to the AlertPolicys that this Snooze applies to. The Snooze will suppress alerts that come from one of the AlertPolicys whose names are supplied. # Required. This defines the criteria for applying the Snooze. See Criteria for more information.
112-
&quot;policies&quot;: [ # The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation.
112+
&quot;filter&quot;: &quot;A String&quot;, # Optional. The filter string to match on Alert fields when silencing the alerts. It follows the standard https://google.aip.dev/160 syntax. A filter string used to apply the snooze to specific incidents that have matching filter values. Filters can be defined for snoozes that apply to one alerting policy. Filters must be a string formatted as one or more resource labels with specific label values. If multiple resource labels are used, then they must be connected with an AND operator. For example, the following filter applies the snooze to incidents that have an instance ID of 1234567890 and a zone of us-central1-a: resource.labels.instance_id=&quot;1234567890&quot; AND resource.labels.zone=&quot;us-central1-a&quot;
113+
&quot;policies&quot;: [ # The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation. Exactly 1 alert policy is required if filter is specified at the same time.
113114
&quot;A String&quot;,
114115
],
115116
},
@@ -131,7 +132,8 @@ <h3>Method Details</h3>
131132

132133
{ # A Snooze will prevent any alerts from being opened, and close any that are already open. The Snooze will work on alerts that match the criteria defined in the Snooze. The Snooze will be active from interval.start_time through interval.end_time.
133134
&quot;criteria&quot;: { # Criteria specific to the AlertPolicys that this Snooze applies to. The Snooze will suppress alerts that come from one of the AlertPolicys whose names are supplied. # Required. This defines the criteria for applying the Snooze. See Criteria for more information.
134-
&quot;policies&quot;: [ # The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation.
135+
&quot;filter&quot;: &quot;A String&quot;, # Optional. The filter string to match on Alert fields when silencing the alerts. It follows the standard https://google.aip.dev/160 syntax. A filter string used to apply the snooze to specific incidents that have matching filter values. Filters can be defined for snoozes that apply to one alerting policy. Filters must be a string formatted as one or more resource labels with specific label values. If multiple resource labels are used, then they must be connected with an AND operator. For example, the following filter applies the snooze to incidents that have an instance ID of 1234567890 and a zone of us-central1-a: resource.labels.instance_id=&quot;1234567890&quot; AND resource.labels.zone=&quot;us-central1-a&quot;
136+
&quot;policies&quot;: [ # The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation. Exactly 1 alert policy is required if filter is specified at the same time.
135137
&quot;A String&quot;,
136138
],
137139
},
@@ -160,7 +162,8 @@ <h3>Method Details</h3>
160162

161163
{ # A Snooze will prevent any alerts from being opened, and close any that are already open. The Snooze will work on alerts that match the criteria defined in the Snooze. The Snooze will be active from interval.start_time through interval.end_time.
162164
&quot;criteria&quot;: { # Criteria specific to the AlertPolicys that this Snooze applies to. The Snooze will suppress alerts that come from one of the AlertPolicys whose names are supplied. # Required. This defines the criteria for applying the Snooze. See Criteria for more information.
163-
&quot;policies&quot;: [ # The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation.
165+
&quot;filter&quot;: &quot;A String&quot;, # Optional. The filter string to match on Alert fields when silencing the alerts. It follows the standard https://google.aip.dev/160 syntax. A filter string used to apply the snooze to specific incidents that have matching filter values. Filters can be defined for snoozes that apply to one alerting policy. Filters must be a string formatted as one or more resource labels with specific label values. If multiple resource labels are used, then they must be connected with an AND operator. For example, the following filter applies the snooze to incidents that have an instance ID of 1234567890 and a zone of us-central1-a: resource.labels.instance_id=&quot;1234567890&quot; AND resource.labels.zone=&quot;us-central1-a&quot;
166+
&quot;policies&quot;: [ # The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation. Exactly 1 alert policy is required if filter is specified at the same time.
164167
&quot;A String&quot;,
165168
],
166169
},
@@ -195,7 +198,8 @@ <h3>Method Details</h3>
195198
&quot;snoozes&quot;: [ # Snoozes matching this list call.
196199
{ # A Snooze will prevent any alerts from being opened, and close any that are already open. The Snooze will work on alerts that match the criteria defined in the Snooze. The Snooze will be active from interval.start_time through interval.end_time.
197200
&quot;criteria&quot;: { # Criteria specific to the AlertPolicys that this Snooze applies to. The Snooze will suppress alerts that come from one of the AlertPolicys whose names are supplied. # Required. This defines the criteria for applying the Snooze. See Criteria for more information.
198-
&quot;policies&quot;: [ # The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation.
201+
&quot;filter&quot;: &quot;A String&quot;, # Optional. The filter string to match on Alert fields when silencing the alerts. It follows the standard https://google.aip.dev/160 syntax. A filter string used to apply the snooze to specific incidents that have matching filter values. Filters can be defined for snoozes that apply to one alerting policy. Filters must be a string formatted as one or more resource labels with specific label values. If multiple resource labels are used, then they must be connected with an AND operator. For example, the following filter applies the snooze to incidents that have an instance ID of 1234567890 and a zone of us-central1-a: resource.labels.instance_id=&quot;1234567890&quot; AND resource.labels.zone=&quot;us-central1-a&quot;
202+
&quot;policies&quot;: [ # The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation. Exactly 1 alert policy is required if filter is specified at the same time.
199203
&quot;A String&quot;,
200204
],
201205
},
@@ -235,7 +239,8 @@ <h3>Method Details</h3>
235239

236240
{ # A Snooze will prevent any alerts from being opened, and close any that are already open. The Snooze will work on alerts that match the criteria defined in the Snooze. The Snooze will be active from interval.start_time through interval.end_time.
237241
&quot;criteria&quot;: { # Criteria specific to the AlertPolicys that this Snooze applies to. The Snooze will suppress alerts that come from one of the AlertPolicys whose names are supplied. # Required. This defines the criteria for applying the Snooze. See Criteria for more information.
238-
&quot;policies&quot;: [ # The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation.
242+
&quot;filter&quot;: &quot;A String&quot;, # Optional. The filter string to match on Alert fields when silencing the alerts. It follows the standard https://google.aip.dev/160 syntax. A filter string used to apply the snooze to specific incidents that have matching filter values. Filters can be defined for snoozes that apply to one alerting policy. Filters must be a string formatted as one or more resource labels with specific label values. If multiple resource labels are used, then they must be connected with an AND operator. For example, the following filter applies the snooze to incidents that have an instance ID of 1234567890 and a zone of us-central1-a: resource.labels.instance_id=&quot;1234567890&quot; AND resource.labels.zone=&quot;us-central1-a&quot;
243+
&quot;policies&quot;: [ # The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation. Exactly 1 alert policy is required if filter is specified at the same time.
239244
&quot;A String&quot;,
240245
],
241246
},
@@ -258,7 +263,8 @@ <h3>Method Details</h3>
258263

259264
{ # A Snooze will prevent any alerts from being opened, and close any that are already open. The Snooze will work on alerts that match the criteria defined in the Snooze. The Snooze will be active from interval.start_time through interval.end_time.
260265
&quot;criteria&quot;: { # Criteria specific to the AlertPolicys that this Snooze applies to. The Snooze will suppress alerts that come from one of the AlertPolicys whose names are supplied. # Required. This defines the criteria for applying the Snooze. See Criteria for more information.
261-
&quot;policies&quot;: [ # The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation.
266+
&quot;filter&quot;: &quot;A String&quot;, # Optional. The filter string to match on Alert fields when silencing the alerts. It follows the standard https://google.aip.dev/160 syntax. A filter string used to apply the snooze to specific incidents that have matching filter values. Filters can be defined for snoozes that apply to one alerting policy. Filters must be a string formatted as one or more resource labels with specific label values. If multiple resource labels are used, then they must be connected with an AND operator. For example, the following filter applies the snooze to incidents that have an instance ID of 1234567890 and a zone of us-central1-a: resource.labels.instance_id=&quot;1234567890&quot; AND resource.labels.zone=&quot;us-central1-a&quot;
267+
&quot;policies&quot;: [ # The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation. Exactly 1 alert policy is required if filter is specified at the same time.
262268
&quot;A String&quot;,
263269
],
264270
},

‎googleapiclient/discovery_cache/documents/monitoring.v1.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@
753753
}
754754
}
755755
},
756-
"revision": "20241212",
756+
"revision": "20250125",
757757
"rootUrl": "https://monitoring.googleapis.com/",
758758
"schemas": {
759759
"Aggregation": {
@@ -2236,6 +2236,13 @@
22362236
"$ref": "Empty",
22372237
"description": "Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds."
22382238
},
2239+
"breakdowns": {
2240+
"description": "Optional. The collection of breakdowns to be applied to the dataset. A breakdown is a way to slice the data. For example, you can break down the data by region.",
2241+
"items": {
2242+
"$ref": "Breakdown"
2243+
},
2244+
"type": "array"
2245+
},
22392246
"dimensions": {
22402247
"description": "Optional. A dimension is a structured label, class, or category for a set of measurements in your data.",
22412248
"items": {

‎googleapiclient/discovery_cache/documents/monitoring.v3.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -2720,7 +2720,7 @@
27202720
}
27212721
}
27222722
},
2723-
"revision": "20250111",
2723+
"revision": "20250125",
27242724
"rootUrl": "https://monitoring.googleapis.com/",
27252725
"schemas": {
27262726
"Aggregation": {
@@ -3414,8 +3414,12 @@
34143414
"description": "Criteria specific to the AlertPolicys that this Snooze applies to. The Snooze will suppress alerts that come from one of the AlertPolicys whose names are supplied.",
34153415
"id": "Criteria",
34163416
"properties": {
3417+
"filter": {
3418+
"description": "Optional. The filter string to match on Alert fields when silencing the alerts. It follows the standard https://google.aip.dev/160 syntax. A filter string used to apply the snooze to specific incidents that have matching filter values. Filters can be defined for snoozes that apply to one alerting policy. Filters must be a string formatted as one or more resource labels with specific label values. If multiple resource labels are used, then they must be connected with an AND operator. For example, the following filter applies the snooze to incidents that have an instance ID of 1234567890 and a zone of us-central1-a: resource.labels.instance_id=\"1234567890\" AND resource.labels.zone=\"us-central1-a\" ",
3419+
"type": "string"
3420+
},
34173421
"policies": {
3418-
"description": "The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation.",
3422+
"description": "The specific AlertPolicy names for the alert that should be snoozed. The format is: projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[POLICY_ID] There is a limit of 16 policies per snooze. This limit is checked during snooze creation. Exactly 1 alert policy is required if filter is specified at the same time.",
34193423
"items": {
34203424
"type": "string"
34213425
},

0 commit comments

Comments
 (0)
Please sign in to comment.