@maxim_mazurok/gapi.client.monitoring-v3 0.0.20250116 → 0.0.20250130

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 +28 -26
  2. package/package.json +1 -1
  3. package/readme.md +2 -2
package/index.d.ts CHANGED
@@ -9,14 +9,14 @@
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: 20250116
12
+ // Revision: 20250130
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
17
  /** Load Cloud Monitoring API v3 */
18
18
  function load(
19
- urlOrObject: 'https://monitoring.googleapis.com/$discovery/rest?version=v3'
19
+ urlOrObject: 'https://monitoring.googleapis.com/$discovery/rest?version=v3',
20
20
  ): Promise<void>;
21
21
  /** @deprecated Please load APIs with discovery documents. */
22
22
  function load(name: 'monitoring', version: 'v3'): Promise<void>;
@@ -232,7 +232,9 @@ declare namespace gapi.client {
232
232
  totalPointCount?: number;
233
233
  }
234
234
  interface Criteria {
235
- /** 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. */
235
+ /** 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" */
236
+ filter?: string;
237
+ /** 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. */
236
238
  policies?: string[];
237
239
  }
238
240
  interface Custom {}
@@ -1321,7 +1323,7 @@ declare namespace gapi.client {
1321
1323
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1322
1324
  uploadType?: string;
1323
1325
  },
1324
- body: AlertPolicy
1326
+ body: AlertPolicy,
1325
1327
  ): Request<AlertPolicy>;
1326
1328
  /** Deletes an alerting policy.Design your application to single-thread API calls that modify the state of alerting policies in a single project. This includes calls to CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy. */
1327
1329
  delete(request?: {
@@ -1472,7 +1474,7 @@ declare namespace gapi.client {
1472
1474
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1473
1475
  uploadType?: string;
1474
1476
  },
1475
- body: AlertPolicy
1477
+ body: AlertPolicy,
1476
1478
  ): Request<AlertPolicy>;
1477
1479
  }
1478
1480
  interface CollectdTimeSeriesResource {
@@ -1532,7 +1534,7 @@ declare namespace gapi.client {
1532
1534
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1533
1535
  uploadType?: string;
1534
1536
  },
1535
- body: CreateCollectdTimeSeriesRequest
1537
+ body: CreateCollectdTimeSeriesRequest,
1536
1538
  ): Request<CreateCollectdTimeSeriesResponse>;
1537
1539
  }
1538
1540
  interface MembersResource {
@@ -1635,7 +1637,7 @@ declare namespace gapi.client {
1635
1637
  /** If true, validate this request but do not create the group. */
1636
1638
  validateOnly?: boolean;
1637
1639
  },
1638
- body: Group
1640
+ body: Group,
1639
1641
  ): Request<Group>;
1640
1642
  /** Deletes an existing group. */
1641
1643
  delete(request?: {
@@ -1790,7 +1792,7 @@ declare namespace gapi.client {
1790
1792
  /** If true, validate this request but do not update the existing group. */
1791
1793
  validateOnly?: boolean;
1792
1794
  },
1793
- body: Group
1795
+ body: Group,
1794
1796
  ): Request<Group>;
1795
1797
  members: MembersResource;
1796
1798
  }
@@ -1851,7 +1853,7 @@ declare namespace gapi.client {
1851
1853
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1852
1854
  uploadType?: string;
1853
1855
  },
1854
- body: MetricDescriptor
1856
+ body: MetricDescriptor,
1855
1857
  ): Request<MetricDescriptor>;
1856
1858
  /** Deletes a metric descriptor. Only user-created custom metrics (https://cloud.google.com/monitoring/custom-metrics) can be deleted. */
