@maxim_mazurok/gapi.client.monitoring-v3 0.0.20230304 → 0.0.20230320

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 +14 -1
  2. package/package.json +1 -1
  3. package/tests.ts +17 -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=v3
12
- // Revision: 20230304
12
+ // Revision: 20230320
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -106,6 +106,8 @@ declare namespace gapi.client {
106
106
  interface AlertStrategy {
107
107
  /** If an alert policy that was active has no data for this long, any open incidents will close */
108
108
  autoClose?: string;
109
+ /** Control how notifications will be sent out, on a per-channel basis. */
110
+ notificationChannelStrategy?: NotificationChannelStrategy[];
109
111
  /** Required for alert policies with a LogMatch condition.This limit is not implemented for alert policies that are not log-based. */
110
112
  notificationRateLimit?: NotificationRateLimit;
111
113
  }
@@ -1087,6 +1089,15 @@ declare namespace gapi.client {
1087
1089
  */
1088
1090
  type?: string;
1089
1091
  }
1092
+ interface NotificationChannelStrategy {
1093
+ /**
1094
+ * The full REST resource name for the notification channels that these settings apply to. Each of these correspond to the name field in one of the NotificationChannel objects
1095
+ * referenced in the notification_channels field of this AlertPolicy. The format is: projects/[PROJECT_ID_OR_NUMBER]/notificationChannels/[CHANNEL_ID]
1096
+ */
1097
+ notificationChannelNames?: string[];
1098
+ /** The frequency at which to send reminder notifications for open incidents. */
1099
+ renotifyInterval?: string;
1100
+ }
1090
1101
  interface NotificationRateLimit {
1091
1102
  /** Not more than one notification per period. */
1092
1103
  period?: string;
@@ -1387,6 +1398,8 @@ declare namespace gapi.client {
1387
1398
  percent?: number;
1388
1399
  }
1389
1400
  interface Type {
1401
+ /** The source edition string, only valid when syntax is SYNTAX_EDITIONS. */
1402
+ edition?: string;
1390
1403
  /** The list of fields. */
1391
1404
  fields?: Field[];
1392
1405
  /** The fully qualified message name. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.monitoring-v3",
3
- "version": "0.0.20230304",
3
+ "version": "0.0.20230320",
4
4
  "description": "TypeScript typings for Cloud Monitoring API v3",
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: 20230304
6
+ // Revision: 20230320
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -82,6 +82,14 @@ gapi.load('client', async () => {
82
82
  }, {
83
83
  alertStrategy: {
84
84
  autoClose: "Test string",
85
+ notificationChannelStrategy: [
86
+ {
87
+ notificationChannelNames: [
88
+ "Test string"
89
+ ],
90
+ renotifyInterval: "Test string",
91
+ }
92
+ ],
85
93
  notificationRateLimit: {
86
94
  period: "Test string",
87
95
  },
@@ -222,6 +230,14 @@ gapi.load('client', async () => {
222
230
  }, {
223
231
  alertStrategy: {
224
232
  autoClose: "Test string",
233
+ notificationChannelStrategy: [
234
+ {
235
+ notificationChannelNames: [
236
+ "Test string"
237
+ ],
238
+ renotifyInterval: "Test string",
239
+ }
240
+ ],
225
241
  notificationRateLimit: {
226
242
  period: "Test string",
227
243
  },