kb-cloud-client-typescript 2.3.0-alpha.108 → 2.3.0-alpha.109

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/src/adminapi.yaml CHANGED
@@ -7320,6 +7320,94 @@ paths:
7320
7320
  schema:
7321
7321
  type: integer
7322
7322
  format: int32
7323
+ - in: query
7324
+ name: minExecutionTime
7325
+ description: Minimum execution time in seconds. Decimal values are supported, for example 0.5.
7326
+ schema:
7327
+ type: number
7328
+ format: double
7329
+ - in: query
7330
+ name: maxExecutionTime
7331
+ description: Maximum execution time in seconds. Decimal values are supported, for example 0.5.
7332
+ schema:
7333
+ type: number
7334
+ format: double
7335
+ - in: query
7336
+ name: minLockTime
7337
+ description: Minimum lock time in seconds. Decimal values are supported, for example 0.001.
7338
+ schema:
7339
+ type: number
7340
+ format: double
7341
+ - in: query
7342
+ name: maxLockTime
7343
+ description: Maximum lock time in seconds. Decimal values are supported, for example 0.001.
7344
+ schema:
7345
+ type: number
7346
+ format: double
7347
+ - in: query
7348
+ name: minRowsExamined
7349
+ schema:
7350
+ type: integer
7351
+ format: int64
7352
+ - in: query
7353
+ name: maxRowsExamined
7354
+ schema:
7355
+ type: integer
7356
+ format: int64
7357
+ - in: query
7358
+ name: minRowsSent
7359
+ schema:
7360
+ type: integer
7361
+ format: int64
7362
+ - in: query
7363
+ name: maxRowsSent
7364
+ schema:
7365
+ type: integer
7366
+ format: int64
7367
+ - in: query
7368
+ name: dbName
7369
+ schema:
7370
+ type: string
7371
+ - in: query
7372
+ name: dbNameContains
7373
+ schema:
7374
+ type: string
7375
+ - in: query
7376
+ name: userName
7377
+ schema:
7378
+ type: string
7379
+ - in: query
7380
+ name: userNameContains
7381
+ schema:
7382
+ type: string
7383
+ - in: query
7384
+ name: clientIp
7385
+ schema:
7386
+ type: string
7387
+ - in: query
7388
+ name: clientIpContains
7389
+ schema:
7390
+ type: string
7391
+ - in: query
7392
+ name: clientIpCIDR
7393
+ schema:
7394
+ type: string
7395
+ - in: query
7396
+ name: appName
7397
+ schema:
7398
+ type: string
7399
+ - in: query
7400
+ name: appNameContains
7401
+ schema:
7402
+ type: string
7403
+ - in: query
7404
+ name: templateId
7405
+ schema:
7406
+ type: string
7407
+ - in: query
7408
+ name: unclassifiedOnly
7409
+ schema:
7410
+ type: boolean
7323
7411
  responses:
7324
7412
  '200':
7325
7413
  content:
@@ -157,10 +157,29 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
157
157
  * @param {SortType} [sortType]
158
158
  * @param {string} [groupBy]
159
159
  * @param {number} [topN]
160
+ * @param {number} [minExecutionTime] Minimum execution time in seconds. Decimal values are supported, for example 0.5.
161
+ * @param {number} [maxExecutionTime] Maximum execution time in seconds. Decimal values are supported, for example 0.5.
162
+ * @param {number} [minLockTime] Minimum lock time in seconds. Decimal values are supported, for example 0.001.
163
+ * @param {number} [maxLockTime] Maximum lock time in seconds. Decimal values are supported, for example 0.001.
164
+ * @param {number} [minRowsExamined]
165
+ * @param {number} [maxRowsExamined]
166
+ * @param {number} [minRowsSent]
167
+ * @param {number} [maxRowsSent]
168
+ * @param {string} [dbName]
169
+ * @param {string} [dbNameContains]
170
+ * @param {string} [userName]
171
+ * @param {string} [userNameContains]
172
+ * @param {string} [clientIp]
173
+ * @param {string} [clientIpContains]
174
+ * @param {string} [clientIpCIDR]
175
+ * @param {string} [appName]
176
+ * @param {string} [appNameContains]
177
+ * @param {string} [templateId]
178
+ * @param {boolean} [unclassifiedOnly]
160
179
  * @param {*} [options] Override http request option.
161
180
  * @throws {RequiredError}
162
181
  */
