@maxim_mazurok/gapi.client.monitoring-v1 0.0.20230123 → 0.0.20230130

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 +75 -1
  2. package/package.json +1 -1
  3. package/tests.ts +10 -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: 20230123
12
+ // Revision: 20230130
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -298,6 +298,14 @@ declare namespace gapi.client {
298
298
  /** ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series. */
299
299
  rankingMethod?: string;
300
300
  }
301
+ interface QueryExemplarsRequest {
302
+ /** The end time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp. */
303
+ end?: string;
304
+ /** A PromQL query string. Query lanauge documentation: https://prometheus.io/docs/prometheus/latest/querying/basics/. */
305
+ query?: string;
306
+ /** The start time to evaluate the query for. Either floating point UNIX seconds or RFC3339 formatted timestamp. */
307
+ start?: string;
308
+ }
301
309
  interface QueryInstantRequest {
302
310
  /** A PromQL query string. Query lanauge documentation: https://prometheus.io/docs/prometheus/latest/querying/basics/. */
303
311
  query?: string;
@@ -1160,6 +1168,72 @@ declare namespace gapi.client {
1160
1168
  uploadType?: string;
1161
1169
  },
1162
1170
  body: QueryInstantRequest): Request<HttpBody>;
1171
+ /** Lists exemplars relevant to a given PromQL query, */
1172
+ query_exemplars(request: {
1173
+ /** V1 error format. */
1174
+ "$.xgafv"?: string;
1175
+ /** OAuth access token. */
1176
+ access_token?: string;
1177
+ /** Data format for response. */
1178
+ alt?: string;
1179
+ /** JSONP */
1180
+ callback?: string;
1181
+ /** Selector specifying which fields to include in a partial response. */
1182
+ fields?: string;
1183
+ /** 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. */
1184
+ key?: string;
1185
+ /** Location of the resource information. Has to be "global" now. */
1186
+ location: string;
1187
+ /**
1188
+ * The project on which to execute the request. Data associcated with the project's workspace stored under the The format is: projects/PROJECT_ID_OR_NUMBER. Open source API but
1189
+ * used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine.
1190
+ */
1191
+ name: string;
1192
+ /** OAuth 2.0 token for the current user. */
1193
+ oauth_token?: string;
1194
+ /** Returns response with indentations and line breaks. */
1195
+ prettyPrint?: boolean;
1196
+ /** 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. */
1197
+ quotaUser?: string;
1198
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1199
+ upload_protocol?: string;
1200
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1201
+ uploadType?: string;
1202
+ /** Request body */
1203
+ resource: QueryExemplarsRequest;
1204
+ }): Request<HttpBody>;
1205
+ query_exemplars(request: {
1206
+ /** V1 error format. */
1207
+ "$.xgafv"?: string;
1208
+ /** OAuth access token. */
1209
+ access_token?: string;
1210
+ /** Data format for response. */
1211
+ alt?: string;
1212
+ /** JSONP */
1213
+ callback?: string;
1214
+ /** Selector specifying which fields to include in a partial response. */
1215
+ fields?: string;
1216
+ /** 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. */
1217
+ key?: string;
1218
+ /** Location of the resource information. Has to be "global" now. */
1219
+ location: string;
1220
+ /**
1221
+ * The project on which to execute the request. Data associcated with the project's workspace stored under the The format is: projects/PROJECT_ID_OR_NUMBER. Open source API but
1222
+ * used as a request path prefix to distinguish different virtual Prometheus instances of Google Prometheus Engine.
1223
+ */
1224
+ name: string;
1225
+ /** OAuth 2.0 token for the current user. */
1226
+ oauth_token?: string;
1227
+ /** Returns response with indentations and line breaks. */
1228
+ prettyPrint?: boolean;
1229
+ /** 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. */
1230
+ quotaUser?: string;
1231
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
1232
+ upload_protocol?: string;
1233
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1234
+ uploadType?: string;
1235
+ },
1236
+ body: QueryExemplarsRequest): Request<HttpBody>;
1163
1237
  /** Evaluate a PromQL query with start, end time range. */
1164
1238
  query_range(request: {
1165
1239
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.monitoring-v1",
3
- "version": "0.0.20230123",
3
+ "version": "0.0.20230130",
4
4
  "description": "TypeScript typings for Cloud Monitoring API v1",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230123
6
+ // Revision: 20230130
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */
@@ -2744,6 +2744,15 @@ gapi.load('client', async () => {
2744
2744
  time: "Test string",
2745
2745
  timeout: "Test string",
2746
2746
  });
2747
+ /** Lists exemplars relevant to a given PromQL query, */
2748
+ await gapi.client.monitoring.projects.location.prometheus.api.v1.query_exemplars({
2749
+ location: "Test string",
2750
+ name: "Test string",
2751
+ }, {
2752
+ end: "Test string",
2753
+ query: "Test string",
2754
+ start: "Test string",
2755
+ });
2747
2756
  /** Evaluate a PromQL query with start, end time range. */
2748
2757
  await gapi.client.monitoring.projects.location.prometheus.api.v1.query_range({
2749
2758
  location: "Test string",