Skip to content

Commit 2cdf937

Browse files
feat(monitoring): update the api
#### monitoring:v1 The following keys were added: - schemas.Dashboard.properties.annotations.$ref (Total Keys: 1) - schemas.DashboardAnnotations (Total Keys: 6) - schemas.EventAnnotation (Total Keys: 8)
1 parent b4ab366 commit 2cdf937

File tree

3 files changed

+197
-2
lines changed

3 files changed

+197
-2
lines changed

docs/dyn/monitoring_v1.projects.dashboards.html

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,22 @@ <h3>Method Details</h3>
111111
The object takes the form of:
112112

113113
{ # A Google Stackdriver dashboard. Dashboards define the content and layout of pages in the Stackdriver web application.
114+
&quot;annotations&quot;: { # Dashboard-level configuration for annotations # Configuration for event annotations to display on this dashboard.
115+
&quot;defaultResourceNames&quot;: [ # Dashboard level defaults for names of logging resources to search for events. Currently only projects are supported. Each individual EventAnnotation may have its own overrides. If both this field and the per annotation field is empty, then the scoping project is used. Limit: 50 projects. For example: “projects/some-project-id”
116+
&quot;A String&quot;,
117+
],
118+
&quot;eventAnnotations&quot;: [ # List of annotation configurations for this dashboard. Each entry specifies one event type.
119+
{ # Annotation configuration for one event type on a dashboard
120+
&quot;displayName&quot;: &quot;A String&quot;, # Solely for UI display. Should not be used programmatically.
121+
&quot;enabled&quot;: True or False, # Whether or not to show the events on the dashboard by default
122+
&quot;eventType&quot;: &quot;A String&quot;, # The type of event to display.
123+
&quot;filter&quot;: &quot;A String&quot;, # string filtering the events - event dependant. Example values: &quot;resource.labels.pod_name = &#x27;pod-1&#x27;&quot; &quot;protoPayload.authenticationInfo.principalEmail=&#x27;[email protected]&#x27;&quot;
124+
&quot;resourceNames&quot;: [ # Per annotation level override for the names of logging resources to search for events. Currently only projects are supported. If both this field and the per annotation field is empty, it will default to the host project. Limit: 50 projects. For example: “projects/another-project-id”
125+
&quot;A String&quot;,
126+
],
127+
},
128+
],
129+
},
114130
&quot;columnLayout&quot;: { # A simplified layout that divides the available space into vertical columns and arranges a set of widgets vertically in each column. # The content is divided into equally spaced columns and the widgets are arranged vertically.
115131
&quot;columns&quot;: [ # The columns of content to display.
116132
{ # Defines the layout properties and content for a column.
@@ -2412,6 +2428,22 @@ <h3>Method Details</h3>
24122428
An object of the form:
24132429

24142430
{ # A Google Stackdriver dashboard. Dashboards define the content and layout of pages in the Stackdriver web application.
2431+
&quot;annotations&quot;: { # Dashboard-level configuration for annotations # Configuration for event annotations to display on this dashboard.
2432+
&quot;defaultResourceNames&quot;: [ # Dashboard level defaults for names of logging resources to search for events. Currently only projects are supported. Each individual EventAnnotation may have its own overrides. If both this field and the per annotation field is empty, then the scoping project is used. Limit: 50 projects. For example: “projects/some-project-id”
2433+
&quot;A String&quot;,
2434+
],
2435+
&quot;eventAnnotations&quot;: [ # List of annotation configurations for this dashboard. Each entry specifies one event type.
2436+
{ # Annotation configuration for one event type on a dashboard
2437+
&quot;displayName&quot;: &quot;A String&quot;, # Solely for UI display. Should not be used programmatically.
2438+
&quot;enabled&quot;: True or False, # Whether or not to show the events on the dashboard by default
2439+
&quot;eventType&quot;: &quot;A String&quot;, # The type of event to display.
2440+
&quot;filter&quot;: &quot;A String&quot;, # string filtering the events - event dependant. Example values: &quot;resource.labels.pod_name = &#x27;pod-1&#x27;&quot; &quot;protoPayload.authenticationInfo.principalEmail=&#x27;[email protected]&#x27;&quot;
2441+
&quot;resourceNames&quot;: [ # Per annotation level override for the names of logging resources to search for events. Currently only projects are supported. If both this field and the per annotation field is empty, it will default to the host project. Limit: 50 projects. For example: “projects/another-project-id”
2442+
&quot;A String&quot;,
2443+
],
2444+
},
2445+
],
2446+
},
24152447
&quot;columnLayout&quot;: { # A simplified layout that divides the available space into vertical columns and arranges a set of widgets vertically in each column. # The content is divided into equally spaced columns and the widgets are arranged vertically.
24162448
&quot;columns&quot;: [ # The columns of content to display.
24172449
{ # Defines the layout properties and content for a column.
@@ -4737,6 +4769,22 @@ <h3>Method Details</h3>
47374769
An object of the form:
47384770

47394771
{ # A Google Stackdriver dashboard. Dashboards define the content and layout of pages in the Stackdriver web application.
4772+
&quot;annotations&quot;: { # Dashboard-level configuration for annotations # Configuration for event annotations to display on this dashboard.
4773+
&quot;defaultResourceNames&quot;: [ # Dashboard level defaults for names of logging resources to search for events. Currently only projects are supported. Each individual EventAnnotation may have its own overrides. If both this field and the per annotation field is empty, then the scoping project is used. Limit: 50 projects. For example: “projects/some-project-id”
4774+
&quot;A String&quot;,
4775+
],
4776+
&quot;eventAnnotations&quot;: [ # List of annotation configurations for this dashboard. Each entry specifies one event type.
4777+
{ # Annotation configuration for one event type on a dashboard
4778+
&quot;displayName&quot;: &quot;A String&quot;, # Solely for UI display. Should not be used programmatically.
4779+
&quot;enabled&quot;: True or False, # Whether or not to show the events on the dashboard by default
4780+
&quot;eventType&quot;: &quot;A String&quot;, # The type of event to display.
4781+
&quot;filter&quot;: &quot;A String&quot;, # string filtering the events - event dependant. Example values: &quot;resource.labels.pod_name = &#x27;pod-1&#x27;&quot; &quot;protoPayload.authenticationInfo.principalEmail=&#x27;[email protected]&#x27;&quot;
4782+
&quot;resourceNames&quot;: [ # Per annotation level override for the names of logging resources to search for events. Currently only projects are supported. If both this field and the per annotation field is empty, it will default to the host project. Limit: 50 projects. For example: “projects/another-project-id”
4783+
&quot;A String&quot;,
4784+
],
4785+
},
4786+
],
4787+
},
47404788
&quot;columnLayout&quot;: { # A simplified layout that divides the available space into vertical columns and arranges a set of widgets vertically in each column. # The content is divided into equally spaced columns and the widgets are arranged vertically.
47414789
&quot;columns&quot;: [ # The columns of content to display.
47424790
{ # Defines the layout properties and content for a column.
@@ -7048,6 +7096,22 @@ <h3>Method Details</h3>
70487096
{ # The ListDashboards request.
70497097
&quot;dashboards&quot;: [ # The list of requested dashboards.
70507098
{ # A Google Stackdriver dashboard. Dashboards define the content and layout of pages in the Stackdriver web application.
7099+
&quot;annotations&quot;: { # Dashboard-level configuration for annotations # Configuration for event annotations to display on this dashboard.
7100+
&quot;defaultResourceNames&quot;: [ # Dashboard level defaults for names of logging resources to search for events. Currently only projects are supported. Each individual EventAnnotation may have its own overrides. If both this field and the per annotation field is empty, then the scoping project is used. Limit: 50 projects. For example: “projects/some-project-id”
7101+
&quot;A String&quot;,
7102+
],
7103+
&quot;eventAnnotations&quot;: [ # List of annotation configurations for this dashboard. Each entry specifies one event type.
7104+
{ # Annotation configuration for one event type on a dashboard
7105+
&quot;displayName&quot;: &quot;A String&quot;, # Solely for UI display. Should not be used programmatically.
7106+
&quot;enabled&quot;: True or False, # Whether or not to show the events on the dashboard by default
7107+
&quot;eventType&quot;: &quot;A String&quot;, # The type of event to display.
7108+
&quot;filter&quot;: &quot;A String&quot;, # string filtering the events - event dependant. Example values: &quot;resource.labels.pod_name = &#x27;pod-1&#x27;&quot; &quot;protoPayload.authenticationInfo.principalEmail=&#x27;[email protected]&#x27;&quot;
7109+
&quot;resourceNames&quot;: [ # Per annotation level override for the names of logging resources to search for events. Currently only projects are supported. If both this field and the per annotation field is empty, it will default to the host project. Limit: 50 projects. For example: “projects/another-project-id”
7110+
&quot;A String&quot;,
7111+
],
7112+
},
7113+
],
7114+
},
70517115
&quot;columnLayout&quot;: { # A simplified layout that divides the available space into vertical columns and arranges a set of widgets vertically in each column. # The content is divided into equally spaced columns and the widgets are arranged vertically.
70527116
&quot;columns&quot;: [ # The columns of content to display.
70537117
{ # Defines the layout properties and content for a column.
@@ -9367,6 +9431,22 @@ <h3>Method Details</h3>
93679431
The object takes the form of:
93689432

93699433
{ # A Google Stackdriver dashboard. Dashboards define the content and layout of pages in the Stackdriver web application.
9434+
&quot;annotations&quot;: { # Dashboard-level configuration for annotations # Configuration for event annotations to display on this dashboard.
9435+
&quot;defaultResourceNames&quot;: [ # Dashboard level defaults for names of logging resources to search for events. Currently only projects are supported. Each individual EventAnnotation may have its own overrides. If both this field and the per annotation field is empty, then the scoping project is used. Limit: 50 projects. For example: “projects/some-project-id”
9436+
&quot;A String&quot;,
9437+
],
9438+
&quot;eventAnnotations&quot;: [ # List of annotation configurations for this dashboard. Each entry specifies one event type.
9439+
{ # Annotation configuration for one event type on a dashboard
9440+
&quot;displayName&quot;: &quot;A String&quot;, # Solely for UI display. Should not be used programmatically.
9441+
&quot;enabled&quot;: True or False, # Whether or not to show the events on the dashboard by default
9442+
&quot;eventType&quot;: &quot;A String&quot;, # The type of event to display.
9443+
&quot;filter&quot;: &quot;A String&quot;, # string filtering the events - event dependant. Example values: &quot;resource.labels.pod_name = &#x27;pod-1&#x27;&quot; &quot;protoPayload.authenticationInfo.principalEmail=&#x27;[email protected]&#x27;&quot;
9444+
&quot;resourceNames&quot;: [ # Per annotation level override for the names of logging resources to search for events. Currently only projects are supported. If both this field and the per annotation field is empty, it will default to the host project. Limit: 50 projects. For example: “projects/another-project-id”
9445+
&quot;A String&quot;,
9446+
],
9447+
},
9448+
],
9449+
},
93709450
&quot;columnLayout&quot;: { # A simplified layout that divides the available space into vertical columns and arranges a set of widgets vertically in each column. # The content is divided into equally spaced columns and the widgets are arranged vertically.
93719451
&quot;columns&quot;: [ # The columns of content to display.
93729452
{ # Defines the layout properties and content for a column.
@@ -11668,6 +11748,22 @@ <h3>Method Details</h3>
1166811748
An object of the form:
1166911749

1167011750
{ # A Google Stackdriver dashboard. Dashboards define the content and layout of pages in the Stackdriver web application.
11751+
&quot;annotations&quot;: { # Dashboard-level configuration for annotations # Configuration for event annotations to display on this dashboard.
11752+
&quot;defaultResourceNames&quot;: [ # Dashboard level defaults for names of logging resources to search for events. Currently only projects are supported. Each individual EventAnnotation may have its own overrides. If both this field and the per annotation field is empty, then the scoping project is used. Limit: 50 projects. For example: “projects/some-project-id”
11753+
&quot;A String&quot;,
11754+
],
11755+
&quot;eventAnnotations&quot;: [ # List of annotation configurations for this dashboard. Each entry specifies one event type.
11756+
{ # Annotation configuration for one event type on a dashboard
11757+
&quot;displayName&quot;: &quot;A String&quot;, # Solely for UI display. Should not be used programmatically.
11758+
&quot;enabled&quot;: True or False, # Whether or not to show the events on the dashboard by default
11759+
&quot;eventType&quot;: &quot;A String&quot;, # The type of event to display.
11760+
&quot;filter&quot;: &quot;A String&quot;, # string filtering the events - event dependant. Example values: &quot;resource.labels.pod_name = &#x27;pod-1&#x27;&quot; &quot;protoPayload.authenticationInfo.principalEmail=&#x27;[email protected]&#x27;&quot;
11761+
&quot;resourceNames&quot;: [ # Per annotation level override for the names of logging resources to search for events. Currently only projects are supported. If both this field and the per annotation field is empty, it will default to the host project. Limit: 50 projects. For example: “projects/another-project-id”
11762+
&quot;A String&quot;,
11763+
],
11764+
},
11765+
],
11766+
},
1167111767
&quot;columnLayout&quot;: { # A simplified layout that divides the available space into vertical columns and arranges a set of widgets vertically in each column. # The content is divided into equally spaced columns and the widgets are arranged vertically.
1167211768
&quot;columns&quot;: [ # The columns of content to display.
1167311769
{ # Defines the layout properties and content for a column.

googleapiclient/discovery_cache/documents/monitoring.v1.json

Lines changed: 100 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@
753753
}
754754
}
755755
},
756-
"revision": "20240427",
756+
"revision": "20240505",
757757
"rootUrl": "https://monitoring.googleapis.com/",
758758
"schemas": {
759759
"Aggregation": {
@@ -1037,6 +1037,10 @@
10371037
"description": "A Google Stackdriver dashboard. Dashboards define the content and layout of pages in the Stackdriver web application.",
10381038
"id": "Dashboard",
10391039
"properties": {
1040+
"annotations": {
1041+
"$ref": "DashboardAnnotations",
1042+
"description": "Configuration for event annotations to display on this dashboard."
1043+
},
10401044
"columnLayout": {
10411045
"$ref": "ColumnLayout",
10421046
"description": "The content is divided into equally spaced columns and the widgets are arranged vertically."
@@ -1082,6 +1086,27 @@
10821086
},
10831087
"type": "object"
10841088
},
1089+
"DashboardAnnotations": {
1090+
"description": "Dashboard-level configuration for annotations",
1091+
"id": "DashboardAnnotations",
1092+
"properties": {
1093+
"defaultResourceNames": {
1094+
"description": "Dashboard level defaults for names of logging resources to search for events. Currently only projects are supported. Each individual EventAnnotation may have its own overrides. If both this field and the per annotation field is empty, then the scoping project is used. Limit: 50 projects. For example: \u201cprojects/some-project-id\u201d ",
1095+
"items": {
1096+
"type": "string"
1097+
},
1098+
"type": "array"
1099+
},
1100+
"eventAnnotations": {
1101+
"description": "List of annotation configurations for this dashboard. Each entry specifies one event type.",
1102+
"items": {
1103+
"$ref": "EventAnnotation"
1104+
},
1105+
"type": "array"
1106+
}
1107+
},
1108+
"type": "object"
1109+
},
10851110
"DashboardFilter": {
10861111
"description": "A filter to reduce the amount of data charted in relevant widgets.",
10871112
"id": "DashboardFilter",
@@ -1301,6 +1326,80 @@
13011326
},
13021327
"type": "object"
13031328
},
1329+
"EventAnnotation": {
1330+
"description": "Annotation configuration for one event type on a dashboard",
1331+
"id": "EventAnnotation",
1332+
"properties": {
1333+
"displayName": {
1334+
"description": "Solely for UI display. Should not be used programmatically.",
1335+
"type": "string"
1336+
},
1337+
"enabled": {
1338+
"description": "Whether or not to show the events on the dashboard by default",
1339+
"type": "boolean"
1340+
},
1341+
"eventType": {
1342+
"description": "The type of event to display.",
1343+
"enum": [
1344+
"EVENT_TYPE_UNSPECIFIED",
1345+
"GKE_WORKLOAD_DEPLOYMENT",
1346+
"GKE_POD_CRASH",
1347+
"GKE_POD_UNSCHEDULABLE",
1348+
"GKE_CONTAINER_CREATION_FAILED",
1349+
"GKE_CLUSTER_CREATE_DELETE",
1350+
"GKE_CLUSTER_UPDATE",
1351+
"GKE_NODE_POOL_UPDATE",
1352+
"GKE_CLUSTER_AUTOSCALER",
1353+
"GKE_POD_AUTOSCALER",
1354+
"VM_TERMINATION",
1355+
"VM_GUEST_OS_ERROR",
1356+
"VM_START_FAILED",
1357+
"MIG_UPDATE",
1358+
"MIG_AUTOSCALER",
1359+
"CLOUD_RUN_DEPLOYMENT",
1360+
"CLOUD_SQL_FAILOVER",
1361+
"CLOUD_SQL_START_STOP",
1362+
"CLOUD_SQL_STORAGE",
1363+
"UPTIME_CHECK_FAILURE"
1364+
],
1365+
"enumDescriptions": [
1366+
"No event type specified.",
1367+
"Patch/update of GKE workload.",
1368+
"Crash events for a GKE Pod.",
1369+
"Scheduling failures for GKE Pods.",
1370+
"Failure to create a GKE container.",
1371+
"Create/delete of a GKE cluster.",
1372+
"Update of a GKE cluster.",
1373+
"Update of a GKE node pool.",
1374+
"GKE cluster autoscaler event.",
1375+
"GKE pod autoscaler event.",
1376+
"Termination of a virtual machine.",
1377+
"Guest OS error on a virtual machine.",
1378+
"Start failure on a virtual machine.",
1379+
"Update of a managed instance group.",
1380+
"Autoscaler event for a managed instance group.",
1381+
"New deployment of a Cloud Run service.",
1382+
"Failover of a Cloud SQL instance.",
1383+
"Start/stop of a Cloud SQL instance.",
1384+
"Storage event for a Cloud SQL instance.",
1385+
"Failure of a Cloud Monitoring uptime check."
1386+
],
1387+
"type": "string"
1388+
},
1389+
"filter": {
1390+
"description": "string filtering the events - event dependant. Example values: \"resource.labels.pod_name = 'pod-1'\" \"protoPayload.authenticationInfo.principalEmail='[email protected]'\" ",
1391+
"type": "string"
1392+
},
1393+
"resourceNames": {
1394+
"description": "Per annotation level override for the names of logging resources to search for events. Currently only projects are supported. If both this field and the per annotation field is empty, it will default to the host project. Limit: 50 projects. For example: \u201cprojects/another-project-id\u201d ",
1395+
"items": {
1396+
"type": "string"
1397+
},
1398+
"type": "array"
1399+
}
1400+
},
1401+
"type": "object"
1402+
},
13041403
"Field": {
13051404
"description": "A single field of a message type.",
13061405
"id": "Field",

googleapiclient/discovery_cache/documents/monitoring.v3.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2714,7 +2714,7 @@
27142714
}
27152715
}
27162716
},
2717-
"revision": "20240427",
2717+
"revision": "20240505",
27182718
"rootUrl": "https://monitoring.googleapis.com/",
27192719
"schemas": {
27202720
"Aggregation": {

0 commit comments

Comments
 (0)