kb-cloud-client-typescript 2.3.0-alpha.113 → 2.3.0-alpha.115

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.
@@ -39,19 +39,23 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
39
39
  *
40
40
  * @summary List bills in the organization
41
41
  * @param {string} orgName name of the organization
42
+ * @param {AggregationTimeType} aggregationTime The type of aggregation time
43
+ * @param {OrgAggregationGroupType} aggregationGroup The type of aggregation group
42
44
  * @param {number} start The start of the time range for the query, unit is seconds.
43
45
  * @param {number} end The end of the time range for the query, unit is seconds.
44
46
  * @param {string} [billID] The ID of the bill
45
47
  * @param {string} [clusterID] The ID of the cluster
46
48
  * @param {string} [projectName] name of the project
47
- * @param {AggregationTimeType} [aggregationTime] The type of aggregation time
48
- * @param {OrgAggregationGroupType} [aggregationGroup] The type of aggregation group
49
49
  * @param {*} [options] Override http request option.
50
50
  * @throws {RequiredError}
51
51
  */
52
- listOrgBills: async (orgName: string, start: number, end: number, billID?: string, clusterID?: string, projectName?: string, aggregationTime?: AggregationTimeType, aggregationGroup?: OrgAggregationGroupType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
52
+ listOrgBills: async (orgName: string, aggregationTime: AggregationTimeType, aggregationGroup: OrgAggregationGroupType, start: number, end: number, billID?: string, clusterID?: string, projectName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
53
53
  // verify required parameter 'orgName' is not null or undefined
54
54
  assertParamExists('listOrgBills', 'orgName', orgName)
55
+ // verify required parameter 'aggregationTime' is not null or undefined
56
+ assertParamExists('listOrgBills', 'aggregationTime', aggregationTime)
57
+ // verify required parameter 'aggregationGroup' is not null or undefined
58
+ assertParamExists('listOrgBills', 'aggregationGroup', aggregationGroup)
55
59
  // verify required parameter 'start' is not null or undefined
56
60
  assertParamExists('listOrgBills', 'start', start)
57
61
  // verify required parameter 'end' is not null or undefined
@@ -129,18 +133,18 @@ export const BillingApiFp = function(configuration?: Configuration) {
129
133
  *
130
134
  * @summary List bills in the organization
131
135
  * @param {string} orgName name of the organization
136
+ * @param {AggregationTimeType} aggregationTime The type of aggregation time
137
+ * @param {OrgAggregationGroupType} aggregationGroup The type of aggregation group
132
138
  * @param {number} start The start of the time range for the query, unit is seconds.
133
139
  * @param {number} end The end of the time range for the query, unit is seconds.
134
140
  * @param {string} [billID] The ID of the bill
135
141
  * @param {string} [clusterID] The ID of the cluster
136
142
  * @param {string} [projectName] name of the project
137
- * @param {AggregationTimeType} [aggregationTime] The type of aggregation time
138
- * @param {OrgAggregationGroupType} [aggregationGroup] The type of aggregation group
139
143
  * @param {*} [options] Override http request option.
140
144
  * @throws {RequiredError}
141
145
  */
142
- async listOrgBills(orgName: string, start: number, end: number, billID?: string, clusterID?: string, projectName?: string, aggregationTime?: AggregationTimeType, aggregationGroup?: OrgAggregationGroupType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillList>> {
143
- const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgBills(orgName, start, end, billID, clusterID, projectName, aggregationTime, aggregationGroup, options);
146
+ async listOrgBills(orgName: string, aggregationTime: AggregationTimeType, aggregationGroup: OrgAggregationGroupType, start: number, end: number, billID?: string, clusterID?: string, projectName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillList>> {
147
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgBills(orgName, aggregationTime, aggregationGroup, start, end, billID, clusterID, projectName, options);
144
148
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
145
149
  const localVarOperationServerBasePath = operationServerMap['BillingApi.listOrgBills']?.[localVarOperationServerIndex]?.url;
146
150
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -163,7 +167,7 @@ export const BillingApiFactory = function (configuration?: Configuration, basePa
163
167
  * @throws {RequiredError}
164
168
  */
165
169
  listOrgBills(requestParameters: BillingApiListOrgBillsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BillList> {
166
- return localVarFp.listOrgBills(requestParameters.orgName, requestParameters.start, requestParameters.end, requestParameters.billID, requestParameters.clusterID, requestParameters.projectName, requestParameters.aggregationTime, requestParameters.aggregationGroup, options).then((request) => request(axios, basePath));
170
+ return localVarFp.listOrgBills(requestParameters.orgName, requestParameters.aggregationTime, requestParameters.aggregationGroup, requestParameters.start, requestParameters.end, requestParameters.billID, requestParameters.clusterID, requestParameters.projectName, options).then((request) => request(axios, basePath));
167
171
  },
168
172
  };
169
173
  };
@@ -199,6 +203,20 @@ export interface BillingApiListOrgBillsRequest {
199
203
  */
200
204
  readonly orgName: string
201
205
 
206
+ /**
207
+ * The type of aggregation time
208
+ * @type {AggregationTimeType}
209
+ * @memberof BillingApiListOrgBills
210
+ */
211
+ readonly aggregationTime: AggregationTimeType
212
+
213
+ /**
214
+ * The type of aggregation group
215
+ * @type {OrgAggregationGroupType}
216
+ * @memberof BillingApiListOrgBills
217
+ */
218
+ readonly aggregationGroup: OrgAggregationGroupType
219
+
202
220
  /**
203
221
  * The start of the time range for the query, unit is seconds.
204
222
  * @type {number}
@@ -233,20 +251,6 @@ export interface BillingApiListOrgBillsRequest {
233
251
  * @memberof BillingApiListOrgBills
234
252
  */
235
253
  readonly projectName?: string
236
-
237
- /**
238
- * The type of aggregation time
239
- * @type {AggregationTimeType}
240
- * @memberof BillingApiListOrgBills
241
- */
242
- readonly aggregationTime?: AggregationTimeType
243
-
244
- /**
245
- * The type of aggregation group
246
- * @type {OrgAggregationGroupType}
247
- * @memberof BillingApiListOrgBills
248
- */
249
- readonly aggregationGroup?: OrgAggregationGroupType
250
254
  }
251
255
 
252
256
  /**
@@ -265,7 +269,7 @@ export class BillingApi extends BaseAPI implements BillingApiInterface {
265
269
  * @memberof BillingApi
266
270
  */
267
271
  public listOrgBills(requestParameters: BillingApiListOrgBillsRequest, options?: RawAxiosRequestConfig) {
268
- return BillingApiFp(this.configuration).listOrgBills(requestParameters.orgName, requestParameters.start, requestParameters.end, requestParameters.billID, requestParameters.clusterID, requestParameters.projectName, requestParameters.aggregationTime, requestParameters.aggregationGroup, options).then((request) => request(this.axios, this.basePath));
272
+ return BillingApiFp(this.configuration).listOrgBills(requestParameters.orgName, requestParameters.aggregationTime, requestParameters.aggregationGroup, requestParameters.start, requestParameters.end, requestParameters.billID, requestParameters.clusterID, requestParameters.projectName, options).then((request) => request(this.axios, this.basePath));
269
273
  }
270
274
  }
271
275
 
@@ -122,6 +122,56 @@ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configu
122
122
 
123
123
 
124
124
 
125
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
126
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
127
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
128
+
129
+ return {
130
+ url: toPathString(localVarUrlObj),
131
+ options: localVarRequestOptions,
132
+ };
133
+ },
134
+ /**
135
+ * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
136
+ * @summary List PostgreSQL session basic diagnostics
137
+ * @param {string} orgName Organization name
138
+ * @param {string} clusterName Cluster name
139
+ * @param {number} [limit] Maximum number of sessions to return. Defaults to the backend limit when omitted.
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ */
143
+ listDiagnosticsPostgresqlSessions: async (orgName: string, clusterName: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
144
+ // verify required parameter 'orgName' is not null or undefined
145
+ assertParamExists('listDiagnosticsPostgresqlSessions', 'orgName', orgName)
146
+ // verify required parameter 'clusterName' is not null or undefined
147
+ assertParamExists('listDiagnosticsPostgresqlSessions', 'clusterName', clusterName)
148
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions`
149
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
150
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
151
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
152
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
153
+ let baseOptions;
154
+ if (configuration) {
155
+ baseOptions = configuration.baseOptions;
156
+ }
157
+
158
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
159
+ const localVarHeaderParameter = {} as any;
160
+ const localVarQueryParameter = {} as any;
161
+
162
+ // authentication BearerToken required
163
+ // http bearer authentication required
164
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
165
+
166
+ // authentication DigestAuth required
167
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
168
+
169
+ if (limit !== undefined) {
170
+ localVarQueryParameter['limit'] = limit;
171
+ }
172
+
173
+
174
+
125
175
  setSearchParams(localVarUrlObj, localVarQueryParameter);
126
176
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
127
177
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -171,6 +221,21 @@ export const DiagnosticsApiFp = function(configuration?: Configuration) {
171
221
  const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsPostgresqlSessionLockAnalysis']?.[localVarOperationServerIndex]?.url;
172
222
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
173
223
  },
224
+ /**
225
+ * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
226
+ * @summary List PostgreSQL session basic diagnostics
227
+ * @param {string} orgName Organization name
228
+ * @param {string} clusterName Cluster name
229
+ * @param {number} [limit] Maximum number of sessions to return. Defaults to the backend limit when omitted.
230
+ * @param {*} [options] Override http request option.
231
+ * @throws {RequiredError}
232
+ */
233
+ async listDiagnosticsPostgresqlSessions(orgName: string, clusterName: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PostgresqlSession>>> {
234
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listDiagnosticsPostgresqlSessions(orgName, clusterName, limit, options);
235
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
236
+ const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.listDiagnosticsPostgresqlSessions']?.[localVarOperationServerIndex]?.url;
237
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
238
+ },
174
239
  }
175
240
  };
176
241
 
@@ -201,6 +266,16 @@ export const DiagnosticsApiFactory = function (configuration?: Configuration, ba
201
266
  getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlLockAnalysis> {
202
267
  return localVarFp.getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(axios, basePath));
203
268
  },
269
+ /**
270
+ * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
271
+ * @summary List PostgreSQL session basic diagnostics
272
+ * @param {DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest} requestParameters Request parameters.
273
+ * @param {*} [options] Override http request option.
274
+ * @throws {RequiredError}
275
+ */
276
+ listDiagnosticsPostgresqlSessions(requestParameters: DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<PostgresqlSession>> {
277
+ return localVarFp.listDiagnosticsPostgresqlSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, options).then((request) => request(axios, basePath));
278
+ },
204
279
  };
205
280
  };
206
281
 
@@ -230,6 +305,16 @@ export interface DiagnosticsApiInterface {
230
305
  */
231
306
  getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlLockAnalysis>;
232
307
 
308
+ /**
309
+ * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
310
+ * @summary List PostgreSQL session basic diagnostics
311
+ * @param {DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest} requestParameters Request parameters.
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ * @memberof DiagnosticsApiInterface
315
+ */
316
+ listDiagnosticsPostgresqlSessions(requestParameters: DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<PostgresqlSession>>;
317
+
233
318
  }
234
319
 
235
320
  /**
@@ -288,6 +373,34 @@ export interface DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisReques
288
373
  readonly pid: number
289
374
  }
290
375
 
376
+ /**
377
+ * Request parameters for listDiagnosticsPostgresqlSessions operation in DiagnosticsApi.
378
+ * @export
379
+ * @interface DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest
380
+ */
381
+ export interface DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest {
382
+ /**
383
+ * Organization name
384
+ * @type {string}
385
+ * @memberof DiagnosticsApiListDiagnosticsPostgresqlSessions
386
+ */
387
+ readonly orgName: string
388
+
389
+ /**
390
+ * Cluster name
391
+ * @type {string}
392
+ * @memberof DiagnosticsApiListDiagnosticsPostgresqlSessions
393
+ */
394
+ readonly clusterName: string
395
+
396
+ /**
397
+ * Maximum number of sessions to return. Defaults to the backend limit when omitted.
398
+ * @type {number}
399
+ * @memberof DiagnosticsApiListDiagnosticsPostgresqlSessions
400
+ */
401
+ readonly limit?: number
402
+ }
403
+
291
404
  /**
292
405
  * DiagnosticsApi - object-oriented interface
293
406
  * @export
@@ -318,5 +431,17 @@ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
318
431
  public getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig) {
319
432
  return DiagnosticsApiFp(this.configuration).getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(this.axios, this.basePath));
320
433
  }
434
+
435
+ /**
436
+ * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
437
+ * @summary List PostgreSQL session basic diagnostics
438
+ * @param {DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest} requestParameters Request parameters.
439
+ * @param {*} [options] Override http request option.
440
+ * @throws {RequiredError}
441
+ * @memberof DiagnosticsApi
442
+ */
443
+ public listDiagnosticsPostgresqlSessions(requestParameters: DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest, options?: RawAxiosRequestConfig) {
444
+ return DiagnosticsApiFp(this.configuration).listDiagnosticsPostgresqlSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
445
+ }
321
446
  }
322
447
 
@@ -32,8 +32,6 @@ import type { AggregateTaskType } from '../models';
32
32
  // @ts-ignore
33
33
  import type { AutoInspection } from '../models';
34
34
  // @ts-ignore
35
- import type { AutoInspectionResourceType } from '../models';
36
- // @ts-ignore
37
35
  import type { InspectionScript } from '../models';
38
36
  // @ts-ignore
39
37
  import type { InspectionTask } from '../models';
@@ -426,50 +424,6 @@ export const InspectionApiAxiosParamCreator = function (configuration?: Configur
426
424
 
427
425
 
428
426
 
429
- setSearchParams(localVarUrlObj, localVarQueryParameter);
430
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
431
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
432
-
433
- return {
434
- url: toPathString(localVarUrlObj),
435
- options: localVarRequestOptions,
436
- };
437
- },
438
- /**
439
- *
440
- * @summary list auto inspections
441
- * @param {AutoInspectionResourceType} resourceType type of the auto inspection
442
- * @param {*} [options] Override http request option.
443
- * @throws {RequiredError}
444
- */
445
- listAutoInspections: async (resourceType: AutoInspectionResourceType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
446
- // verify required parameter 'resourceType' is not null or undefined
447
- assertParamExists('listAutoInspections', 'resourceType', resourceType)
448
- const localVarPath = `/api/v1/autoInspections`;
449
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
450
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
451
- let baseOptions;
452
- if (configuration) {
453
- baseOptions = configuration.baseOptions;
454
- }
455
-
456
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
457
- const localVarHeaderParameter = {} as any;
458
- const localVarQueryParameter = {} as any;
459
-
460
- // authentication BearerToken required
461
- // http bearer authentication required
462
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
463
-
464
- // authentication DigestAuth required
465
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
466
-
467
- if (resourceType !== undefined) {
468
- localVarQueryParameter['resourceType'] = resourceType;
469
- }
470
-
471
-
472
-
473
427
  setSearchParams(localVarUrlObj, localVarQueryParameter);
474
428
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
475
429
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -804,19 +758,6 @@ export const InspectionApiFp = function(configuration?: Configuration) {
804
758
  const localVarOperationServerBasePath = operationServerMap['InspectionApi.getInspectionTaskByOrg']?.[localVarOperationServerIndex]?.url;
805
759
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
806
760
  },
807
- /**
808
- *
809
- * @summary list auto inspections
810
- * @param {AutoInspectionResourceType} resourceType type of the auto inspection
811
- * @param {*} [options] Override http request option.
812
- * @throws {RequiredError}
813
- */
814
- async listAutoInspections(resourceType: AutoInspectionResourceType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<AutoInspection>>> {
815
- const localVarAxiosArgs = await localVarAxiosParamCreator.listAutoInspections(resourceType, options);
816
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
817
- const localVarOperationServerBasePath = operationServerMap['InspectionApi.listAutoInspections']?.[localVarOperationServerIndex]?.url;
818
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
819
- },
820
761
  /**
821
762
  *
822
763
  * @summary list inspection scripts
@@ -965,16 +906,6 @@ export const InspectionApiFactory = function (configuration?: Configuration, bas
965
906
  getInspectionTaskByOrg(requestParameters: InspectionApiGetInspectionTaskByOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<InspectionTask> {
966
907
  return localVarFp.getInspectionTaskByOrg(requestParameters.orgName, requestParameters.taskId, requestParameters.format, options).then((request) => request(axios, basePath));
967
908
  },
968
- /**
969
- *
970
- * @summary list auto inspections
971
- * @param {InspectionApiListAutoInspectionsRequest} requestParameters Request parameters.
972
- * @param {*} [options] Override http request option.
973
- * @throws {RequiredError}
974
- */
975
- listAutoInspections(requestParameters: InspectionApiListAutoInspectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<AutoInspection>> {
976
- return localVarFp.listAutoInspections(requestParameters.resourceType, options).then((request) => request(axios, basePath));
977
- },
978
909
  /**
979
910
  *
980
911
  * @summary list inspection scripts
@@ -1104,16 +1035,6 @@ export interface InspectionApiInterface {
1104
1035
  */
1105
1036
  getInspectionTaskByOrg(requestParameters: InspectionApiGetInspectionTaskByOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise<InspectionTask>;
1106
1037
 
1107
- /**
1108
- *
1109
- * @summary list auto inspections
1110
- * @param {InspectionApiListAutoInspectionsRequest} requestParameters Request parameters.
1111
- * @param {*} [options] Override http request option.
1112
- * @throws {RequiredError}
1113
- * @memberof InspectionApiInterface
1114
- */
1115
- listAutoInspections(requestParameters: InspectionApiListAutoInspectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<AutoInspection>>;
1116
-
1117
1038
  /**
1118
1039
  *
1119
1040
  * @summary list inspection scripts
@@ -1338,20 +1259,6 @@ export interface InspectionApiGetInspectionTaskByOrgRequest {
1338
1259
  readonly format?: InspectionTaskFormat
1339
1260
  }
1340
1261
 
1341
- /**
1342
- * Request parameters for listAutoInspections operation in InspectionApi.
1343
- * @export
1344
- * @interface InspectionApiListAutoInspectionsRequest
1345
- */
1346
- export interface InspectionApiListAutoInspectionsRequest {
1347
- /**
1348
- * type of the auto inspection
1349
- * @type {AutoInspectionResourceType}
1350
- * @memberof InspectionApiListAutoInspections
1351
- */
1352
- readonly resourceType: AutoInspectionResourceType
1353
- }
1354
-
1355
1262
  /**
1356
1263
  * Request parameters for listInspectionScripts operation in InspectionApi.
1357
1264
  * @export
@@ -1553,18 +1460,6 @@ export class InspectionApi extends BaseAPI implements InspectionApiInterface {
1553
1460
  return InspectionApiFp(this.configuration).getInspectionTaskByOrg(requestParameters.orgName, requestParameters.taskId, requestParameters.format, options).then((request) => request(this.axios, this.basePath));
1554
1461
  }
1555
1462
 
1556
- /**
1557
- *
1558
- * @summary list auto inspections
1559
- * @param {InspectionApiListAutoInspectionsRequest} requestParameters Request parameters.
1560
- * @param {*} [options] Override http request option.
1561
- * @throws {RequiredError}
1562
- * @memberof InspectionApi
1563
- */
1564
- public listAutoInspections(requestParameters: InspectionApiListAutoInspectionsRequest, options?: RawAxiosRequestConfig) {
1565
- return InspectionApiFp(this.configuration).listAutoInspections(requestParameters.resourceType, options).then((request) => request(this.axios, this.basePath));
1566
- }
1567
-
1568
1463
  /**
1569
1464
  *
1570
1465
  * @summary list inspection scripts
package/src/openapi.yaml CHANGED
@@ -4666,6 +4666,49 @@ paths:
4666
4666
  - cluster
4667
4667
  - shared
4668
4668
  x-codegen-request-body-name: body
4669
+ /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions:
4670
+ get:
4671
+ tags:
4672
+ - diagnostics
4673
+ summary: List PostgreSQL session basic diagnostics
4674
+ description: List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
4675
+ operationId: listDiagnosticsPostgresqlSessions
4676
+ parameters:
4677
+ - name: orgName
4678
+ in: path
4679
+ description: Organization name
4680
+ required: true
4681
+ schema:
4682
+ type: string
4683
+ - name: clusterName
4684
+ in: path
4685
+ description: Cluster name
4686
+ required: true
4687
+ schema:
4688
+ type: string
4689
+ - name: limit
4690
+ in: query
4691
+ description: Maximum number of sessions to return. Defaults to the backend limit when omitted.
4692
+ required: false
4693
+ schema:
4694
+ type: integer
4695
+ format: int64
4696
+ minimum: 1
4697
+ responses:
4698
+ '200':
4699
+ description: OK
4700
+ content:
4701
+ application/json:
4702
+ schema:
4703
+ $ref: '#/components/schemas/postgresqlSessionList'
4704
+ '400':
4705
+ $ref: '#/components/responses/400'
4706
+ '401':
4707
+ $ref: '#/components/responses/401'
4708
+ '403':
4709
+ $ref: '#/components/responses/403'
4710
+ '500':
4711
+ $ref: '#/components/responses/500'
4669
4712
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions/{pid}/lockAnalysis:
4670
4713
  get:
4671
4714
  tags:
@@ -16557,11 +16600,13 @@ paths:
16557
16600
  - description: The type of aggregation time
16558
16601
  in: query
16559
16602
  name: aggregationTime
16603
+ required: true
16560
16604
  schema:
16561
16605
  $ref: '#/components/schemas/aggregationTimeType'
16562
16606
  - description: The type of aggregation group
16563
16607
  in: query
16564
16608
  name: aggregationGroup
16609
+ required: true
16565
16610
  schema:
16566
16611
  $ref: '#/components/schemas/orgAggregationGroupType'
16567
16612
  - $ref: '#/components/parameters/startTime'
@@ -16776,33 +16821,6 @@ paths:
16776
16821
  $ref: '#/components/responses/403'
16777
16822
  '404':
16778
16823
  $ref: '#/components/responses/404'
16779
- get:
16780
- tags:
16781
- - inspection
16782
- operationId: listAutoInspections
16783
- summary: list auto inspections
16784
- parameters:
16785
- - description: type of the auto inspection
16786
- in: query
16787
- name: resourceType
16788
- required: true
16789
- schema:
16790
- $ref: '#/components/schemas/autoInspectionResourceType'
16791
- responses:
16792
- '200':
16793
- description: A successful response.
16794
- content:
16795
- application/json:
16796
- schema:
16797
- type: array
16798
- items:
16799
- $ref: '#/components/schemas/autoInspection'
16800
- '401':
16801
- $ref: '#/components/responses/401'
16802
- '403':
16803
- $ref: '#/components/responses/403'
16804
- '404':
16805
- $ref: '#/components/responses/404'
16806
16824
  /api/v1/autoInspection:
16807
16825
  get:
16808
16826
  tags:
@@ -21508,6 +21526,10 @@ components:
21508
21526
  type: string
21509
21527
  backendType:
21510
21528
  type: string
21529
+ postgresqlSessionList:
21530
+ type: array
21531
+ items:
21532
+ $ref: '#/components/schemas/postgresqlSession'
21511
21533
  postgresqlLockRow:
21512
21534
  type: object
21513
21535
  required: