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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kb-cloud-client-typescript",
3
- "version": "2.3.0-alpha.108",
3
+ "version": "2.3.0-alpha.109",
4
4
  "description": "Auto-generated TypeScript SDK for KubeBlocks Cloud API",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
@@ -63,10 +63,29 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
63
63
  * @param {SortType} [sortType]
64
64
  * @param {string} [groupBy]
65
65
  * @param {number} [topN]
66
+ * @param {number} [minExecutionTime] Minimum execution time in seconds. Decimal values are supported, for example 0.5.
67
+ * @param {number} [maxExecutionTime] Maximum execution time in seconds. Decimal values are supported, for example 0.5.
68
+ * @param {number} [minLockTime] Minimum lock time in seconds. Decimal values are supported, for example 0.001.
69
+ * @param {number} [maxLockTime] Maximum lock time in seconds. Decimal values are supported, for example 0.001.
70
+ * @param {number} [minRowsExamined]
71
+ * @param {number} [maxRowsExamined]
72
+ * @param {number} [minRowsSent]
73
+ * @param {number} [maxRowsSent]
74
+ * @param {string} [dbName]
75
+ * @param {string} [dbNameContains]
76
+ * @param {string} [userName]
77
+ * @param {string} [userNameContains]
78
+ * @param {string} [clientIp]
79
+ * @param {string} [clientIpContains]
80
+ * @param {string} [clientIpCIDR]
81
+ * @param {string} [appName]
82
+ * @param {string} [appNameContains]
83
+ * @param {string} [templateId]
84
+ * @param {boolean} [unclassifiedOnly]
66
85
  * @param {*} [options] Override http request option.
67
86
  * @throws {RequiredError}
68
87
  */
