@maxim_mazurok/gapi.client.monitoring-v1 0.0.20230731 → 0.0.20230806

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 +13 -4
  2. package/package.json +2 -2
  3. package/tests.ts +41 -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=v1
12
- // Revision: 20230731
12
+ // Revision: 20230806
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -349,9 +349,9 @@ declare namespace gapi.client {
349
349
  name?:
350
350
  string;
351
351
  /**
352
- * The normal response of the operation in case of success. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original
353
- * method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name.
354
- * For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
352
+ * The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is
353
+ * standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For
354
+ * example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.
355
355
  */
356
356
  response?:
357
357
  { [P in string]: any };
@@ -484,6 +484,9 @@ declare namespace gapi.client {
484
484
  Row[];
485
485
  }
486
486
  interface Scorecard {
487
+ /** Will cause the Scorecard to show only the value, with no indicator to its value relative to its thresholds. */
488
+ blankView?:
489
+ any;
487
490
  /** Will cause the scorecard to show a gauge chart. */
488
491
  gaugeView?:
489
492
  GaugeView;
@@ -679,6 +682,12 @@ declare namespace gapi.client {
679
682
  StatisticalTimeSeriesFilter;
680
683
  }
681
684
  interface TimeSeriesQuery {
685
+ /**
686
+ * Optional. If set, Cloud Monitoring will treat the full query duration as the alignment period so that there will be only 1 output value.*Note: This could override the configured
687
+ * alignment period except for the cases where a series of data points are expected, like - XyChart - Scorecard's spark chart
688
+ */
689
+ outputFullDuration?:
690
+ boolean;
682
691
  /** A query used to fetch time series with PromQL. */
683
692
  prometheusQuery?:
684
693
  string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.monitoring-v1",
3
- "version": "0.0.20230731",
3
+ "version": "0.0.20230806",
4
4
  "description": "TypeScript typings for Cloud Monitoring API v1",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -15,6 +15,6 @@
15
15
  "types": "index.d.ts",
16
16
  "dependencies": {
17
17
  "@types/gapi.client": "*",
18
- "@types/gapi.client.discovery": "*"
18
+ "@types/gapi.client.discovery-v1": "*"
19
19
  }
20
20
  }
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: 20230731
6
+ // Revision: 20230806
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -104,6 +104,8 @@ gapi.load('client', async () => {
104
104
  ],
105
105
  },
106
106
  scorecard: {
107
+ blankView: {
108
+ },
107
109
  gaugeView: {
108
110
  lowerBound: 42,
109
111
  upperBound: 42,
@@ -122,6 +124,7 @@ gapi.load('client', async () => {
122
124
  }
123
125
  ],
124
126
  timeSeriesQuery: {
127
+ outputFullDuration: true,
125
128
  prometheusQuery: "Test string",
126
129
  timeSeriesFilter: {
127
130
  aggregation: {
@@ -225,6 +228,7 @@ gapi.load('client', async () => {
225
228
  },
226
229
  tableTemplate: "Test string",
227
230
  timeSeriesQuery: {
231
+ outputFullDuration: true,
228
232
  prometheusQuery: "Test string",
229
233
  timeSeriesFilter: {
230
234
  aggregation: {
@@ -314,6 +318,7 @@ gapi.load('client', async () => {
314
318
  plotType: "Test string",
315
319
  targetAxis: "Test string",
316
320
  timeSeriesQuery: {
321
+ outputFullDuration: true,
317
322
  prometheusQuery: "Test string",
318
323
  timeSeriesFilter: {
319
324
  aggregation: {
@@ -459,6 +464,8 @@ gapi.load('client', async () => {
459
464
  ],
460
465
  },
461
466
  scorecard: {
467
+ blankView: {
468
+ },
462
469
  gaugeView: {
463
470
  lowerBound: 42,
464
471
  upperBound: 42,
@@ -477,6 +484,7 @@ gapi.load('client', async () => {
477
484
  }
478
485
  ],
479
486
  timeSeriesQuery: {
487
+ outputFullDuration: true,
480
488
  prometheusQuery: "Test string",
481
489
  timeSeriesFilter: {
482
490
  aggregation: {
@@ -580,6 +588,7 @@ gapi.load('client', async () => {
580
588
  },
581
589
  tableTemplate: "Test string",
582
590
  timeSeriesQuery: {
591
+ outputFullDuration: true,
583
592
  prometheusQuery: "Test string",
584
593
  timeSeriesFilter: {
585
594
  aggregation: {
@@ -669,6 +678,7 @@ gapi.load('client', async () => {
669
678
  plotType: "Test string",
670
679
  targetAxis: "Test string",
671
680
  timeSeriesQuery: {
681
+ outputFullDuration: true,
672
682
  prometheusQuery: "Test string",
673
683
  timeSeriesFilter: {
674
684
  aggregation: {
@@ -807,6 +817,8 @@ gapi.load('client', async () => {
807
817
  ],
808
818
  },
809
819
  scorecard: {
820
+ blankView: {
821
+ },
810
822
  gaugeView: {
811
823
  lowerBound: 42,
812
824
  upperBound: 42,
@@ -825,6 +837,7 @@ gapi.load('client', async () => {
825
837
  }
826
838
  ],
827
839
  timeSeriesQuery: {
840
+ outputFullDuration: true,
828
841
  prometheusQuery: "Test string",
829
842
  timeSeriesFilter: {
830
843
  aggregation: {
@@ -928,6 +941,7 @@ gapi.load('client', async () => {
928
941
  },
929
942
  tableTemplate: "Test string",
930
943
  timeSeriesQuery: {
944
+ outputFullDuration: true,
931
945
  prometheusQuery: "Test string",
932
946
  timeSeriesFilter: {
933
947
  aggregation: {
@@ -1017,6 +1031,7 @@ gapi.load('client', async () => {
1017
1031
  plotType: "Test string",
1018
1032
  targetAxis: "Test string",
1019
1033
  timeSeriesQuery: {
1034
+ outputFullDuration: true,
1020
1035
  prometheusQuery: "Test string",
1021
1036
  timeSeriesFilter: {
1022
1037
  aggregation: {
@@ -1157,6 +1172,8 @@ gapi.load('client', async () => {
1157
1172
  ],
1158
1173
  },
1159
1174
  scorecard: {
1175
+ blankView: {
1176
+ },
1160
1177
  gaugeView: {
1161
1178
  lowerBound: 42,
1162
1179
  upperBound: 42,
@@ -1175,6 +1192,7 @@ gapi.load('client', async () => {
1175
1192
  }
1176
1193
  ],
1177
1194
  timeSeriesQuery: {
1195
+ outputFullDuration: true,
1178
1196
  prometheusQuery: "Test string",
1179
1197
  timeSeriesFilter: {
1180
1198
  aggregation: {
@@ -1278,6 +1296,7 @@ gapi.load('client', async () => {
1278
1296
  },
1279
1297
  tableTemplate: "Test string",
1280
1298
  timeSeriesQuery: {
1299
+ outputFullDuration: true,
1281
1300
  prometheusQuery: "Test string",
1282
1301
  timeSeriesFilter: {
1283
1302
  aggregation: {
@@ -1367,6 +1386,7 @@ gapi.load('client', async () => {
1367
1386
  plotType: "Test string",
1368
1387
  targetAxis: "Test string",
1369
1388
  timeSeriesQuery: {
1389
+ outputFullDuration: true,
1370
1390
  prometheusQuery: "Test string",
1371
1391
  timeSeriesFilter: {
1372
1392
  aggregation: {
@@ -1536,6 +1556,8 @@ gapi.load('client', async () => {
1536
1556
  ],
1537
1557
  },
1538
1558
  scorecard: {
1559
+ blankView: {
1560
+ },
1539
1561
  gaugeView: {
1540
1562
  lowerBound: 42,
1541
1563
  upperBound: 42,
@@ -1554,6 +1576,7 @@ gapi.load('client', async () => {
1554
1576
  }
1555
1577
  ],
1556
1578
  timeSeriesQuery: {
1579
+ outputFullDuration: true,
1557
1580
  prometheusQuery: "Test string",
1558
1581
  timeSeriesFilter: {
1559
1582
  aggregation: {
@@ -1657,6 +1680,7 @@ gapi.load('client', async () => {
1657
1680
  },
1658
1681
  tableTemplate: "Test string",
1659
1682
  timeSeriesQuery: {
1683
+ outputFullDuration: true,
1660
1684
  prometheusQuery: "Test string",
1661
1685
  timeSeriesFilter: {
1662
1686
  aggregation: {
@@ -1746,6 +1770,7 @@ gapi.load('client', async () => {
1746
1770
  plotType: "Test string",
1747
1771
  targetAxis: "Test string",
1748
1772
  timeSeriesQuery: {
1773
+ outputFullDuration: true,
1749
1774
  prometheusQuery: "Test string",
1750
1775
  timeSeriesFilter: {
1751
1776
  aggregation: {
@@ -1891,6 +1916,8 @@ gapi.load('client', async () => {
1891
1916
  ],
1892
1917
  },
1893
1918
  scorecard: {
1919
+ blankView: {
1920
+ },
1894
1921
  gaugeView: {
1895
1922
  lowerBound: 42,
1896
1923
  upperBound: 42,
@@ -1909,6 +1936,7 @@ gapi.load('client', async () => {
1909
1936
  }
1910
1937
  ],
1911
1938
  timeSeriesQuery: {
1939
+ outputFullDuration: true,
1912
1940
  prometheusQuery: "Test string",
1913
1941
  timeSeriesFilter: {
1914
1942
  aggregation: {
@@ -2012,6 +2040,7 @@ gapi.load('client', async () => {
2012
2040
  },
2013
2041
  tableTemplate: "Test string",
2014
2042
  timeSeriesQuery: {
2043
+ outputFullDuration: true,
2015
2044
  prometheusQuery: "Test string",
2016
2045
  timeSeriesFilter: {
2017
2046
  aggregation: {
@@ -2101,6 +2130,7 @@ gapi.load('client', async () => {
2101
2130
  plotType: "Test string",
2102
2131
  targetAxis: "Test string",
2103
2132
  timeSeriesQuery: {
2133
+ outputFullDuration: true,
2104
2134
  prometheusQuery: "Test string",
2105
2135
  timeSeriesFilter: {
2106
2136
  aggregation: {
@@ -2239,6 +2269,8 @@ gapi.load('client', async () => {
2239
2269
  ],
2240
2270
  },
2241
2271
  scorecard: {
2272
+ blankView: {
2273
+ },
2242
2274
  gaugeView: {
2243
2275
  lowerBound: 42,
2244
2276
  upperBound: 42,
@@ -2257,6 +2289,7 @@ gapi.load('client', async () => {
2257
2289
  }
2258
2290
  ],
2259
2291
  timeSeriesQuery: {
2292
+ outputFullDuration: true,
2260
2293
  prometheusQuery: "Test string",
2261
2294
  timeSeriesFilter: {
2262
2295
  aggregation: {
@@ -2360,6 +2393,7 @@ gapi.load('client', async () => {
2360
2393
  },
2361
2394
  tableTemplate: "Test string",
2362
2395
  timeSeriesQuery: {
2396
+ outputFullDuration: true,
2363
2397
  prometheusQuery: "Test string",
2364
2398
  timeSeriesFilter: {
2365
2399
  aggregation: {
@@ -2449,6 +2483,7 @@ gapi.load('client', async () => {
2449
2483
  plotType: "Test string",
2450
2484
  targetAxis: "Test string",
2451
2485
  timeSeriesQuery: {
2486
+ outputFullDuration: true,
2452
2487
  prometheusQuery: "Test string",
2453
2488
  timeSeriesFilter: {
2454
2489
  aggregation: {
@@ -2589,6 +2624,8 @@ gapi.load('client', async () => {
2589
2624
  ],
2590
2625
  },
2591
2626
  scorecard: {
2627
+ blankView: {
2628
+ },
2592
2629
  gaugeView: {
2593
2630
  lowerBound: 42,
2594
2631
  upperBound: 42,
@@ -2607,6 +2644,7 @@ gapi.load('client', async () => {
2607
2644
  }
2608
2645
  ],
2609
2646
  timeSeriesQuery: {
2647
+ outputFullDuration: true,
2610
2648
  prometheusQuery: "Test string",
2611
2649
  timeSeriesFilter: {
2612
2650
  aggregation: {
@@ -2710,6 +2748,7 @@ gapi.load('client', async () => {
2710
2748
  },
2711
2749
  tableTemplate: "Test string",
2712
2750
  timeSeriesQuery: {
2751
+ outputFullDuration: true,
2713
2752
  prometheusQuery: "Test string",
2714
2753
  timeSeriesFilter: {
2715
2754
  aggregation: {
@@ -2799,6 +2838,7 @@ gapi.load('client', async () => {
2799
2838
  plotType: "Test string",
2800
2839
  targetAxis: "Test string",
2801
2840
  timeSeriesQuery: {
2841
+ outputFullDuration: true,
2802
2842
  prometheusQuery: "Test string",
2803
2843
  timeSeriesFilter: {
2804
2844
  aggregation: {