@maxim_mazurok/gapi.client.monitoring-v1 0.0.20230724 → 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 +36 -4
  2. package/package.json +2 -2
  3. package/tests.ts +105 -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: 20230724
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;
@@ -586,6 +589,29 @@ declare namespace gapi.client {
586
589
  /** How the text content is formatted. */
587
590
  format?:
588
591
  string;
592
+ /** How the text is styled */
593
+ style?:
594
+ TextStyle;
595
+ }
596
+ interface TextStyle {
597
+ /** The background color as a hex string. "#RRGGBB" or "#RGB" */
598
+ backgroundColor?:
599
+ string;
600
+ /** Font sizes for both the title and content. The title will still be larger relative to the content. */
601
+ fontSize?:
602
+ string;
603
+ /** The horizontal alignment of both the title and content */
604
+ horizontalAlignment?:
605
+ string;
606
+ /** The amount of padding around the widget */
607
+ padding?:
608
+ string;
609
+ /** The text color as a hex string. "#RRGGBB" or "#RGB" */
610
+ textColor?:
611
+ string;
612
+ /** The vertical alignment of both the title and content */
613
+ verticalAlignment?:
614
+ string;
589
615
  }
590
616
  interface Threshold {
591
617
  /** The state color for this threshold. Color is not allowed in a XyChart. */
@@ -656,6 +682,12 @@ declare namespace gapi.client {
656
682
  StatisticalTimeSeriesFilter;
657
683
  }
658
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;
659
691
  /** A query used to fetch time series with PromQL. */
660
692
  prometheusQuery?:
661
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.20230724",
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: 20230724
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: {
@@ -199,6 +202,14 @@ gapi.load('client', async () => {
199
202
  text: {
200
203
  content: "Test string",
201
204
  format: "Test string",
205
+ style: {
206
+ backgroundColor: "Test string",
207
+ fontSize: "Test string",
208
+ horizontalAlignment: "Test string",
209
+ padding: "Test string",
210
+ textColor: "Test string",
211
+ verticalAlignment: "Test string",
212
+ },
202
213
  },
203
214
  timeSeriesTable: {
204
215
  columnSettings: [
@@ -217,6 +228,7 @@ gapi.load('client', async () => {
217
228
  },
218
229
  tableTemplate: "Test string",
219
230
  timeSeriesQuery: {
231
+ outputFullDuration: true,
220
232
  prometheusQuery: "Test string",
221
233
  timeSeriesFilter: {
222
234
  aggregation: {
@@ -306,6 +318,7 @@ gapi.load('client', async () => {
306
318
  plotType: "Test string",
307
319
  targetAxis: "Test string",
308
320
  timeSeriesQuery: {
321
+ outputFullDuration: true,
309
322
  prometheusQuery: "Test string",
310
323
  timeSeriesFilter: {
311
324
  aggregation: {
@@ -451,6 +464,8 @@ gapi.load('client', async () => {
451
464
  ],
452
465
  },
453
466
  scorecard: {
467
+ blankView: {
468
+ },
454
469
  gaugeView: {
455
470
  lowerBound: 42,
456
471
  upperBound: 42,
@@ -469,6 +484,7 @@ gapi.load('client', async () => {
469
484
  }
470
485
  ],
471
486
  timeSeriesQuery: {
487
+ outputFullDuration: true,
472
488
  prometheusQuery: "Test string",
473
489
  timeSeriesFilter: {
474
490
  aggregation: {
@@ -546,6 +562,14 @@ gapi.load('client', async () => {
546
562
  text: {
547
563
  content: "Test string",
548
564
  format: "Test string",
565
+ style: {
566
+ backgroundColor: "Test string",
567
+ fontSize: "Test string",
568
+ horizontalAlignment: "Test string",
569
+ padding: "Test string",
570
+ textColor: "Test string",
571
+ verticalAlignment: "Test string",
572
+ },
549
573
  },
550
574
  timeSeriesTable: {
551
575
  columnSettings: [
@@ -564,6 +588,7 @@ gapi.load('client', async () => {
564
588
  },
565
589
  tableTemplate: "Test string",
566
590
  timeSeriesQuery: {
591
+ outputFullDuration: true,
567
592
  prometheusQuery: "Test string",
568
593
  timeSeriesFilter: {
569
594
  aggregation: {
@@ -653,6 +678,7 @@ gapi.load('client', async () => {
653
678
  plotType: "Test string",
654
679
  targetAxis: "Test string",
655
680
  timeSeriesQuery: {
681
+ outputFullDuration: true,
656
682
  prometheusQuery: "Test string",
657
683
  timeSeriesFilter: {
658
684
  aggregation: {
@@ -791,6 +817,8 @@ gapi.load('client', async () => {
791
817
  ],
792
818
  },
793
819
  scorecard: {
820
+ blankView: {
821
+ },
794
822
  gaugeView: {
795
823
  lowerBound: 42,
796
824
  upperBound: 42,
@@ -809,6 +837,7 @@ gapi.load('client', async () => {
809
837
  }
810
838
  ],
811
839
  timeSeriesQuery: {
840
+ outputFullDuration: true,
812
841
  prometheusQuery: "Test string",
813
842
  timeSeriesFilter: {
814
843
  aggregation: {
@@ -886,6 +915,14 @@ gapi.load('client', async () => {
886
915
  text: {
887
916
  content: "Test string",
888
917
  format: "Test string",
918
+ style: {
919
+ backgroundColor: "Test string",
920
+ fontSize: "Test string",
921
+ horizontalAlignment: "Test string",
922
+ padding: "Test string",
923
+ textColor: "Test string",
924
+ verticalAlignment: "Test string",
925
+ },
889
926
  },
890
927
  timeSeriesTable: {
891
928
  columnSettings: [
@@ -904,6 +941,7 @@ gapi.load('client', async () => {
904
941
  },
905
942
  tableTemplate: "Test string",
906
943
  timeSeriesQuery: {
944
+ outputFullDuration: true,
907
945
  prometheusQuery: "Test string",
908
946
  timeSeriesFilter: {
909
947
  aggregation: {
@@ -993,6 +1031,7 @@ gapi.load('client', async () => {
993
1031
  plotType: "Test string",
994
1032
  targetAxis: "Test string",
995
1033
  timeSeriesQuery: {
1034
+ outputFullDuration: true,
996
1035
  prometheusQuery: "Test string",
997
1036
  timeSeriesFilter: {
998
1037
  aggregation: {
@@ -1133,6 +1172,8 @@ gapi.load('client', async () => {
1133
1172
  ],
1134
1173
  },
1135
1174
  scorecard: {
1175
+ blankView: {
1176
+ },
1136
1177
  gaugeView: {
1137
1178
  lowerBound: 42,
1138
1179
  upperBound: 42,
@@ -1151,6 +1192,7 @@ gapi.load('client', async () => {
1151
1192
  }
1152
1193
  ],
1153
1194
  timeSeriesQuery: {
1195
+ outputFullDuration: true,
1154
1196
  prometheusQuery: "Test string",
1155
1197
  timeSeriesFilter: {
1156
1198
  aggregation: {
@@ -1228,6 +1270,14 @@ gapi.load('client', async () => {
1228
1270
  text: {
1229
1271
  content: "Test string",
1230
1272
  format: "Test string",
1273
+ style: {
1274
+ backgroundColor: "Test string",
1275
+ fontSize: "Test string",
1276
+ horizontalAlignment: "Test string",
1277
+ padding: "Test string",
1278
+ textColor: "Test string",
1279
+ verticalAlignment: "Test string",
1280
+ },
1231
1281
  },
1232
1282
  timeSeriesTable: {
1233
1283
  columnSettings: [
@@ -1246,6 +1296,7 @@ gapi.load('client', async () => {
1246
1296
  },
1247
1297
  tableTemplate: "Test string",
1248
1298
  timeSeriesQuery: {
1299
+ outputFullDuration: true,
1249
1300
  prometheusQuery: "Test string",
1250
1301
  timeSeriesFilter: {
1251
1302
  aggregation: {
@@ -1335,6 +1386,7 @@ gapi.load('client', async () => {
1335
1386
  plotType: "Test string",
1336
1387
  targetAxis: "Test string",
1337
1388
  timeSeriesQuery: {
1389
+ outputFullDuration: true,
1338
1390
  prometheusQuery: "Test string",
1339
1391
  timeSeriesFilter: {
1340
1392
  aggregation: {
@@ -1504,6 +1556,8 @@ gapi.load('client', async () => {
1504
1556
  ],
1505
1557
  },
1506
1558
  scorecard: {
1559
+ blankView: {
1560
+ },
1507
1561
  gaugeView: {
1508
1562
  lowerBound: 42,
1509
1563
  upperBound: 42,
@@ -1522,6 +1576,7 @@ gapi.load('client', async () => {
1522
1576
  }
1523
1577
  ],
1524
1578
  timeSeriesQuery: {
1579
+ outputFullDuration: true,
1525
1580
  prometheusQuery: "Test string",
1526
1581
  timeSeriesFilter: {
1527
1582
  aggregation: {
@@ -1599,6 +1654,14 @@ gapi.load('client', async () => {
1599
1654
  text: {
1600
1655
  content: "Test string",
1601
1656
  format: "Test string",
1657
+ style: {
1658
+ backgroundColor: "Test string",
1659
+ fontSize: "Test string",
1660
+ horizontalAlignment: "Test string",
1661
+ padding: "Test string",
1662
+ textColor: "Test string",
1663
+ verticalAlignment: "Test string",
1664
+ },
1602
1665
  },
1603
1666
  timeSeriesTable: {
1604
1667
  columnSettings: [
@@ -1617,6 +1680,7 @@ gapi.load('client', async () => {
1617
1680
  },
1618
1681
  tableTemplate: "Test string",
1619
1682
  timeSeriesQuery: {
1683
+ outputFullDuration: true,
1620
1684
  prometheusQuery: "Test string",
1621
1685
  timeSeriesFilter: {
1622
1686
  aggregation: {
@@ -1706,6 +1770,7 @@ gapi.load('client', async () => {
1706
1770
  plotType: "Test string",
1707
1771
  targetAxis: "Test string",
1708
1772
  timeSeriesQuery: {
1773
+ outputFullDuration: true,
1709
1774
  prometheusQuery: "Test string",
1710
1775
  timeSeriesFilter: {
1711
1776
  aggregation: {
@@ -1851,6 +1916,8 @@ gapi.load('client', async () => {
1851
1916
  ],
1852
1917
  },
1853
1918
  scorecard: {
1919
+ blankView: {
1920
+ },
1854
1921
  gaugeView: {
1855
1922
  lowerBound: 42,
1856
1923
  upperBound: 42,
@@ -1869,6 +1936,7 @@ gapi.load('client', async () => {
1869
1936
  }
1870
1937
  ],
1871
1938
  timeSeriesQuery: {
1939
+ outputFullDuration: true,
1872
1940
  prometheusQuery: "Test string",
1873
1941
  timeSeriesFilter: {
1874
1942
  aggregation: {
@@ -1946,6 +2014,14 @@ gapi.load('client', async () => {
1946
2014
  text: {
1947
2015
  content: "Test string",
1948
2016
  format: "Test string",
2017
+ style: {
2018
+ backgroundColor: "Test string",
2019
+ fontSize: "Test string",
2020
+ horizontalAlignment: "Test string",
2021
+ padding: "Test string",
2022
+ textColor: "Test string",
2023
+ verticalAlignment: "Test string",
2024
+ },
1949
2025
  },
1950
2026
  timeSeriesTable: {
1951
2027
  columnSettings: [
@@ -1964,6 +2040,7 @@ gapi.load('client', async () => {
1964
2040
  },
1965
2041
  tableTemplate: "Test string",
1966
2042
  timeSeriesQuery: {
2043
+ outputFullDuration: true,
1967
2044
  prometheusQuery: "Test string",
1968
2045
  timeSeriesFilter: {
1969
2046
  aggregation: {
@@ -2053,6 +2130,7 @@ gapi.load('client', async () => {
2053
2130
  plotType: "Test string",
2054
2131
  targetAxis: "Test string",
2055
2132
  timeSeriesQuery: {
2133
+ outputFullDuration: true,
2056
2134
  prometheusQuery: "Test string",
2057
2135
  timeSeriesFilter: {
2058
2136
  aggregation: {
@@ -2191,6 +2269,8 @@ gapi.load('client', async () => {
2191
2269
  ],
2192
2270
  },
2193
2271
  scorecard: {
2272
+ blankView: {
2273
+ },
2194
2274
  gaugeView: {
2195
2275
  lowerBound: 42,
2196
2276
  upperBound: 42,
@@ -2209,6 +2289,7 @@ gapi.load('client', async () => {
2209
2289
  }
2210
2290
  ],
2211
2291
  timeSeriesQuery: {
2292
+ outputFullDuration: true,
2212
2293
  prometheusQuery: "Test string",
2213
2294
  timeSeriesFilter: {
2214
2295
  aggregation: {
@@ -2286,6 +2367,14 @@ gapi.load('client', async () => {
2286
2367
  text: {
2287
2368
  content: "Test string",
2288
2369
  format: "Test string",
2370
+ style: {
2371
+ backgroundColor: "Test string",
2372
+ fontSize: "Test string",
2373
+ horizontalAlignment: "Test string",
2374
+ padding: "Test string",
2375
+ textColor: "Test string",
2376
+ verticalAlignment: "Test string",
2377
+ },
2289
2378
  },
2290
2379
  timeSeriesTable: {
2291
2380
  columnSettings: [
@@ -2304,6 +2393,7 @@ gapi.load('client', async () => {
2304
2393
  },
2305
2394
  tableTemplate: "Test string",
2306
2395
  timeSeriesQuery: {
2396
+ outputFullDuration: true,
2307
2397
  prometheusQuery: "Test string",
2308
2398
  timeSeriesFilter: {
2309
2399
  aggregation: {
@@ -2393,6 +2483,7 @@ gapi.load('client', async () => {
2393
2483
  plotType: "Test string",
2394
2484
  targetAxis: "Test string",
2395
2485
  timeSeriesQuery: {
2486
+ outputFullDuration: true,
2396
2487
  prometheusQuery: "Test string",
2397
2488
  timeSeriesFilter: {
2398
2489
  aggregation: {
@@ -2533,6 +2624,8 @@ gapi.load('client', async () => {
2533
2624
  ],
2534
2625
  },
2535
2626
  scorecard: {
2627
+ blankView: {
2628
+ },
2536
2629
  gaugeView: {
2537
2630
  lowerBound: 42,
2538
2631
  upperBound: 42,
@@ -2551,6 +2644,7 @@ gapi.load('client', async () => {
2551
2644
  }
2552
2645
  ],
2553
2646
  timeSeriesQuery: {
2647
+ outputFullDuration: true,
2554
2648
  prometheusQuery: "Test string",
2555
2649
  timeSeriesFilter: {
2556
2650
  aggregation: {
@@ -2628,6 +2722,14 @@ gapi.load('client', async () => {
2628
2722
  text: {
2629
2723
  content: "Test string",
2630
2724
  format: "Test string",
2725
+ style: {
2726
+ backgroundColor: "Test string",
2727
+ fontSize: "Test string",
2728
+ horizontalAlignment: "Test string",
2729
+ padding: "Test string",
2730
+ textColor: "Test string",
2731
+ verticalAlignment: "Test string",
2732
+ },
2631
2733
  },
2632
2734
  timeSeriesTable: {
2633
2735
  columnSettings: [
@@ -2646,6 +2748,7 @@ gapi.load('client', async () => {
2646
2748
  },
2647
2749
  tableTemplate: "Test string",
2648
2750
  timeSeriesQuery: {
2751
+ outputFullDuration: true,
2649
2752
  prometheusQuery: "Test string",
2650
2753
  timeSeriesFilter: {
2651
2754
  aggregation: {
@@ -2735,6 +2838,7 @@ gapi.load('client', async () => {
2735
2838
  plotType: "Test string",
2736
2839
  targetAxis: "Test string",
2737
2840
  timeSeriesQuery: {
2841
+ outputFullDuration: true,
2738
2842
  prometheusQuery: "Test string",
2739
2843
  timeSeriesFilter: {
2740
2844
  aggregation: {