69
- 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> => {
88
+ 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> => {
70
89
  // verify required parameter 'orgName' is not null or undefined
71
90
  assertParamExists('aggregateSlowLogs', 'orgName', orgName)
72
91
  // verify required parameter 'clusterName' is not null or undefined
@@ -132,6 +151,82 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
132
151
  localVarQueryParameter['topN'] = topN;
133
152
  }
134
153
 
154
+ if (minExecutionTime !== undefined) {
155
+ localVarQueryParameter['minExecutionTime'] = minExecutionTime;
156
+ }
157
+
158
+ if (maxExecutionTime !== undefined) {
159
+ localVarQueryParameter['maxExecutionTime'] = maxExecutionTime;
160
+ }
161
+
162
+ if (minLockTime !== undefined) {
163
+ localVarQueryParameter['minLockTime'] = minLockTime;
164
+ }
165
+
166
+ if (maxLockTime !== undefined) {
167
+ localVarQueryParameter['maxLockTime'] = maxLockTime;
168
+ }
169
+
170
+ if (minRowsExamined !== undefined) {
171
+ localVarQueryParameter['minRowsExamined'] = minRowsExamined;
172
+ }
173
+
174
+ if (maxRowsExamined !== undefined) {
175
+ localVarQueryParameter['maxRowsExamined'] = maxRowsExamined;
176
+ }
177
+
178
+ if (minRowsSent !== undefined) {
179
+ localVarQueryParameter['minRowsSent'] = minRowsSent;
180
+ }
181
+
182
+ if (maxRowsSent !== undefined) {
183
+ localVarQueryParameter['maxRowsSent'] = maxRowsSent;
184
+ }
185
+
186
+ if (dbName !== undefined) {
187
+ localVarQueryParameter['dbName'] = dbName;
188
+ }
189
+
190
+ if (dbNameContains !== undefined) {
191
+ localVarQueryParameter['dbNameContains'] = dbNameContains;
192
+ }
193
+
194
+ if (userName !== undefined) {
195
+ localVarQueryParameter['userName'] = userName;
196
+ }
197
+
198
+ if (userNameContains !== undefined) {
199
+ localVarQueryParameter['userNameContains'] = userNameContains;
200
+ }
201
+
202
+ if (clientIp !== undefined) {
203
+ localVarQueryParameter['clientIp'] = clientIp;
204
+ }
205
+
206
+ if (clientIpContains !== undefined) {
207
+ localVarQueryParameter['clientIpContains'] = clientIpContains;
208
+ }
209
+
210
+ if (clientIpCIDR !== undefined) {
211
+ localVarQueryParameter['clientIpCIDR'] = clientIpCIDR;
212
+ }
213
+
214
+ if (appName !== undefined) {
215
+ localVarQueryParameter['appName'] = appName;
216
+ }
217
+
218
+ if (appNameContains !== undefined) {
219
+ localVarQueryParameter['appNameContains'] = appNameContains;
220
+ }
221
+
222
+ if (templateId !== undefined) {
223
+ localVarQueryParameter['templateId'] = templateId;
224
+ }
225
+
226
+ if (unclassifiedOnly !== undefined) {
227
+ localVarQueryParameter['unclassifiedOnly'] = unclassifiedOnly;
228
+ }
229
+
135
230
 
136
231
 
137
232
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1598,11 +1693,30 @@ export const ClusterLogApiFp = function(configuration?: Configuration) {
1598
1693
  * @param {SortType} [sortType]
1599
1694
  * @param {string} [groupBy]
1600
1695
  * @param {number} [topN]
1696
+ * @param {number} [minExecutionTime] Minimum execution time in seconds. Decimal values are supported, for example 0.5.
1697
+ * @param {number} [maxExecutionTime] Maximum execution time in seconds. Decimal values are supported, for example 0.5.
1698
+ * @param {number} [minLockTime] Minimum lock time in seconds. Decimal values are supported, for example 0.001.
1699
+ * @param {number} [maxLockTime] Maximum lock time in seconds. Decimal values are supported, for example 0.001.
1700
+ * @param {number} [minRowsExamined]
1701
+ * @param {number} [maxRowsExamined]
1702
+ * @param {number} [minRowsSent]
1703
+ * @param {number} [maxRowsSent]
1704
+ * @param {string} [dbName]
1705
+ * @param {string} [dbNameContains]
1706
+ * @param {string} [userName]
1707
+ * @param {string} [userNameContains]
1708
+ * @param {string} [clientIp]
1709
+ * @param {string} [clientIpContains]
1710
+ * @param {string} [clientIpCIDR]
1711
+ * @param {string} [appName]
1712
+ * @param {string} [appNameContains]
1713
+ * @param {string} [templateId]
1714
+ * @param {boolean} [unclassifiedOnly]
1601
1715
  * @param {*} [options] Override http request option.
1602
1716
  * @throws {RequiredError}
1603
1717
  */
1604
- 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>> {
1605
- const localVarAxiosArgs = await localVarAxiosParamCreator.aggregateSlowLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, query, limit, sortType, groupBy, topN, options);
1718
+ 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>> {
1719
+ 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);
1606
1720
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1607
1721
  const localVarOperationServerBasePath = operationServerMap['ClusterLogApi.aggregateSlowLogs']?.[localVarOperationServerIndex]?.url;
1608
1722
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1962,7 +2076,7 @@ export const ClusterLogApiFactory = function (configuration?: Configuration, bas
1962
2076
  * @throws {RequiredError}
1963
2077
  */
1964
2078
  aggregateSlowLogs(requestParameters: ClusterLogApiAggregateSlowLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLogAggregateResponse> {
1965
- 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));
2079
+ 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));
1966
2080
  },
1967
2081
  /**
1968
2082
  * Explain a concrete SQL from a slow log using the cluster default datasource.
@@ -2307,6 +2421,139 @@ export interface ClusterLogApiAggregateSlowLogsRequest {
2307
2421
  * @memberof ClusterLogApiAggregateSlowLogs
2308
2422
  */
2309
2423
  readonly topN?: number
