@maxim_mazurok/gapi.client.monitoring-v3 0.0.20220910 → 0.0.20220926
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.
- package/index.d.ts +41 -8
- package/package.json +1 -1
- package/tests.ts +35 -7
package/index.d.ts
CHANGED
|
@@ -4,13 +4,12 @@
|
|
|
4
4
|
// Nick Amoscato <https://github.com/namoscato>
|
|
5
5
|
// Declan Vong <https://github.com/declanvong>
|
|
6
6
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
-
// TypeScript Version: 2.8
|
|
8
7
|
|
|
9
8
|
// IMPORTANT
|
|
10
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
11
|
// Generated from: https://monitoring.googleapis.com/$discovery/rest?version=v3
|
|
13
|
-
// Revision:
|
|
12
|
+
// Revision: 20220926
|
|
14
13
|
|
|
15
14
|
/// <reference types="gapi.client" />
|
|
16
15
|
|
|
@@ -126,6 +125,18 @@ declare namespace gapi.client {
|
|
|
126
125
|
/** The username to use when authenticating with the HTTP server. */
|
|
127
126
|
username?: string;
|
|
128
127
|
}
|
|
128
|
+
interface BasicService {
|
|
129
|
+
/**
|
|
130
|
+
* Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this Service. Documentation and valid values for given service types here
|
|
131
|
+
* (https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
|
|
132
|
+
*/
|
|
133
|
+
serviceLabels?: { [P in string]: string };
|
|
134
|
+
/**
|
|
135
|
+
* The type of service that this basic service defines, e.g. APP_ENGINE service type. Documentation and valid values here
|
|
136
|
+
* (https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
|
|
137
|
+
*/
|
|
138
|
+
serviceType?: string;
|
|
139
|
+
}
|
|
129
140
|
interface BasicSli {
|
|
130
141
|
/** Good service is defined to be the count of requests made to this service that return successfully. */
|
|
131
142
|
availability?: any;
|
|
@@ -1156,6 +1167,11 @@ declare namespace gapi.client {
|
|
|
1156
1167
|
interface Service {
|
|
1157
1168
|
/** Type used for App Engine services. */
|
|
1158
1169
|
appEngine?: AppEngine;
|
|
1170
|
+
/**
|
|
1171
|
+
* Message that contains the service type and service labels of this service if it is a basic service. Documentation and examples here
|
|
1172
|
+
* (https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).
|
|
1173
|
+
*/
|
|
1174
|
+
basicService?: BasicService;
|
|
1159
1175
|
/** Type used for Cloud Endpoints services. */
|
|
1160
1176
|
cloudEndpoints?: CloudEndpoints;
|
|
1161
1177
|
/** Type used for Cloud Run services. */
|
|
@@ -1701,7 +1717,10 @@ declare namespace gapi.client {
|
|
|
1701
1717
|
timeSeries: TimeSeriesResource;
|
|
1702
1718
|
}
|
|
1703
1719
|
interface AlertPoliciesResource {
|
|
1704
|
-
/**
|
|
1720
|
+
/**
|
|
1721
|
+
* Creates a new 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
|
|
1722
|
+
* CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
|
|
1723
|
+
*/
|
|
1705
1724
|
create(request: {
|
|
1706
1725
|
/** V1 error format. */
|
|
1707
1726
|
"$.xgafv"?: string;
|
|
@@ -1767,7 +1786,10 @@ declare namespace gapi.client {
|
|
|
1767
1786
|
uploadType?: string;
|
|
1768
1787
|
},
|
|
1769
1788
|
body: AlertPolicy): Request<AlertPolicy>;
|
|
1770
|
-
/**
|
|
1789
|
+
/**
|
|
1790
|
+
* 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
|
|
1791
|
+
* CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
|
|
1792
|
+
*/
|
|
1771
1793
|
delete(request?: {
|
|
1772
1794
|
/** V1 error format. */
|
|
1773
1795
|
"$.xgafv"?: string;
|
|
@@ -1871,7 +1893,8 @@ declare namespace gapi.client {
|
|
|
1871
1893
|
}): Request<ListAlertPoliciesResponse>;
|
|
1872
1894
|
/**
|
|
1873
1895
|
* Updates an alerting policy. You can either replace the entire policy with a new one or replace only certain fields in the current alerting policy by specifying the fields to be
|
|
1874
|
-
* updated via updateMask. Returns the updated alerting policy.
|
|
1896
|
+
* updated via updateMask. Returns the updated alerting policy.Design your application to single-thread API calls that modify the state of alerting policies in a single project. This
|
|
1897
|
+
* includes calls to CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
|
|
1875
1898
|
*/
|
|
1876
1899
|
patch(request: {
|
|
1877
1900
|
/** V1 error format. */
|
|
@@ -2593,7 +2616,11 @@ declare namespace gapi.client {
|
|
|
2593
2616
|
}): Request<ListNotificationChannelDescriptorsResponse>;
|
|
2594
2617
|
}
|
|
2595
2618
|
interface NotificationChannelsResource {
|
|
2596
|
-
/**
|
|
2619
|
+
/**
|
|
2620
|
+
* Creates a new notification channel, representing a single notification endpoint such as an email address, SMS number, or PagerDuty service.Design your application to single-thread
|
|
2621
|
+
* API calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and
|
|
2622
|
+
* UpdateNotificationChannel.
|
|
2623
|
+
*/
|
|
2597
2624
|
create(request: {
|
|
2598
2625
|
/** V1 error format. */
|
|
2599
2626
|
"$.xgafv"?: string;
|
|
@@ -2657,7 +2684,10 @@ declare namespace gapi.client {
|
|
|
2657
2684
|
uploadType?: string;
|
|
2658
2685
|
},
|
|
2659
2686
|
body: NotificationChannel): Request<NotificationChannel>;
|
|
2660
|
-
/**
|
|
2687
|
+
/**
|
|
2688
|
+
* 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
|
|
2689
|
+
* CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.
|
|
2690
|
+
*/
|
|
2661
2691
|
delete(request?: {
|
|
2662
2692
|
/** V1 error format. */
|
|
2663
2693
|
"$.xgafv"?: string;
|
|
@@ -2835,7 +2865,10 @@ declare namespace gapi.client {
|
|
|
2835
2865
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
2836
2866
|
uploadType?: string;
|
|
2837
2867
|
}): Request<ListNotificationChannelsResponse>;
|
|
2838
|
-
/**
|
|
2868
|
+
/**
|
|
2869
|
+
* Updates a notification channel. Fields not specified in the field mask remain unchanged.Design your application to single-thread API calls that modify the state of notification
|
|
2870
|
+
* channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.
|
|
2871
|
+
*/
|
|
2839
2872
|
patch(request: {
|
|
2840
2873
|
/** V1 error format. */
|
|
2841
2874
|
"$.xgafv"?: string;
|
package/package.json
CHANGED
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:
|
|
6
|
+
// Revision: 20220926
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -73,7 +73,10 @@ gapi.load('client', async () => {
|
|
|
73
73
|
"secondaryAggregation.perSeriesAligner": "Test string",
|
|
74
74
|
view: "Test string",
|
|
75
75
|
});
|
|
76
|
-
/**
|
|
76
|
+
/**
|
|
77
|
+
* Creates a new 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
|
|
78
|
+
* CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
|
|
79
|
+
*/
|
|
77
80
|
await gapi.client.monitoring.projects.alertPolicies.create({
|
|
78
81
|
name: "Test string",
|
|
79
82
|
}, {
|
|
@@ -186,7 +189,10 @@ gapi.load('client', async () => {
|
|
|
186
189
|
message: "Test string",
|
|
187
190
|
},
|
|
188
191
|
});
|
|
189
|
-
/**
|
|
192
|
+
/**
|
|
193
|
+
* 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,
|
|
194
|
+
* DeleteAlertPolicy and UpdateAlertPolicy.
|
|
195
|
+
*/
|
|
190
196
|
await gapi.client.monitoring.projects.alertPolicies.delete({
|
|
191
197
|
name: "Test string",
|
|
192
198
|
});
|
|
@@ -204,7 +210,8 @@ gapi.load('client', async () => {
|
|
|
204
210
|
});
|
|
205
211
|
/**
|
|
206
212
|
* Updates an alerting policy. You can either replace the entire policy with a new one or replace only certain fields in the current alerting policy by specifying the fields to be updated
|
|
207
|
-
* via updateMask. Returns the updated alerting policy.
|
|
213
|
+
* via updateMask. Returns the updated alerting policy.Design your application to single-thread API calls that modify the state of alerting policies in a single project. This includes
|
|
214
|
+
* calls to CreateAlertPolicy, DeleteAlertPolicy and UpdateAlertPolicy.
|
|
208
215
|
*/
|
|
209
216
|
await gapi.client.monitoring.projects.alertPolicies.patch({
|
|
210
217
|
name: "Test string",
|
|
@@ -557,7 +564,10 @@ gapi.load('client', async () => {
|
|
|
557
564
|
pageSize: 42,
|
|
558
565
|
pageToken: "Test string",
|
|
559
566
|
});
|
|
560
|
-
/**
|
|
567
|
+
/**
|
|
568
|
+
* Creates a new notification channel, representing a single notification endpoint such as an email address, SMS number, or PagerDuty service.Design your application to single-thread API
|
|
569
|
+
* calls that modify the state of notification channels in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.
|
|
570
|
+
*/
|
|
561
571
|
await gapi.client.monitoring.projects.notificationChannels.create({
|
|
562
572
|
name: "Test string",
|
|
563
573
|
}, {
|
|
@@ -584,7 +594,10 @@ gapi.load('client', async () => {
|
|
|
584
594
|
},
|
|
585
595
|
verificationStatus: "Test string",
|
|
586
596
|
});
|
|
587
|
-
/**
|
|
597
|
+
/**
|
|
598
|
+
* 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
|
|
599
|
+
* CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.
|
|
600
|
+
*/
|
|
588
601
|
await gapi.client.monitoring.projects.notificationChannels.delete({
|
|
589
602
|
force: true,
|
|
590
603
|
name: "Test string",
|
|
@@ -619,7 +632,10 @@ gapi.load('client', async () => {
|
|
|
619
632
|
pageSize: 42,
|
|
620
633
|
pageToken: "Test string",
|
|
621
634
|
});
|
|
622
|
-
/**
|
|
635
|
+
/**
|
|
636
|
+
* Updates a notification channel. Fields not specified in the field mask remain unchanged.Design your application to single-thread API calls that modify the state of notification channels
|
|
637
|
+
* in a single project. This includes calls to CreateNotificationChannel, DeleteNotificationChannel and UpdateNotificationChannel.
|
|
638
|
+
*/
|
|
623
639
|
await gapi.client.monitoring.projects.notificationChannels.patch({
|
|
624
640
|
name: "Test string",
|
|
625
641
|
updateMask: "Test string",
|
|
@@ -1052,6 +1068,12 @@ gapi.load('client', async () => {
|
|
|
1052
1068
|
appEngine: {
|
|
1053
1069
|
moduleId: "Test string",
|
|
1054
1070
|
},
|
|
1071
|
+
basicService: {
|
|
1072
|
+
serviceLabels: {
|
|
1073
|
+
A: "Test string"
|
|
1074
|
+
},
|
|
1075
|
+
serviceType: "Test string",
|
|
1076
|
+
},
|
|
1055
1077
|
cloudEndpoints: {
|
|
1056
1078
|
service: "Test string",
|
|
1057
1079
|
},
|
|
@@ -1130,6 +1152,12 @@ gapi.load('client', async () => {
|
|
|
1130
1152
|
appEngine: {
|
|
1131
1153
|
moduleId: "Test string",
|
|
1132
1154
|
},
|
|
1155
|
+
basicService: {
|
|
1156
|
+
serviceLabels: {
|
|
1157
|
+
A: "Test string"
|
|
1158
|
+
},
|
|
1159
|
+
serviceType: "Test string",
|
|
1160
|
+
},
|
|
1133
1161
|
cloudEndpoints: {
|
|
1134
1162
|
service: "Test string",
|
|
1135
1163
|
},
|