163
- aggregateSlowLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, query?: string, limit?: string, sortType?: SortType, groupBy?: string, topN?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
182
+ aggregateSlowLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, query?: string, limit?: string, sortType?: SortType, groupBy?: string, topN?: number, minExecutionTime?: number, maxExecutionTime?: number, minLockTime?: number, maxLockTime?: number, minRowsExamined?: number, maxRowsExamined?: number, minRowsSent?: number, maxRowsSent?: number, dbName?: string, dbNameContains?: string, userName?: string, userNameContains?: string, clientIp?: string, clientIpContains?: string, clientIpCIDR?: string, appName?: string, appNameContains?: string, templateId?: string, unclassifiedOnly?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
164
183
  // verify required parameter 'orgName' is not null or undefined
165
184
  assertParamExists('aggregateSlowLogs', 'orgName', orgName)
166
185
  // verify required parameter 'clusterName' is not null or undefined
@@ -226,6 +245,82 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
226
245
  localVarQueryParameter['topN'] = topN;
227
246
  }
228
247
 
248
+ if (minExecutionTime !== undefined) {
249
+ localVarQueryParameter['minExecutionTime'] = minExecutionTime;
250
+ }
251
+
252
+ if (maxExecutionTime !== undefined) {
253
+ localVarQueryParameter['maxExecutionTime'] = maxExecutionTime;
254
+ }
255
+
256
+ if (minLockTime !== undefined) {
257
+ localVarQueryParameter['minLockTime'] = minLockTime;
258
+ }
259
+
260
+ if (maxLockTime !== undefined) {
261
+ localVarQueryParameter['maxLockTime'] = maxLockTime;
262
+ }
263
+
264
+ if (minRowsExamined !== undefined) {
265
+ localVarQueryParameter['minRowsExamined'] = minRowsExamined;
266
+ }
267
+
268
+ if (maxRowsExamined !== undefined) {
269
+ localVarQueryParameter['maxRowsExamined'] = maxRowsExamined;
270
+ }
271
+
272
+ if (minRowsSent !== undefined) {
273
+ localVarQueryParameter['minRowsSent'] = minRowsSent;
274
+ }
275
+
276
+ if (maxRowsSent !== undefined) {
277
+ localVarQueryParameter['maxRowsSent'] = maxRowsSent;
278
+ }
279
+
280
+ if (dbName !== undefined) {
281
+ localVarQueryParameter['dbName'] = dbName;
282
+ }
283
+
284
+ if (dbNameContains !== undefined) {
285
+ localVarQueryParameter['dbNameContains'] = dbNameContains;
286
+ }
287
+
288
+ if (userName !== undefined) {
289
+ localVarQueryParameter['userName'] = userName;
290
+ }
291
+
292
+ if (userNameContains !== undefined) {
293
+ localVarQueryParameter['userNameContains'] = userNameContains;
294
+ }
295
+
296
+ if (clientIp !== undefined) {
297
+ localVarQueryParameter['clientIp'] = clientIp;
298
+ }
299
+
300
+ if (clientIpContains !== undefined) {
301
+ localVarQueryParameter['clientIpContains'] = clientIpContains;
302
+ }
303
+
304
+ if (clientIpCIDR !== undefined) {
305
+ localVarQueryParameter['clientIpCIDR'] = clientIpCIDR;
306
+ }
307
+
308
+ if (appName !== undefined) {
309
+ localVarQueryParameter['appName'] = appName;
310
+ }
311
+
312
+ if (appNameContains !== undefined) {
313
+ localVarQueryParameter['appNameContains'] = appNameContains;
314
+ }
315
+
316
+ if (templateId !== undefined) {
317
+ localVarQueryParameter['templateId'] = templateId;
318
+ }
319
+
320
+ if (unclassifiedOnly !== undefined) {
321
+ localVarQueryParameter['unclassifiedOnly'] = unclassifiedOnly;
322
+ }
323
+
229
324
 
230
325
 