2424
+
2425
+ /**
2426
+ * Minimum execution time in seconds. Decimal values are supported, for example 0.5.
2427
+ * @type {number}
2428
+ * @memberof ClusterLogApiAggregateSlowLogs
2429
+ */
2430
+ readonly minExecutionTime?: number
2431
+
2432
+ /**
2433
+ * Maximum execution time in seconds. Decimal values are supported, for example 0.5.
2434
+ * @type {number}
2435
+ * @memberof ClusterLogApiAggregateSlowLogs
2436
+ */
2437
+ readonly maxExecutionTime?: number
2438
+
2439
+ /**
2440
+ * Minimum lock time in seconds. Decimal values are supported, for example 0.001.
2441
+ * @type {number}
2442
+ * @memberof ClusterLogApiAggregateSlowLogs
2443
+ */
2444
+ readonly minLockTime?: number
2445
+
2446
+ /**
2447
+ * Maximum lock time in seconds. Decimal values are supported, for example 0.001.
2448
+ * @type {number}
2449
+ * @memberof ClusterLogApiAggregateSlowLogs
2450
+ */
2451
+ readonly maxLockTime?: number
2452
+
2453
+ /**
2454
+ *
2455
+ * @type {number}
2456
+ * @memberof ClusterLogApiAggregateSlowLogs
2457
+ */
2458
+ readonly minRowsExamined?: number
2459
+
2460
+ /**
2461
+ *
2462
+ * @type {number}
2463
+ * @memberof ClusterLogApiAggregateSlowLogs
2464
+ */
2465
+ readonly maxRowsExamined?: number
2466
+
2467
+ /**
2468
+ *
2469
+ * @type {number}
2470
+ * @memberof ClusterLogApiAggregateSlowLogs
2471
+ */
2472
+ readonly minRowsSent?: number
2473
+
2474
+ /**
2475
+ *
2476
+ * @type {number}
2477
+ * @memberof ClusterLogApiAggregateSlowLogs
2478
+ */
2479
+ readonly maxRowsSent?: number
2480
+
2481
+ /**
2482
+ *
2483
+ * @type {string}
2484
+ * @memberof ClusterLogApiAggregateSlowLogs
2485
+ */
2486
+ readonly dbName?: string
2487
+
2488
+ /**
2489
+ *
2490
+ * @type {string}
2491
+ * @memberof ClusterLogApiAggregateSlowLogs
2492
+ */
2493
+ readonly dbNameContains?: string
2494
+
2495
+ /**
2496
+ *
2497
+ * @type {string}
2498
+ * @memberof ClusterLogApiAggregateSlowLogs
2499
+ */
2500
+ readonly userName?: string
2501
+
2502
+ /**
2503
+ *
2504
+ * @type {string}
2505
+ * @memberof ClusterLogApiAggregateSlowLogs
2506
+ */
2507
+ readonly userNameContains?: string
2508
+
2509
+ /**
2510
+ *
2511
+ * @type {string}
2512
+ * @memberof ClusterLogApiAggregateSlowLogs
2513
+ */
2514
+ readonly clientIp?: string
2515
+
2516
+ /**
2517
+ *
2518
+ * @type {string}
2519
+ * @memberof ClusterLogApiAggregateSlowLogs
2520
+ */
2521
+ readonly clientIpContains?: string
2522
+
2523
+ /**
2524
+ *
2525
+ * @type {string}
2526
+ * @memberof ClusterLogApiAggregateSlowLogs
2527
+ */
2528
+ readonly clientIpCIDR?: string
2529
+
2530
+ /**
2531
+ *
2532
+ * @type {string}
2533
+ * @memberof ClusterLogApiAggregateSlowLogs
2534
+ */
2535
+ readonly appName?: string
2536
+
2537
+ /**
2538
+ *
2539
+ * @type {string}
2540
+ * @memberof ClusterLogApiAggregateSlowLogs
2541
+ */
2542
+ readonly appNameContains?: string
2543
+
2544
+ /**
2545
+ *
2546
+ * @type {string}
2547
+ * @memberof ClusterLogApiAggregateSlowLogs
2548
+ */
2549
+ readonly templateId?: string
2550
+
2551
+ /**
2552
+ *
2553
+ * @type {boolean}
2554
+ * @memberof ClusterLogApiAggregateSlowLogs
2555
+ */
2556
+ readonly unclassifiedOnly?: boolean
2310
2557
  }
2311
2558
 
2312
2559
  /**
@@ -3760,7 +4007,7 @@ export class ClusterLogApi extends BaseAPI implements ClusterLogApiInterface {
3760
4007
  * @memberof ClusterLogApi
3761
4008
  */
