@maxim_mazurok/gapi.client.monitoring-v1 0.0.20230212 → 0.0.20230220

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +25 -1
  2. package/package.json +1 -1
  3. package/tests.ts +105 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://monitoring.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20230212
12
+ // Revision: 20230220
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -190,6 +190,15 @@ declare namespace gapi.client {
190
190
  /** Application specific response metadata. Must be set in the first response for streaming APIs. */
191
191
  extensions?: Array<{ [P in string]: any }>;
192
192
  }
193
+ interface IncidentList {
194
+ /**
195
+ * Optional. The monitored resource for which incidents are listed. The resource doesn't need to be fully specified. That is, you can specify the resource type but not the values of
196
+ * the resource labels. The resource type and labels are used for filtering.
197
+ */
198
+ monitoredResources?: MonitoredResource[];
199
+ /** Optional. A list of alert policy names to filter the incident list by. Don't include the project ID prefix in the policy name. For example, use alertPolicies/utilization. */
200
+ policyNames?: string[];
201
+ }
193
202
  interface ListDashboardsResponse {
194
203
  /** The list of requested dashboards. */
195
204
  dashboards?: Dashboard[];
@@ -242,6 +251,19 @@ declare namespace gapi.client {
242
251
  */
243
252
  name?: string;
244
253
  }
254
+ interface MonitoredResource {
255
+ /**
256
+ * Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels "project_id", "instance_id",
257
+ * and "zone".
258
+ */
259
+ labels?: { [P in string]: string };
260
+ /**
261
+ * Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is
262
+ * gce_instance. For a list of types, see Monitoring resource types (https://cloud.google.com/monitoring/api/resources) and Logging resource types
263
+ * (https://cloud.google.com/logging/docs/api/v2/resource-list).
264
+ */
265
+ type?: string;
266
+ }
245
267
  interface MosaicLayout {
246
268
  /** The number of columns in the mosaic grid. The number of columns must be between 1 and 12, inclusive. */
247
269
  columns?: number;
@@ -536,6 +558,8 @@ declare namespace gapi.client {
536
558
  blank?: any;
537
559
  /** A widget that groups the other widgets. All widgets that are within the area spanned by the grouping widget are considered member widgets. */
538
560
  collapsibleGroup?: CollapsibleGroup;
561
+ /** A widget that shows list of incidents. */
562
+ incidentList?: IncidentList;
539
563
  /** A widget that shows a stream of logs. */
540
564
  logsPanel?: LogsPanel;
541
565
  /** A scorecard summarizing time series data. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.monitoring-v1",
3
- "version": "0.0.20230212",
3
+ "version": "0.0.20230220",
4
4
  "description": "TypeScript typings for Cloud Monitoring API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20230212
6
+ // Revision: 20230220
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -84,6 +84,19 @@ gapi.load('client', async () => {
84
84
  collapsibleGroup: {
85
85
  collapsed: true,
86
86
  },
87
+ incidentList: {
88
+ monitoredResources: [
89
+ {
90
+ labels: {
91
+ A: "Test string"
92
+ },
93
+ type: "Test string",
94
+ }
95
+ ],
96
+ policyNames: [
97
+ "Test string"
98
+ ],
99
+ },
87
100
  logsPanel: {
88
101
  filter: "Test string",
89
102
  resourceNames: [
@@ -418,6 +431,19 @@ gapi.load('client', async () => {
418
431
  collapsibleGroup: {
419
432
  collapsed: true,
420
433
  },
434
+ incidentList: {
435
+ monitoredResources: [
436
+ {
437
+ labels: {
438
+ A: "Test string"
439
+ },
440
+ type: "Test string",
441
+ }
442
+ ],
443
+ policyNames: [
444
+ "Test string"
445
+ ],
446
+ },
421
447
  logsPanel: {
422
448
  filter: "Test string",
423
449
  resourceNames: [
@@ -745,6 +771,19 @@ gapi.load('client', async () => {
745
771
  collapsibleGroup: {
746
772
  collapsed: true,
747
773
  },
774
+ incidentList: {
775
+ monitoredResources: [
776
+ {
777
+ labels: {
778
+ A: "Test string"
779
+ },
780
+ type: "Test string",
781
+ }
782
+ ],
783
+ policyNames: [
784
+ "Test string"
785
+ ],
786
+ },
748
787
  logsPanel: {
749
788
  filter: "Test string",
750
789
  resourceNames: [
@@ -1074,6 +1113,19 @@ gapi.load('client', async () => {
1074
1113
  collapsibleGroup: {
1075
1114
  collapsed: true,
1076
1115
  },
1116
+ incidentList: {
1117
+ monitoredResources: [
1118
+ {
1119
+ labels: {
1120
+ A: "Test string"
1121
+ },
1122
+ type: "Test string",
1123
+ }
1124
+ ],
1125
+ policyNames: [
1126
+ "Test string"
1127
+ ],
1128
+ },
1077
1129
  logsPanel: {
1078
1130
  filter: "Test string",
1079
1131
  resourceNames: [
@@ -1432,6 +1484,19 @@ gapi.load('client', async () => {
1432
1484
  collapsibleGroup: {
1433
1485
  collapsed: true,
1434
1486
  },
1487
+ incidentList: {
1488
+ monitoredResources: [
1489
+ {
1490
+ labels: {
1491
+ A: "Test string"
1492
+ },
1493
+ type: "Test string",
1494
+ }
1495
+ ],
1496
+ policyNames: [
1497
+ "Test string"
1498
+ ],
1499
+ },
1435
1500
  logsPanel: {
1436
1501
  filter: "Test string",
1437
1502
  resourceNames: [
@@ -1766,6 +1831,19 @@ gapi.load('client', async () => {
1766
1831
  collapsibleGroup: {
1767
1832
  collapsed: true,
1768
1833
  },
1834
+ incidentList: {
1835
+ monitoredResources: [
1836
+ {
1837
+ labels: {
1838
+ A: "Test string"
1839
+ },
1840
+ type: "Test string",
1841
+ }
1842
+ ],
1843
+ policyNames: [
1844
+ "Test string"
1845
+ ],
1846
+ },
1769
1847
  logsPanel: {
1770
1848
  filter: "Test string",
1771
1849
  resourceNames: [
@@ -2093,6 +2171,19 @@ gapi.load('client', async () => {
2093
2171
  collapsibleGroup: {
2094
2172
  collapsed: true,
2095
2173
  },
2174
+ incidentList: {
2175
+ monitoredResources: [
2176
+ {
2177
+ labels: {
2178
+ A: "Test string"
2179
+ },
2180
+ type: "Test string",
2181
+ }
2182
+ ],
2183
+ policyNames: [
2184
+ "Test string"
2185
+ ],
2186
+ },
2096
2187
  logsPanel: {
2097
2188
  filter: "Test string",
2098
2189
  resourceNames: [
@@ -2422,6 +2513,19 @@ gapi.load('client', async () => {
2422
2513
  collapsibleGroup: {
2423
2514
  collapsed: true,
2424
2515
  },
2516
+ incidentList: {
2517
+ monitoredResources: [
2518
+ {
2519
+ labels: {
2520
+ A: "Test string"
2521
+ },
2522
+ type: "Test string",
2523
+ }
2524
+ ],
2525
+ policyNames: [
2526
+ "Test string"
2527
+ ],
2528
+ },
2425
2529
  logsPanel: {
2426
2530
  filter: "Test string",
2427
2531
  resourceNames: [