231
326
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1902,11 +1997,30 @@ export const ClusterLogApiFp = function(configuration?: Configuration) {
1902
1997
  * @param {SortType} [sortType]
1903
1998
  * @param {string} [groupBy]
1904
1999
  * @param {number} [topN]
2000
+ * @param {number} [minExecutionTime] Minimum execution time in seconds. Decimal values are supported, for example 0.5.
2001
+ * @param {number} [maxExecutionTime] Maximum execution time in seconds. Decimal values are supported, for example 0.5.
2002
+ * @param {number} [minLockTime] Minimum lock time in seconds. Decimal values are supported, for example 0.001.
2003
+ * @param {number} [maxLockTime] Maximum lock time in seconds. Decimal values are supported, for example 0.001.
2004
+ * @param {number} [minRowsExamined]
2005
+ * @param {number} [maxRowsExamined]
2006
+ * @param {number} [minRowsSent]
2007
+ * @param {number} [maxRowsSent]
2008
+ * @param {string} [dbName]
2009
+ * @param {string} [dbNameContains]
2010
+ * @param {string} [userName]
2011
+ * @param {string} [userNameContains]
2012
+ * @param {string} [clientIp]
2013
+ * @param {string} [clientIpContains]
2014
+ * @param {string} [clientIpCIDR]
2015
+ * @param {string} [appName]
2016
+ * @param {string} [appNameContains]
2017
+ * @param {string} [templateId]
2018
+ * @param {boolean} [unclassifiedOnly]
1905
2019
  * @param {*} [options] Override http request option.
1906
2020
  * @throws {RequiredError}
1907
2021
  */
1908
- async aggregateSlowLogs(orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, query?: string, limit?: string, sortType?: SortType, groupBy?: string, topN?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterExecutionLogAggregateResponse>> {
1909
- const localVarAxiosArgs = await localVarAxiosParamCreator.aggregateSlowLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, query, limit, sortType, groupBy, topN, options);
2022
+ async aggregateSlowLogs(orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, query?: string, limit?: string, sortType?: SortType, groupBy?: string, topN?: number, minExecutionTime?: number, maxExecutionTime?: number, minLockTime?: number, maxLockTime?: number, minRowsExamined?: number, maxRowsExamined?: number, minRowsSent?: number, maxRowsSent?: number, dbName?: string, dbNameContains?: string, userName?: string, userNameContains?: string, clientIp?: string, clientIpContains?: string, clientIpCIDR?: string, appName?: string, appNameContains?: string, templateId?: string, unclassifiedOnly?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterExecutionLogAggregateResponse>> {
2023
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aggregateSlowLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, query, limit, sortType, groupBy, topN, minExecutionTime, maxExecutionTime, minLockTime, maxLockTime, minRowsExamined, maxRowsExamined, minRowsSent, maxRowsSent, dbName, dbNameContains, userName, userNameContains, clientIp, clientIpContains, clientIpCIDR, appName, appNameContains, templateId, unclassifiedOnly, options);
1910
2024
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1911
2025
  const localVarOperationServerBasePath = operationServerMap['ClusterLogApi.aggregateSlowLogs']?.[localVarOperationServerIndex]?.url;
1912
2026
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2318,7 +2432,7 @@ export const ClusterLogApiFactory = function (configuration?: Configuration, bas
2318
2432
  * @throws {RequiredError}
2319
2433
  */
2320
2434
  aggregateSlowLogs(requestParameters: ClusterLogApiAggregateSlowLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLogAggregateResponse> {
2321
- return localVarFp.aggregateSlowLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.limit, requestParameters.sortType, requestParameters.groupBy, requestParameters.topN, options).then((request) => request(axios, basePath));
2435
+ return localVarFp.aggregateSlowLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.limit, requestParameters.sortType, requestParameters.groupBy, requestParameters.topN, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.dbNameContains, requestParameters.userName, requestParameters.userNameContains, requestParameters.clientIp, requestParameters.clientIpContains, requestParameters.clientIpCIDR, requestParameters.appName, requestParameters.appNameContains, requestParameters.templateId, requestParameters.unclassifiedOnly, options).then((request) => request(axios, basePath));
2322
2436
  },
2323
2437
  /**
2324
2438
  * Explain a concrete SQL from a slow log using the cluster default datasource.
@@ -2777,6 +2891,139 @@ export interface ClusterLogApiAggregateSlowLogsRequest {
2777
2891
  * @memberof ClusterLogApiAggregateSlowLogs
2778
2892
  */
2779
2893
  readonly topN?: number
2894
+
2895
+ /**
2896
+ * Minimum execution time in seconds. Decimal values are supported, for example 0.5.
2897
+ * @type {number}
2898
+ * @memberof ClusterLogApiAggregateSlowLogs
2899
+ */
2900
+ readonly minExecutionTime?: number
2901
+
2902
+ /**
2903
+ * Maximum execution time in seconds. Decimal values are supported, for example 0.5.
2904
+ * @type {number}
2905
+ * @memberof ClusterLogApiAggregateSlowLogs
2906
+ */
2907
+ readonly maxExecutionTime?: number
2908
+
2909
+ /**
2910
+ * Minimum lock time in seconds. Decimal values are supported, for example 0.001.
2911
+ * @type {number}
2912
+ * @memberof ClusterLogApiAggregateSlowLogs
2913
+ */
2914
+ readonly minLockTime?: number
2915
+
2916
+ /**
2917
+ * Maximum lock time in seconds. Decimal values are supported, for example 0.001.
2918
+ * @type {number}
2919
+ * @memberof ClusterLogApiAggregateSlowLogs
2920
+ */
2921
+ readonly maxLockTime?: number
2922
+
2923
+ /**
2924
+ *
2925
+ * @type {number}
2926
+ * @memberof ClusterLogApiAggregateSlowLogs
2927
+ */
2928
+ readonly minRowsExamined?: number
2929
+
2930
+ /**
2931
+ *
2932
+ * @type {number}
2933
+ * @memberof ClusterLogApiAggregateSlowLogs
2934
+ */
2935
+ readonly maxRowsExamined?: number
2936
+
2937
+ /**
2938
+ *
2939
+ * @type {number}
2940
+ * @memberof ClusterLogApiAggregateSlowLogs
2941
+ */
2942
+ readonly minRowsSent?: number
2943
+
2944
+ /**
2945
+ *
2946
+ * @type {number}
2947
+ * @memberof ClusterLogApiAggregateSlowLogs
2948
+ */
2949
+ readonly maxRowsSent?: number
2950
+
2951
+ /**
2952
+ *
2953
+ * @type {string}
2954
+ * @memberof ClusterLogApiAggregateSlowLogs
2955
+ */
2956
+ readonly dbName?: string
2957
+
2958
+ /**
2959
+ *
2960
+ * @type {string}
2961
+ * @memberof ClusterLogApiAggregateSlowLogs
2962
+ */
2963
+ readonly dbNameContains?: string
2964
+
2965
+ /**
2966
+ *
2967
+ * @type {string}
2968
+ * @memberof ClusterLogApiAggregateSlowLogs
2969
+ */
2970
+ readonly userName?: string
2971
+
2972
+ /**
2973
+ *
2974
+ * @type {string}
2975
+ * @memberof ClusterLogApiAggregateSlowLogs
2976
+ */
2977
+ readonly userNameContains?: string
2978
+
2979
+ /**
2980
+ *
2981
+ * @type {string}
2982
+ * @memberof ClusterLogApiAggregateSlowLogs
2983
+ */
2984
+ readonly clientIp?: string
2985
+
2986
+ /**
2987
+ *
2988
+ * @type {string}
2989
+ * @memberof ClusterLogApiAggregateSlowLogs
2990
+ */
2991
+ readonly clientIpContains?: string
2992
+
2993
+ /**
2994
+ *
2995
+ * @type {string}
2996
+ * @memberof ClusterLogApiAggregateSlowLogs
2997
+ */
2998
+ readonly clientIpCIDR?: string
2999
+
3000
+ /**
3001
+ *
3002
+ * @type {string}
3003
+ * @memberof ClusterLogApiAggregateSlowLogs
3004
+ */
3005
+ readonly appName?: string
3006
+
3007
+ /**
3008
+ *
3009
+ * @type {string}
3010
+ * @memberof ClusterLogApiAggregateSlowLogs
3011
+ */
3012
+ readonly appNameContains?: string
3013
+
3014
+ /**
3015
+ *
3016
+ * @type {string}
3017
+ * @memberof ClusterLogApiAggregateSlowLogs
3018
+ */
3019
+ readonly templateId?: string
3020
+
3021
+ /**
3022
+ *
3023
+ * @type {boolean}
3024
+ * @memberof ClusterLogApiAggregateSlowLogs
3025
+ */
3026
+ readonly unclassifiedOnly?: boolean
2780
3027
  }
2781
3028
 
2782
3029
  /**
@@ -4459,7 +4706,7 @@ export class ClusterLogApi extends BaseAPI implements ClusterLogApiInterface {
4459
4706
  * @memberof ClusterLogApi
4460
4707
  */
4461
4708
  public aggregateSlowLogs(requestParameters: ClusterLogApiAggregateSlowLogsRequest, options?: RawAxiosRequestConfig) {
4462
- return ClusterLogApiFp(this.configuration).aggregateSlowLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.limit, requestParameters.sortType, requestParameters.groupBy, requestParameters.topN, options).then((request) => request(this.axios, this.basePath));
4709
+ return ClusterLogApiFp(this.configuration).aggregateSlowLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.limit, requestParameters.sortType, requestParameters.groupBy, requestParameters.topN, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.dbNameContains, requestParameters.userName, requestParameters.userNameContains, requestParameters.clientIp, requestParameters.clientIpContains, requestParameters.clientIpCIDR, requestParameters.appName, requestParameters.appNameContains, requestParameters.templateId, requestParameters.unclassifiedOnly, options).then((request) => request(this.axios, this.basePath));
4463
4710
  }
4464
4711
 
4465
4712
  /**