3762
4009
  public aggregateSlowLogs(requestParameters: ClusterLogApiAggregateSlowLogsRequest, options?: RawAxiosRequestConfig) {
3763
- 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));
4010
+ 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));
3764
4011
  }
3765
4012
 
3766
4013
  /**
@@ -452,10 +452,29 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
452
452
  * @param {SortType} [sortType]
453
453
  * @param {string} [groupBy]
454
454
  * @param {number} [topN]
455
+ * @param {number} [minExecutionTime] Minimum execution time in seconds. Decimal values are supported, for example 0.5.
456
+ * @param {number} [maxExecutionTime] Maximum execution time in seconds. Decimal values are supported, for example 0.5.
457
+ * @param {number} [minLockTime] Minimum lock time in seconds. Decimal values are supported, for example 0.001.
458
+ * @param {number} [maxLockTime] Maximum lock time in seconds. Decimal values are supported, for example 0.001.
459
+ * @param {number} [minRowsExamined]
460
+ * @param {number} [maxRowsExamined]
461
+ * @param {number} [minRowsSent]
462
+ * @param {number} [maxRowsSent]
463
+ * @param {string} [dbName]
464
+ * @param {string} [dbNameContains]
465
+ * @param {string} [userName]
466
+ * @param {string} [userNameContains]
467
+ * @param {string} [clientIp]
468
+ * @param {string} [clientIpContains]
469
+ * @param {string} [clientIpCIDR]
470
+ * @param {string} [appName]
471
+ * @param {string} [appNameContains]
472
+ * @param {string} [templateId]
473
+ * @param {boolean} [unclassifiedOnly]
455
474
  * @param {*} [options] Override http request option.
456
475
  * @throws {RequiredError}
457
476
  */
