@maxim_mazurok/gapi.client.monitoring-v1 0.0.20230716 → 0.0.20230731
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 +98 -40
- package/package.json +1 -1
- package/tests.ts +74 -9
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:
|
|
12
|
+
// Revision: 20230731
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -262,17 +262,6 @@ declare namespace gapi.client {
|
|
|
262
262
|
nextPageToken?:
|
|
263
263
|
string;
|
|
264
264
|
}
|
|
265
|
-
interface ListLabelsRequest {
|
|
266
|
-
/** The end time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp. */
|
|
267
|
-
end?:
|
|
268
|
-
string;
|
|
269
|
-
/** A list of matchers encoded in the Prometheus label matcher format to constrain the values to series that satisfy them. */
|
|
270
|
-
match?:
|
|
271
|
-
string;
|
|
272
|
-
/** The start time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp. */
|
|
273
|
-
start?:
|
|
274
|
-
string;
|
|
275
|
-
}
|
|
276
265
|
interface ListMetricsScopesByMonitoredProjectResponse {
|
|
277
266
|
/** A set of all metrics scopes that the specified monitored project has been added to. */
|
|
278
267
|
metricsScopes?:
|
|
@@ -428,6 +417,17 @@ declare namespace gapi.client {
|
|
|
428
417
|
timeout?:
|
|
429
418
|
string;
|
|
430
419
|
}
|
|
420
|
+
interface QueryLabelsRequest {
|
|
421
|
+
/** The end time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp. */
|
|
422
|
+
end?:
|
|
423
|
+
string;
|
|
424
|
+
/** A list of matchers encoded in the Prometheus label matcher format to constrain the values to series that satisfy them. */
|
|
425
|
+
match?:
|
|
426
|
+
string;
|
|
427
|
+
/** The start time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp. */
|
|
428
|
+
start?:
|
|
429
|
+
string;
|
|
430
|
+
}
|
|
431
431
|
interface QueryRangeRequest {
|
|
432
432
|
/** The end time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp. */
|
|
433
433
|
end?:
|
|
@@ -586,6 +586,29 @@ declare namespace gapi.client {
|
|
|
586
586
|
/** How the text content is formatted. */
|
|
587
587
|
format?:
|
|
588
588
|
string;
|
|
589
|
+
/** How the text is styled */
|
|
590
|
+
style?:
|
|
591
|
+
TextStyle;
|
|
592
|
+
}
|
|
593
|
+
interface TextStyle {
|
|
594
|
+
/** The background color as a hex string. "#RRGGBB" or "#RGB" */
|
|
595
|
+
backgroundColor?:
|
|
596
|
+
string;
|
|
597
|
+
/** Font sizes for both the title and content. The title will still be larger relative to the content. */
|
|
598
|
+
fontSize?:
|
|
599
|
+
string;
|
|
600
|
+
/** The horizontal alignment of both the title and content */
|
|
601
|
+
horizontalAlignment?:
|
|
602
|
+
string;
|
|
603
|
+
/** The amount of padding around the widget */
|
|
604
|
+
padding?:
|
|
605
|
+
string;
|
|
606
|
+
/** The text color as a hex string. "#RRGGBB" or "#RGB" */
|
|
607
|
+
textColor?:
|
|
608
|
+
string;
|
|
609
|
+
/** The vertical alignment of both the title and content */
|
|
610
|
+
verticalAlignment?:
|
|
611
|
+
string;
|
|
589
612
|
}
|
|
590
613
|
interface Threshold {
|
|
591
614
|
/** The state color for this threshold. Color is not allowed in a XyChart. */
|
|
@@ -1407,8 +1430,8 @@ declare namespace gapi.client {
|
|
|
1407
1430
|
string;
|
|
1408
1431
|
}): Request<HttpBody>;
|
|
1409
1432
|
}
|
|
1410
|
-
interface
|
|
1411
|
-
/** Lists
|
|
1433
|
+
interface MetadataResource {
|
|
1434
|
+
/** Lists metadata for metrics. */
|
|
1412
1435
|
list(request?: {
|
|
1413
1436
|
/** V1 error format. */
|
|
1414
1437
|
"$.xgafv"?:
|
|
@@ -1422,8 +1445,58 @@ declare namespace gapi.client {
|
|
|
1422
1445
|
/** JSONP */
|
|
1423
1446
|
callback?:
|
|
1424
1447
|
string;
|
|
1425
|
-
/**
|
|
1426
|
-
|
|
1448
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
1449
|
+
fields?:
|
|
1450
|
+
string;
|
|
1451
|
+
/** 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. */
|
|
1452
|
+
key?:
|
|
1453
|
+
string;
|
|
1454
|
+
/** Maximum number of metrics to return. */
|
|
1455
|
+
limit?:
|
|
1456
|
+
string;
|
|
1457
|
+
/** Location of the resource information. Has to be "global" for now. */
|
|
1458
|
+
location:
|
|
1459
|
+
string;
|
|
1460
|
+
/** The metric name for which to query metadata. If unset, all metric metadata is returned. */
|
|
1461
|
+
metric?:
|
|
1462
|
+
string;
|
|
1463
|
+
/**
|
|
1464
|
+
* Required. The workspace on which to execute the request. It is not part of the open source API but used as a request path prefix to distinguish different virtual Prometheus
|
|
1465
|
+
* instances of Google Prometheus Engine. The format is: projects/PROJECT_ID_OR_NUMBER.
|
|
1466
|
+
*/
|
|
1467
|
+
name:
|
|
1468
|
+
string;
|
|
1469
|
+
/** OAuth 2.0 token for the current user. */
|
|
1470
|
+
oauth_token?:
|
|
1471
|
+
string;
|
|
1472
|
+
/** Returns response with indentations and line breaks. */
|
|
1473
|
+
prettyPrint?:
|
|
1474
|
+
boolean;
|
|
1475
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1476
|
+
quotaUser?:
|
|
1477
|
+
string;
|
|
1478
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1479
|
+
upload_protocol?:
|
|
1480
|
+
string;
|
|
1481
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1482
|
+
uploadType?:
|
|
1483
|
+
string;
|
|
1484
|
+
}): Request<HttpBody>;
|
|
1485
|
+
}
|
|
1486
|
+
interface V1Resource {
|
|
1487
|
+
/** Lists labels for metrics. */
|
|
1488
|
+
labels(request: {
|
|
1489
|
+
/** V1 error format. */
|
|
1490
|
+
"$.xgafv"?:
|
|
1491
|
+
string;
|
|
1492
|
+
/** OAuth access token. */
|
|
1493
|
+
access_token?:
|
|
1494
|
+
string;
|
|
1495
|
+
/** Data format for response. */
|
|
1496
|
+
alt?:
|
|
1497
|
+
string;
|
|
1498
|
+
/** JSONP */
|
|
1499
|
+
callback?:
|
|
1427
1500
|
string;
|
|
1428
1501
|
/** Selector specifying which fields to include in a partial response. */
|
|
1429
1502
|
fields?:
|
|
@@ -1434,9 +1507,6 @@ declare namespace gapi.client {
|
|
|
1434
1507
|
/** Location of the resource information. Has to be "global" now. */
|
|
1435
1508
|
location:
|
|
1436
1509
|
string;
|
|
1437
|
-
/** A list of matchers encoded in the Prometheus label matcher format to constrain the values to series that satisfy them. */
|
|
1438
|
-
match?:
|
|
1439
|
-
string;
|
|
1440
1510
|
/**
|
|
1441
1511
|
* The workspace on which to execute the request. It is not part of the open source API but used as a request path prefix to distinguish different virtual Prometheus instances of
|
|
1442
1512
|
* Google Prometheus Engine. The format is: projects/PROJECT_ID_OR_NUMBER.
|
|
@@ -1452,20 +1522,17 @@ declare namespace gapi.client {
|
|
|
1452
1522
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
1453
1523
|
quotaUser?:
|
|
1454
1524
|
string;
|
|
1455
|
-
/** The start time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp. */
|
|
1456
|
-
start?:
|
|
1457
|
-
string;
|
|
1458
1525
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
1459
1526
|
upload_protocol?:
|
|
1460
1527
|
string;
|
|
1461
1528
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1462
1529
|
uploadType?:
|
|
1463
1530
|
string;
|
|
1531
|
+
/** Request body */
|
|
1532
|
+
resource:
|
|
1533
|
+
QueryLabelsRequest;
|
|
1464
1534
|
}): Request<HttpBody>;
|
|
1465
|
-
|
|
1466
|
-
interface MetadataResource {
|
|
1467
|
-
/** Lists metadata for metrics. */
|
|
1468
|
-
list(request?: {
|
|
1535
|
+
labels(request: {
|
|
1469
1536
|
/** V1 error format. */
|
|
1470
1537
|
"$.xgafv"?:
|
|
1471
1538
|
string;
|
|
@@ -1484,18 +1551,12 @@ declare namespace gapi.client {
|
|
|
1484
1551
|
/** 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. */
|
|
1485
1552
|
key?:
|
|
1486
1553
|
string;
|
|
1487
|
-
/**
|
|
1488
|
-
limit?:
|
|
1489
|
-
string;
|
|
1490
|
-
/** Location of the resource information. Has to be "global" for now. */
|
|
1554
|
+
/** Location of the resource information. Has to be "global" now. */
|
|
1491
1555
|
location:
|
|
1492
1556
|
string;
|
|
1493
|
-
/** The metric name for which to query metadata. If unset, all metric metadata is returned. */
|
|
1494
|
-
metric?:
|
|
1495
|
-
string;
|
|
1496
1557
|
/**
|
|
1497
|
-
*
|
|
1498
|
-
*
|
|
1558
|
+
* The workspace on which to execute the request. It is not part of the open source API but used as a request path prefix to distinguish different virtual Prometheus instances of
|
|
1559
|
+
* Google Prometheus Engine. The format is: projects/PROJECT_ID_OR_NUMBER.
|
|
1499
1560
|
*/
|
|
1500
1561
|
name:
|
|
1501
1562
|
string;
|
|
@@ -1514,9 +1575,8 @@ declare namespace gapi.client {
|
|
|
1514
1575
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1515
1576
|
uploadType?:
|
|
1516
1577
|
string;
|
|
1517
|
-
}
|
|
1518
|
-
|
|
1519
|
-
interface V1Resource {
|
|
1578
|
+
},
|
|
1579
|
+
body: QueryLabelsRequest): Request<HttpBody>;
|
|
1520
1580
|
/** Evaluate a PromQL query at a single point in time. */
|
|
1521
1581
|
query(request: {
|
|
1522
1582
|
/** V1 error format. */
|
|
@@ -1891,8 +1951,6 @@ declare namespace gapi.client {
|
|
|
1891
1951
|
body: QuerySeriesRequest): Request<HttpBody>;
|
|
1892
1952
|
label:
|
|
1893
1953
|
LabelResource;
|
|
1894
|
-
labels:
|
|
1895
|
-
LabelsResource;
|
|
1896
1954
|
metadata:
|
|
1897
1955
|
MetadataResource;
|
|
1898
1956
|
}
|
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: 20230731
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -199,6 +199,14 @@ gapi.load('client', async () => {
|
|
|
199
199
|
text: {
|
|
200
200
|
content: "Test string",
|
|
201
201
|
format: "Test string",
|
|
202
|
+
style: {
|
|
203
|
+
backgroundColor: "Test string",
|
|
204
|
+
fontSize: "Test string",
|
|
205
|
+
horizontalAlignment: "Test string",
|
|
206
|
+
padding: "Test string",
|
|
207
|
+
textColor: "Test string",
|
|
208
|
+
verticalAlignment: "Test string",
|
|
209
|
+
},
|
|
202
210
|
},
|
|
203
211
|
timeSeriesTable: {
|
|
204
212
|
columnSettings: [
|
|
@@ -546,6 +554,14 @@ gapi.load('client', async () => {
|
|
|
546
554
|
text: {
|
|
547
555
|
content: "Test string",
|
|
548
556
|
format: "Test string",
|
|
557
|
+
style: {
|
|
558
|
+
backgroundColor: "Test string",
|
|
559
|
+
fontSize: "Test string",
|
|
560
|
+
horizontalAlignment: "Test string",
|
|
561
|
+
padding: "Test string",
|
|
562
|
+
textColor: "Test string",
|
|
563
|
+
verticalAlignment: "Test string",
|
|
564
|
+
},
|
|
549
565
|
},
|
|
550
566
|
timeSeriesTable: {
|
|
551
567
|
columnSettings: [
|
|
@@ -886,6 +902,14 @@ gapi.load('client', async () => {
|
|
|
886
902
|
text: {
|
|
887
903
|
content: "Test string",
|
|
888
904
|
format: "Test string",
|
|
905
|
+
style: {
|
|
906
|
+
backgroundColor: "Test string",
|
|
907
|
+
fontSize: "Test string",
|
|
908
|
+
horizontalAlignment: "Test string",
|
|
909
|
+
padding: "Test string",
|
|
910
|
+
textColor: "Test string",
|
|
911
|
+
verticalAlignment: "Test string",
|
|
912
|
+
},
|
|
889
913
|
},
|
|
890
914
|
timeSeriesTable: {
|
|
891
915
|
columnSettings: [
|
|
@@ -1228,6 +1252,14 @@ gapi.load('client', async () => {
|
|
|
1228
1252
|
text: {
|
|
1229
1253
|
content: "Test string",
|
|
1230
1254
|
format: "Test string",
|
|
1255
|
+
style: {
|
|
1256
|
+
backgroundColor: "Test string",
|
|
1257
|
+
fontSize: "Test string",
|
|
1258
|
+
horizontalAlignment: "Test string",
|
|
1259
|
+
padding: "Test string",
|
|
1260
|
+
textColor: "Test string",
|
|
1261
|
+
verticalAlignment: "Test string",
|
|
1262
|
+
},
|
|
1231
1263
|
},
|
|
1232
1264
|
timeSeriesTable: {
|
|
1233
1265
|
columnSettings: [
|
|
@@ -1599,6 +1631,14 @@ gapi.load('client', async () => {
|
|
|
1599
1631
|
text: {
|
|
1600
1632
|
content: "Test string",
|
|
1601
1633
|
format: "Test string",
|
|
1634
|
+
style: {
|
|
1635
|
+
backgroundColor: "Test string",
|
|
1636
|
+
fontSize: "Test string",
|
|
1637
|
+
horizontalAlignment: "Test string",
|
|
1638
|
+
padding: "Test string",
|
|
1639
|
+
textColor: "Test string",
|
|
1640
|
+
verticalAlignment: "Test string",
|
|
1641
|
+
},
|
|
1602
1642
|
},
|
|
1603
1643
|
timeSeriesTable: {
|
|
1604
1644
|
columnSettings: [
|
|
@@ -1946,6 +1986,14 @@ gapi.load('client', async () => {
|
|
|
1946
1986
|
text: {
|
|
1947
1987
|
content: "Test string",
|
|
1948
1988
|
format: "Test string",
|
|
1989
|
+
style: {
|
|
1990
|
+
backgroundColor: "Test string",
|
|
1991
|
+
fontSize: "Test string",
|
|
1992
|
+
horizontalAlignment: "Test string",
|
|
1993
|
+
padding: "Test string",
|
|
1994
|
+
textColor: "Test string",
|
|
1995
|
+
verticalAlignment: "Test string",
|
|
1996
|
+
},
|
|
1949
1997
|
},
|
|
1950
1998
|
timeSeriesTable: {
|
|
1951
1999
|
columnSettings: [
|
|
@@ -2286,6 +2334,14 @@ gapi.load('client', async () => {
|
|
|
2286
2334
|
text: {
|
|
2287
2335
|
content: "Test string",
|
|
2288
2336
|
format: "Test string",
|
|
2337
|
+
style: {
|
|
2338
|
+
backgroundColor: "Test string",
|
|
2339
|
+
fontSize: "Test string",
|
|
2340
|
+
horizontalAlignment: "Test string",
|
|
2341
|
+
padding: "Test string",
|
|
2342
|
+
textColor: "Test string",
|
|
2343
|
+
verticalAlignment: "Test string",
|
|
2344
|
+
},
|
|
2289
2345
|
},
|
|
2290
2346
|
timeSeriesTable: {
|
|
2291
2347
|
columnSettings: [
|
|
@@ -2628,6 +2684,14 @@ gapi.load('client', async () => {
|
|
|
2628
2684
|
text: {
|
|
2629
2685
|
content: "Test string",
|
|
2630
2686
|
format: "Test string",
|
|
2687
|
+
style: {
|
|
2688
|
+
backgroundColor: "Test string",
|
|
2689
|
+
fontSize: "Test string",
|
|
2690
|
+
horizontalAlignment: "Test string",
|
|
2691
|
+
padding: "Test string",
|
|
2692
|
+
textColor: "Test string",
|
|
2693
|
+
verticalAlignment: "Test string",
|
|
2694
|
+
},
|
|
2631
2695
|
},
|
|
2632
2696
|
timeSeriesTable: {
|
|
2633
2697
|
columnSettings: [
|
|
@@ -2839,6 +2903,15 @@ gapi.load('client', async () => {
|
|
|
2839
2903
|
],
|
|
2840
2904
|
},
|
|
2841
2905
|
});
|
|
2906
|
+
/** Lists labels for metrics. */
|
|
2907
|
+
await gapi.client.monitoring.projects.location.prometheus.api.v1.labels({
|
|
2908
|
+
location: "Test string",
|
|
2909
|
+
name: "Test string",
|
|
2910
|
+
}, {
|
|
2911
|
+
end: "Test string",
|
|
2912
|
+
match: "Test string",
|
|
2913
|
+
start: "Test string",
|
|
2914
|
+
});
|
|
2842
2915
|
/** Evaluate a PromQL query at a single point in time. */
|
|
2843
2916
|
await gapi.client.monitoring.projects.location.prometheus.api.v1.query({
|
|
2844
2917
|
location: "Test string",
|
|
@@ -2885,14 +2958,6 @@ gapi.load('client', async () => {
|
|
|
2885
2958
|
name: "Test string",
|
|
2886
2959
|
start: "Test string",
|
|
2887
2960
|
});
|
|
2888
|
-
/** Lists labels for metrics. */
|
|
2889
|
-
await gapi.client.monitoring.projects.location.prometheus.api.v1.labels.list({
|
|
2890
|
-
end: "Test string",
|
|
2891
|
-
location: "Test string",
|
|
2892
|
-
match: "Test string",
|
|
2893
|
-
name: "Test string",
|
|
2894
|
-
start: "Test string",
|
|
2895
|
-
});
|
|
2896
2961
|
/** Lists metadata for metrics. */
|
|
2897
2962
|
await gapi.client.monitoring.projects.location.prometheus.api.v1.metadata.list({
|
|
2898
2963
|
limit: "Test string",
|