@maxim_mazurok/gapi.client.monitoring-v3 0.0.20220812 → 0.0.20220904
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 +14 -1
- package/package.json +1 -1
- package/tests.ts +14 -1
package/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
11
11
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
12
12
|
// Generated from: https://monitoring.googleapis.com/$discovery/rest?version=v3
|
|
13
|
-
// Revision:
|
|
13
|
+
// Revision: 20220904
|
|
14
14
|
|
|
15
15
|
/// <reference types="gapi.client" />
|
|
16
16
|
|
|
@@ -514,6 +514,8 @@ declare namespace gapi.client {
|
|
|
514
514
|
* full URL. If the provided path does not begin with "/", a "/" will be prepended automatically.
|
|
515
515
|
*/
|
|
516
516
|
path?: string;
|
|
517
|
+
/** Contains information needed to add pings to an HTTP check. */
|
|
518
|
+
pingConfig?: PingConfig;
|
|
517
519
|
/**
|
|
518
520
|
* Optional (defaults to 80 when use_ssl is false, and 443 when use_ssl is true). The TCP port on the HTTP server against which to run the check. Will be combined with host (specified
|
|
519
521
|
* within the monitored_resource) and path to construct the full URL.
|
|
@@ -1076,6 +1078,10 @@ declare namespace gapi.client {
|
|
|
1076
1078
|
/** If window performance >= threshold, the window is counted as good. */
|
|
1077
1079
|
threshold?: number;
|
|
1078
1080
|
}
|
|
1081
|
+
interface PingConfig {
|
|
1082
|
+
/** Number of ICMP pings. A maximum of 3 ICMP pings is currently supported. */
|
|
1083
|
+
pingsCount?: number;
|
|
1084
|
+
}
|
|
1079
1085
|
interface Point {
|
|
1080
1086
|
/**
|
|
1081
1087
|
* The time interval to which the data point applies. For GAUGE metrics, the start time is optional, but if it is supplied, it must equal the end time. For DELTA metrics, the start and
|
|
@@ -1232,6 +1238,8 @@ declare namespace gapi.client {
|
|
|
1232
1238
|
message?: string;
|
|
1233
1239
|
}
|
|
1234
1240
|
interface TcpCheck {
|
|
1241
|
+
/** Contains information needed to add pings to a TCP check. */
|
|
1242
|
+
pingConfig?: PingConfig;
|
|
1235
1243
|
/** The TCP port on the server against which to run the check. Will be combined with host (specified within the monitored_resource) to construct the full URL. Required. */
|
|
1236
1244
|
port?: number;
|
|
1237
1245
|
}
|
|
@@ -3425,6 +3433,11 @@ declare namespace gapi.client {
|
|
|
3425
3433
|
callback?: string;
|
|
3426
3434
|
/** Selector specifying which fields to include in a partial response. */
|
|
3427
3435
|
fields?: string;
|
|
3436
|
+
/**
|
|
3437
|
+
* If provided, this field specifies the criteria that must be met by uptime checks to be included in the response.For more details, see Filtering syntax
|
|
3438
|
+
* (https://cloud.google.com/monitoring/api/v3/sorting-and-filtering#filter_syntax).
|
|
3439
|
+
*/
|
|
3440
|
+
filter?: string;
|
|
3428
3441
|
/** 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. */
|
|
3429
3442
|
key?: string;
|
|
3430
3443
|
/** OAuth 2.0 token for the current user. */
|
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: 20220904
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -898,6 +898,9 @@ gapi.load('client', async () => {
|
|
|
898
898
|
},
|
|
899
899
|
maskHeaders: true,
|
|
900
900
|
path: "Test string",
|
|
901
|
+
pingConfig: {
|
|
902
|
+
pingsCount: 42,
|
|
903
|
+
},
|
|
901
904
|
port: 42,
|
|
902
905
|
requestMethod: "Test string",
|
|
903
906
|
useSsl: true,
|
|
@@ -930,6 +933,9 @@ gapi.load('client', async () => {
|
|
|
930
933
|
"Test string"
|
|
931
934
|
],
|
|
932
935
|
tcpCheck: {
|
|
936
|
+
pingConfig: {
|
|
937
|
+
pingsCount: 42,
|
|
938
|
+
},
|
|
933
939
|
port: 42,
|
|
934
940
|
},
|
|
935
941
|
timeout: "Test string",
|
|
@@ -950,6 +956,7 @@ gapi.load('client', async () => {
|
|
|
950
956
|
});
|
|
951
957
|
/** Lists the existing valid Uptime check configurations for the project (leaving out any invalid configurations). */
|
|
952
958
|
await gapi.client.monitoring.projects.uptimeCheckConfigs.list({
|
|
959
|
+
filter: "Test string",
|
|
953
960
|
pageSize: 42,
|
|
954
961
|
pageToken: "Test string",
|
|
955
962
|
parent: "Test string",
|
|
@@ -992,6 +999,9 @@ gapi.load('client', async () => {
|
|
|
992
999
|
},
|
|
993
1000
|
maskHeaders: true,
|
|
994
1001
|
path: "Test string",
|
|
1002
|
+
pingConfig: {
|
|
1003
|
+
pingsCount: 42,
|
|
1004
|
+
},
|
|
995
1005
|
port: 42,
|
|
996
1006
|
requestMethod: "Test string",
|
|
997
1007
|
useSsl: true,
|
|
@@ -1024,6 +1034,9 @@ gapi.load('client', async () => {
|
|
|
1024
1034
|
"Test string"
|
|
1025
1035
|
],
|
|
1026
1036
|
tcpCheck: {
|
|
1037
|
+
pingConfig: {
|
|
1038
|
+
pingsCount: 42,
|
|
1039
|
+
},
|
|
1027
1040
|
port: 42,
|
|
1028
1041
|
},
|
|
1029
1042
|
timeout: "Test string",
|