458
- 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> => {
477
+ 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> => {
459
478
  // verify required parameter 'orgName' is not null or undefined
460
479
  assertParamExists('aggregateSlowLogs', 'orgName', orgName)
461
480
  // verify required parameter 'clusterName' is not null or undefined
@@ -521,6 +540,82 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
521
540
  localVarQueryParameter['topN'] = topN;
522
541
  }
523
542
 
543
+ if (minExecutionTime !== undefined) {
544
+ localVarQueryParameter['minExecutionTime'] = minExecutionTime;
545
+ }
546
+
547
+ if (maxExecutionTime !== undefined) {
548
+ localVarQueryParameter['maxExecutionTime'] = maxExecutionTime;
549
+ }
550
+
551
+ if (minLockTime !== undefined) {
552
+ localVarQueryParameter['minLockTime'] = minLockTime;
553
+ }
554
+
555
+ if (maxLockTime !== undefined) {
556
+ localVarQueryParameter['maxLockTime'] = maxLockTime;
557
+ }
558
+
559
+ if (minRowsExamined !== undefined) {
560
+ localVarQueryParameter['minRowsExamined'] = minRowsExamined;
561
+ }
562
+
563
+ if (maxRowsExamined !== undefined) {
564
+ localVarQueryParameter['maxRowsExamined'] = maxRowsExamined;
565
+ }
566
+
567
+ if (minRowsSent !== undefined) {
568
+ localVarQueryParameter['minRowsSent'] = minRowsSent;
569
+ }
570
+
571
+ if (maxRowsSent !== undefined) {
572
+ localVarQueryParameter['maxRowsSent'] = maxRowsSent;
573
+ }
574
+
575
+ if (dbName !== undefined) {
576
+ localVarQueryParameter['dbName'] = dbName;
577
+ }
578
+
579
+ if (dbNameContains !== undefined) {
580
+ localVarQueryParameter['dbNameContains'] = dbNameContains;
581
+ }
582
+
583
+ if (userName !== undefined) {
584
+ localVarQueryParameter['userName'] = userName;
585
+ }
586
+
587
+ if (userNameContains !== undefined) {
588
+ localVarQueryParameter['userNameContains'] = userNameContains;
589
+ }
590
+
591
+ if (clientIp !== undefined) {
592
+ localVarQueryParameter['clientIp'] = clientIp;
593
+ }
594
+
595
+ if (clientIpContains !== undefined) {
596
+ localVarQueryParameter['clientIpContains'] = clientIpContains;
597
+ }
598
+
599
+ if (clientIpCIDR !== undefined) {
600
+ localVarQueryParameter['clientIpCIDR'] = clientIpCIDR;
601
+ }
602
+
603
+ if (appName !== undefined) {
604
+ localVarQueryParameter['appName'] = appName;
605
+ }
606
+
607
+ if (appNameContains !== undefined) {
608
+ localVarQueryParameter['appNameContains'] = appNameContains;
609
+ }
610
+
611
+ if (templateId !== undefined) {
612
+ localVarQueryParameter['templateId'] = templateId;
613
+ }
614
+
615
+ if (unclassifiedOnly !== undefined) {
616
+ localVarQueryParameter['unclassifiedOnly'] = unclassifiedOnly;
617
+ }
618
+
524
619
 
525
620
 
526
621
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -13445,11 +13540,30 @@ export const SharedApiFp = function(configuration?: Configuration) {
13445
13540
  * @param {SortType} [sortType]
13446
13541
  * @param {string} [groupBy]
13447
13542
  * @param {number} [topN]
13543
+ * @param {number} [minExecutionTime] Minimum execution time in seconds. Decimal values are supported, for example 0.5.
13544
+ * @param {number} [maxExecutionTime] Maximum execution time in seconds. Decimal values are supported, for example 0.5.
13545
+ * @param {number} [minLockTime] Minimum lock time in seconds. Decimal values are supported, for example 0.001.
13546
+ * @param {number} [maxLockTime] Maximum lock time in seconds. Decimal values are supported, for example 0.001.
13547
+ * @param {number} [minRowsExamined]
13548
+ * @param {number} [maxRowsExamined]
13549
+ * @param {number} [minRowsSent]
13550
+ * @param {number} [maxRowsSent]
13551
+ * @param {string} [dbName]
13552
+ * @param {string} [dbNameContains]
13553
+ * @param {string} [userName]
13554
+ * @param {string} [userNameContains]
13555
+ * @param {string} [clientIp]
13556
+ * @param {string} [clientIpContains]
13557
+ * @param {string} [clientIpCIDR]
13558
+ * @param {string} [appName]
13559
+ * @param {string} [appNameContains]
13560
+ * @param {string} [templateId]
13561
+ * @param {boolean} [unclassifiedOnly]
13448
13562
  * @param {*} [options] Override http request option.
13449
13563
  * @throws {RequiredError}
13450
13564
  */
13451
- 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>> {
13452
- const localVarAxiosArgs = await localVarAxiosParamCreator.aggregateSlowLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, query, limit, sortType, groupBy, topN, options);
13565
+ 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>> {
13566
+ 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);
13453
13567
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
13454
13568
  const localVarOperationServerBasePath = operationServerMap['SharedApi.aggregateSlowLogs']?.[localVarOperationServerIndex]?.url;
13455
13569
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -17223,7 +17337,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
17223
17337
  * @throws {RequiredError}
17224
17338
  */
17225
17339
  aggregateSlowLogs(requestParameters: SharedApiAggregateSlowLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLogAggregateResponse> {
17226
- 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));
17340
+ 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));
17227
17341
  },
17228
17342
  /**
17229
17343
  * alert statistic
@@ -22107,6 +22221,139 @@ export interface SharedApiAggregateSlowLogsRequest {
22107
22221
  * @memberof SharedApiAggregateSlowLogs
22108
22222
  */
22109
22223
  readonly topN?: number