1857
1859
  delete(request?: {
@@ -2122,7 +2124,7 @@ declare namespace gapi.client {
2122
2124
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2123
2125
  uploadType?: string;
2124
2126
  },
2125
- body: NotificationChannel
2127
+ body: NotificationChannel,
2126
2128
  ): Request<NotificationChannel>;
2127
2129
  /** Deletes a notification channel.Design your application to single-thread API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel. */
2128
2130
  delete(request?: {
@@ -2236,7 +2238,7 @@ declare namespace gapi.client {
2236
2238
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2237
2239
  uploadType?: string;
2238
2240
  },
2239
- body: GetNotificationChannelVerificationCodeRequest
2241
+ body: GetNotificationChannelVerificationCodeRequest,
2240
2242
  ): Request<GetNotificationChannelVerificationCodeResponse>;
2241
2243
  /** Lists the notification channels that have been created for the project. To list the types of notification channels that are supported, use the ListNotificationChannelDescriptors method. */
2242
2244
  list(request?: {
@@ -2333,7 +2335,7 @@ declare namespace gapi.client {
2333
2335
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2334
2336
  uploadType?: string;
2335
2337
  },
2336
- body: NotificationChannel
2338
+ body: NotificationChannel,
2337
2339
  ): Request<NotificationChannel>;
2338
2340
  /** Causes a verification code to be delivered to the channel. The code can then be supplied in VerifyNotificationChannel to verify the channel. */
2339
2341
  sendVerificationCode(request: {
@@ -2391,7 +2393,7 @@ declare namespace gapi.client {
2391
2393
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2392
2394
  uploadType?: string;
2393
2395
  },
2394
- body: SendNotificationChannelVerificationCodeRequest
2396
+ body: SendNotificationChannelVerificationCodeRequest,
2395
2397
  ): Request<{}>;
2396
2398
  /** Verifies a NotificationChannel by proving receipt of the code delivered to the channel as a result of calling SendNotificationChannelVerificationCode. */
2397
2399
  verify(request: {
@@ -2449,7 +2451,7 @@ declare namespace gapi.client {
2449
2451
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2450
2452
  uploadType?: string;
2451
2453
  },
2452
- body: VerifyNotificationChannelRequest
2454
+ body: VerifyNotificationChannelRequest,
2453
2455
  ): Request<NotificationChannel>;
2454
2456
  }
2455
2457
  interface SnoozesResource {
@@ -2509,7 +2511,7 @@ declare namespace gapi.client {
2509
2511
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2510
2512
  uploadType?: string;
2511
2513
  },
2512
- body: Snooze
2514
+ body: Snooze,
2513
2515
  ): Request<Snooze>;
2514
2516
  /** Retrieves a Snooze by name. */
2515
2517
  get(request?: {
@@ -2550,7 +2552,7 @@ declare namespace gapi.client {
2550
2552
  callback?: string;
2551
2553
  /** Selector specifying which fields to include in a partial response. */
2552
2554
  fields?: string;
2553
- /** Optional. Optional filter to restrict results to the given criteria. The following fields are supported. interval.start_time interval.end_timeFor example: ``` interval.start_time > "2022-03-11T00:00:00-08:00" AND interval.end_time < "2022-03-12T00:00:00-08:00" ``` */
2555
+ /** Optional. Optional filter to restrict results to the given criteria. The following fields are supported. interval.start_time interval.end_timeFor example: interval.start_time > "2022-03-11T00:00:00-08:00" AND interval.end_time < "2022-03-12T00:00:00-08:00" */
2554
2556
  filter?: string;
2555
2557
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2556
2558
  key?: string;
@@ -2631,7 +2633,7 @@ declare namespace gapi.client {
2631
2633
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2632
2634
  uploadType?: string;
2633
2635
  },
2634
- body: Snooze
2636
+ body: Snooze,
2635
2637
  ): Request<Snooze>;
2636
2638
  }
2637
2639
  interface TimeSeriesResource {
@@ -2691,7 +2693,7 @@ declare namespace gapi.client {
2691
2693
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2692
2694
  uploadType?: string;
2693
2695
  },
2694
- body: CreateTimeSeriesRequest
2696
+ body: CreateTimeSeriesRequest,
2695
2697
  ): Request<{}>;
2696
2698
  /** Creates or adds data to one or more service time series. A service time series is a time series for a metric from a Google Cloud service. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response. This endpoint rejects writes to user-defined metrics. This method is only for use by Google Cloud services. Use projects.timeSeries.create instead. */
2697
2699
  createService(request: {
@@ -2749,7 +2751,7 @@ declare namespace gapi.client {
2749
2751
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2750
2752
  uploadType?: string;
2751
2753
  },
2752
- body: CreateTimeSeriesRequest
2754
+ body: CreateTimeSeriesRequest,
2753
2755
  ): Request<{}>;
2754
2756
  /** Lists time series that match a filter. */
2755
2757
  list(request?: {
@@ -2864,7 +2866,7 @@ declare namespace gapi.client {
2864
2866
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2865
2867
  uploadType?: string;
2866
2868
  },
2867
- body: QueryTimeSeriesRequest
2869
+ body: QueryTimeSeriesRequest,
2868
2870
  ): Request<QueryTimeSeriesResponse>;
2869
2871
  }
2870
2872
  interface UptimeCheckConfigsResource {
@@ -2924,7 +2926,7 @@ declare namespace gapi.client {
2924
2926
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2925
2927
  uploadType?: string;
2926
2928
  },
2927
- body: UptimeCheckConfig
2929
+ body: UptimeCheckConfig,
2928
2930
  ): Request<UptimeCheckConfig>;
2929
2931
  /** Deletes an Uptime check configuration. Note that this method will fail if the Uptime check configuration is referenced by an alert policy or other dependent configs that would be rendered invalid by the deletion. */
2930
2932
  delete(request?: {
@@ -3073,7 +3075,7 @@ declare namespace gapi.client {
3073
3075
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3074
3076
  uploadType?: string;
3075
3077
  },
3076
- body: UptimeCheckConfig
3078
+ body: UptimeCheckConfig,
3077
3079
  ): Request<UptimeCheckConfig>;
3078
3080
  }
3079
3081
  interface ProjectsResource {
@@ -3149,7 +3151,7 @@ declare namespace gapi.client {
3149
3151
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3150
3152
  uploadType?: string;
3151
3153
  },
3152
- body: ServiceLevelObjective
3154
+ body: ServiceLevelObjective,
3153
3155
  ): Request<ServiceLevelObjective>;
3154
3156
  /** Delete the given ServiceLevelObjective. */
3155
3157
  delete(request?: {
@@ -3302,7 +3304,7 @@ declare namespace gapi.client {
3302
3304
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3303
3305
  uploadType?: string;
3304
3306
  },
3305
- body: ServiceLevelObjective
3307
+ body: ServiceLevelObjective,
3306
3308
  ): Request<ServiceLevelObjective>;
3307
3309
  }
3308
3310
  interface ServicesResource {
@@ -3366,7 +3368,7 @@ declare namespace gapi.client {
3366
3368
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3367
3369
  uploadType?: string;
3368
3370
  },
3369
- body: Service
3371
+ body: Service,
3370
3372
  ): Request<Service>;
3371
3373
  /** Soft delete this Service. */
3372
3374
  delete(request?: {
@@ -3515,7 +3517,7 @@ declare namespace gapi.client {
3515
3517
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3516
3518
  uploadType?: string;
3517
3519
  },
3518
- body: Service
3520
+ body: Service,
3519
3521
  ): Request<Service>;
3520
3522
  serviceLevelObjectives: ServiceLevelObjectivesResource;
3521
3523
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.monitoring-v3",
3
- "version": "0.0.20250116",
3
+ "version": "0.0.20250130",
4
4
  "description": "TypeScript typings for Cloud Monitoring API v3",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -30,7 +30,7 @@ gapi.client.load(
30
30
  () => {
31
31
  // now we can use:
32
32
  // gapi.client.monitoring
33
- }
33
+ },
34
34
  );
35
35
  ```
36
36
 
@@ -71,7 +71,7 @@ gapi.auth.authorize(
71
71
  } else {
72
72
  /* handle authorization error */
73
73
  }
74
- }
74
+ },
75
75
  );
76
76
  ```
77
77