22224
+
22225
+ /**
22226
+ * Minimum execution time in seconds. Decimal values are supported, for example 0.5.
22227
+ * @type {number}
22228
+ * @memberof SharedApiAggregateSlowLogs
22229
+ */
22230
+ readonly minExecutionTime?: number
22231
+
22232
+ /**
22233
+ * Maximum execution time in seconds. Decimal values are supported, for example 0.5.
22234
+ * @type {number}
22235
+ * @memberof SharedApiAggregateSlowLogs
22236
+ */
22237
+ readonly maxExecutionTime?: number
22238
+
22239
+ /**
22240
+ * Minimum lock time in seconds. Decimal values are supported, for example 0.001.
22241
+ * @type {number}
22242
+ * @memberof SharedApiAggregateSlowLogs
22243
+ */
22244
+ readonly minLockTime?: number
22245
+
22246
+ /**
22247
+ * Maximum lock time in seconds. Decimal values are supported, for example 0.001.
22248
+ * @type {number}
22249
+ * @memberof SharedApiAggregateSlowLogs
22250
+ */
22251
+ readonly maxLockTime?: number
22252
+
22253
+ /**
22254
+ *
22255
+ * @type {number}
22256
+ * @memberof SharedApiAggregateSlowLogs
22257
+ */
22258
+ readonly minRowsExamined?: number
22259
+
22260
+ /**
22261
+ *
22262
+ * @type {number}
22263
+ * @memberof SharedApiAggregateSlowLogs
22264
+ */
22265
+ readonly maxRowsExamined?: number
22266
+
22267
+ /**
22268
+ *
22269
+ * @type {number}
22270
+ * @memberof SharedApiAggregateSlowLogs
22271
+ */
22272
+ readonly minRowsSent?: number
22273
+
22274
+ /**
22275
+ *
22276
+ * @type {number}
22277
+ * @memberof SharedApiAggregateSlowLogs
22278
+ */
22279
+ readonly maxRowsSent?: number
22280
+
22281
+ /**
22282
+ *
22283
+ * @type {string}
22284
+ * @memberof SharedApiAggregateSlowLogs
22285
+ */
22286
+ readonly dbName?: string
22287
+
22288
+ /**
22289
+ *
22290
+ * @type {string}
22291
+ * @memberof SharedApiAggregateSlowLogs
22292
+ */
22293
+ readonly dbNameContains?: string
22294
+
22295
+ /**
22296
+ *
22297
+ * @type {string}
22298
+ * @memberof SharedApiAggregateSlowLogs
22299
+ */
22300
+ readonly userName?: string
22301
+
22302
+ /**
22303
+ *
22304
+ * @type {string}
22305
+ * @memberof SharedApiAggregateSlowLogs
22306
+ */
22307
+ readonly userNameContains?: string
22308
+
22309
+ /**
22310
+ *
22311
+ * @type {string}
22312
+ * @memberof SharedApiAggregateSlowLogs
22313
+ */
22314
+ readonly clientIp?: string
22315
+
22316
+ /**
22317
+ *
22318
+ * @type {string}
22319
+ * @memberof SharedApiAggregateSlowLogs
22320
+ */
22321
+ readonly clientIpContains?: string
22322
+
22323
+ /**
22324
+ *
22325
+ * @type {string}
22326
+ * @memberof SharedApiAggregateSlowLogs
22327
+ */
22328
+ readonly clientIpCIDR?: string
22329
+
22330
+ /**
22331
+ *
22332
+ * @type {string}
22333
+ * @memberof SharedApiAggregateSlowLogs
22334
+ */
22335
+ readonly appName?: string
22336
+
22337
+ /**
22338
+ *
22339
+ * @type {string}
22340
+ * @memberof SharedApiAggregateSlowLogs
22341
+ */
22342
+ readonly appNameContains?: string
22343
+
22344
+ /**
22345
+ *
22346
+ * @type {string}
22347
+ * @memberof SharedApiAggregateSlowLogs
22348
+ */
22349
+ readonly templateId?: string
22350
+
22351
+ /**
22352
+ *
22353
+ * @type {boolean}
22354
+ * @memberof SharedApiAggregateSlowLogs
22355
+ */
22356
+ readonly unclassifiedOnly?: boolean
22110
22357
  }
22111
22358
 
22112
22359
  /**
@@ -29942,7 +30189,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
29942
30189
  * @memberof SharedApi
29943
30190
  */
29944
30191
  public aggregateSlowLogs(requestParameters: SharedApiAggregateSlowLogsRequest, options?: RawAxiosRequestConfig) {
29945
- return SharedApiFp(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));
30192
+ return SharedApiFp(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));
29946
30193
  }
29947
30194
 
29948
30195
  /**