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.
@@ -532,10 +532,29 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
532
532
  * @param {SortType} [sortType]
533
533
  * @param {string} [groupBy]
534
534
  * @param {number} [topN]
535
+ * @param {number} [minExecutionTime] Minimum execution time in seconds. Decimal values are supported, for example 0.5.
536
+ * @param {number} [maxExecutionTime] Maximum execution time in seconds. Decimal values are supported, for example 0.5.
537
+ * @param {number} [minLockTime] Minimum lock time in seconds. Decimal values are supported, for example 0.001.
538
+ * @param {number} [maxLockTime] Maximum lock time in seconds. Decimal values are supported, for example 0.001.
539
+ * @param {number} [minRowsExamined]
540
+ * @param {number} [maxRowsExamined]
541
+ * @param {number} [minRowsSent]
542
+ * @param {number} [maxRowsSent]
543
+ * @param {string} [dbName]
544
+ * @param {string} [dbNameContains]
545
+ * @param {string} [userName]
546
+ * @param {string} [userNameContains]
547
+ * @param {string} [clientIp]
548
+ * @param {string} [clientIpContains]
549
+ * @param {string} [clientIpCIDR]
550
+ * @param {string} [appName]
551
+ * @param {string} [appNameContains]
552
+ * @param {string} [templateId]
553
+ * @param {boolean} [unclassifiedOnly]
535
554
  * @param {*} [options] Override http request option.
536
555
  * @throws {RequiredError}
537
556
  */
538
- 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> => {
557
+ 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> => {
539
558
  // verify required parameter 'orgName' is not null or undefined
540
559
  assertParamExists('aggregateSlowLogs', 'orgName', orgName)
541
560
  // verify required parameter 'clusterName' is not null or undefined
@@ -601,6 +620,82 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
601
620
  localVarQueryParameter['topN'] = topN;
602
621
  }
603
622
 
623
+ if (minExecutionTime !== undefined) {
624
+ localVarQueryParameter['minExecutionTime'] = minExecutionTime;
625
+ }
626
+
627
+ if (maxExecutionTime !== undefined) {
628
+ localVarQueryParameter['maxExecutionTime'] = maxExecutionTime;
629
+ }
630
+
631
+ if (minLockTime !== undefined) {
632
+ localVarQueryParameter['minLockTime'] = minLockTime;
633
+ }
634
+
635
+ if (maxLockTime !== undefined) {
636
+ localVarQueryParameter['maxLockTime'] = maxLockTime;
637
+ }
638
+
639
+ if (minRowsExamined !== undefined) {
640
+ localVarQueryParameter['minRowsExamined'] = minRowsExamined;
641
+ }
642
+
643
+ if (maxRowsExamined !== undefined) {
644
+ localVarQueryParameter['maxRowsExamined'] = maxRowsExamined;
645
+ }
646
+
647
+ if (minRowsSent !== undefined) {
648
+ localVarQueryParameter['minRowsSent'] = minRowsSent;
649
+ }
650
+
651
+ if (maxRowsSent !== undefined) {
652
+ localVarQueryParameter['maxRowsSent'] = maxRowsSent;
653
+ }
654
+
655
+ if (dbName !== undefined) {
656
+ localVarQueryParameter['dbName'] = dbName;
657
+ }
658
+
659
+ if (dbNameContains !== undefined) {
660
+ localVarQueryParameter['dbNameContains'] = dbNameContains;
661
+ }
662
+
663
+ if (userName !== undefined) {
664
+ localVarQueryParameter['userName'] = userName;
665
+ }
666
+
667
+ if (userNameContains !== undefined) {
668
+ localVarQueryParameter['userNameContains'] = userNameContains;
669
+ }
670
+
671
+ if (clientIp !== undefined) {
672
+ localVarQueryParameter['clientIp'] = clientIp;
673
+ }
674
+
675
+ if (clientIpContains !== undefined) {
676
+ localVarQueryParameter['clientIpContains'] = clientIpContains;
677
+ }
678
+
679
+ if (clientIpCIDR !== undefined) {
680
+ localVarQueryParameter['clientIpCIDR'] = clientIpCIDR;
681
+ }
682
+
683
+ if (appName !== undefined) {
684
+ localVarQueryParameter['appName'] = appName;
685
+ }
686
+
687
+ if (appNameContains !== undefined) {
688
+ localVarQueryParameter['appNameContains'] = appNameContains;
689
+ }
690
+
691
+ if (templateId !== undefined) {
692
+ localVarQueryParameter['templateId'] = templateId;
693
+ }
694
+
695
+ if (unclassifiedOnly !== undefined) {
696
+ localVarQueryParameter['unclassifiedOnly'] = unclassifiedOnly;
697
+ }
698
+
604
699
 
605
700
 
606
701
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -14021,11 +14116,30 @@ export const SharedApiFp = function(configuration?: Configuration) {
14021
14116
  * @param {SortType} [sortType]
14022
14117
  * @param {string} [groupBy]
14023
14118
  * @param {number} [topN]
14119
+ * @param {number} [minExecutionTime] Minimum execution time in seconds. Decimal values are supported, for example 0.5.
14120
+ * @param {number} [maxExecutionTime] Maximum execution time in seconds. Decimal values are supported, for example 0.5.
14121
+ * @param {number} [minLockTime] Minimum lock time in seconds. Decimal values are supported, for example 0.001.
14122
+ * @param {number} [maxLockTime] Maximum lock time in seconds. Decimal values are supported, for example 0.001.
14123
+ * @param {number} [minRowsExamined]
14124
+ * @param {number} [maxRowsExamined]
14125
+ * @param {number} [minRowsSent]
14126
+ * @param {number} [maxRowsSent]
14127
+ * @param {string} [dbName]
14128
+ * @param {string} [dbNameContains]
14129
+ * @param {string} [userName]
14130
+ * @param {string} [userNameContains]
14131
+ * @param {string} [clientIp]
14132
+ * @param {string} [clientIpContains]
14133
+ * @param {string} [clientIpCIDR]
14134
+ * @param {string} [appName]
14135
+ * @param {string} [appNameContains]
14136
+ * @param {string} [templateId]
14137
+ * @param {boolean} [unclassifiedOnly]
14024
14138
  * @param {*} [options] Override http request option.
14025
14139
  * @throws {RequiredError}
14026
14140
  */
14027
- 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>> {
14028
- const localVarAxiosArgs = await localVarAxiosParamCreator.aggregateSlowLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, query, limit, sortType, groupBy, topN, options);
14141
+ 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>> {
14142
+ 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);
14029
14143
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14030
14144
  const localVarOperationServerBasePath = operationServerMap['SharedApi.aggregateSlowLogs']?.[localVarOperationServerIndex]?.url;
14031
14145
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -17936,7 +18050,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
17936
18050
  * @throws {RequiredError}
17937
18051
  */
17938
18052
  aggregateSlowLogs(requestParameters: SharedApiAggregateSlowLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLogAggregateResponse> {
17939
- 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));
18053
+ 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));
17940
18054
  },
17941
18055
  /**
17942
18056
  *
@@ -23038,6 +23152,139 @@ export interface SharedApiAggregateSlowLogsRequest {
23038
23152
  * @memberof SharedApiAggregateSlowLogs
23039
23153
  */
23040
23154
  readonly topN?: number
23155
+
23156
+ /**
23157
+ * Minimum execution time in seconds. Decimal values are supported, for example 0.5.
23158
+ * @type {number}
23159
+ * @memberof SharedApiAggregateSlowLogs
23160
+ */
23161
+ readonly minExecutionTime?: number
23162
+
23163
+ /**
23164
+ * Maximum execution time in seconds. Decimal values are supported, for example 0.5.
23165
+ * @type {number}
23166
+ * @memberof SharedApiAggregateSlowLogs
23167
+ */
23168
+ readonly maxExecutionTime?: number
23169
+
23170
+ /**
23171
+ * Minimum lock time in seconds. Decimal values are supported, for example 0.001.
23172
+ * @type {number}
23173
+ * @memberof SharedApiAggregateSlowLogs
23174
+ */
23175
+ readonly minLockTime?: number
23176
+
23177
+ /**
23178
+ * Maximum lock time in seconds. Decimal values are supported, for example 0.001.
23179
+ * @type {number}
23180
+ * @memberof SharedApiAggregateSlowLogs
23181
+ */
23182
+ readonly maxLockTime?: number
23183
+
23184
+ /**
23185
+ *
23186
+ * @type {number}
23187
+ * @memberof SharedApiAggregateSlowLogs
23188
+ */
23189
+ readonly minRowsExamined?: number
23190
+
23191
+ /**
23192
+ *
23193
+ * @type {number}
23194
+ * @memberof SharedApiAggregateSlowLogs
23195
+ */
23196
+ readonly maxRowsExamined?: number
23197
+
23198
+ /**
23199
+ *
23200
+ * @type {number}
23201
+ * @memberof SharedApiAggregateSlowLogs
23202
+ */
23203
+ readonly minRowsSent?: number
23204
+
23205
+ /**
23206
+ *
23207
+ * @type {number}
23208
+ * @memberof SharedApiAggregateSlowLogs
23209
+ */
23210
+ readonly maxRowsSent?: number
23211
+
23212
+ /**
23213
+ *
23214
+ * @type {string}
23215
+ * @memberof SharedApiAggregateSlowLogs
23216
+ */
23217
+ readonly dbName?: string
23218
+
23219
+ /**
23220
+ *
23221
+ * @type {string}
23222
+ * @memberof SharedApiAggregateSlowLogs
23223
+ */
23224
+ readonly dbNameContains?: string
23225
+
23226
+ /**
23227
+ *
23228
+ * @type {string}
23229
+ * @memberof SharedApiAggregateSlowLogs
23230
+ */
23231
+ readonly userName?: string
23232
+
23233
+ /**
23234
+ *
23235
+ * @type {string}
23236
+ * @memberof SharedApiAggregateSlowLogs
23237
+ */
23238
+ readonly userNameContains?: string
23239
+
23240
+ /**
23241
+ *
23242
+ * @type {string}
23243
+ * @memberof SharedApiAggregateSlowLogs
23244
+ */
23245
+ readonly clientIp?: string
23246
+
23247
+ /**
23248
+ *
23249
+ * @type {string}
23250
+ * @memberof SharedApiAggregateSlowLogs
23251
+ */
23252
+ readonly clientIpContains?: string
23253
+
23254
+ /**
23255
+ *
23256
+ * @type {string}
23257
+ * @memberof SharedApiAggregateSlowLogs
23258
+ */
23259
+ readonly clientIpCIDR?: string
23260
+
23261
+ /**
23262
+ *
23263
+ * @type {string}
23264
+ * @memberof SharedApiAggregateSlowLogs
23265
+ */
23266
+ readonly appName?: string
23267
+
23268
+ /**
23269
+ *
23270
+ * @type {string}
23271
+ * @memberof SharedApiAggregateSlowLogs
23272
+ */
23273
+ readonly appNameContains?: string
23274
+
23275
+ /**
23276
+ *
23277
+ * @type {string}
23278
+ * @memberof SharedApiAggregateSlowLogs
23279
+ */
23280
+ readonly templateId?: string
23281
+
23282
+ /**
23283
+ *
23284
+ * @type {boolean}
23285
+ * @memberof SharedApiAggregateSlowLogs
23286
+ */
23287
+ readonly unclassifiedOnly?: boolean
23041
23288
  }
23042
23289
 
23043
23290
  /**
@@ -31340,7 +31587,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
31340
31587
  * @memberof SharedApi
31341
31588
  */
31342
31589
  public aggregateSlowLogs(requestParameters: SharedApiAggregateSlowLogsRequest, options?: RawAxiosRequestConfig) {
31343
- 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));
31590
+ 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));
31344
31591
  }
31345
31592
 
31346
31593
  /**
package/src/openapi.yaml CHANGED
@@ -2911,6 +2911,94 @@ paths:
2911
2911
  schema:
2912
2912
  type: integer
2913
2913
  format: int32
2914
+ - in: query
2915
+ name: minExecutionTime
2916
+ description: Minimum execution time in seconds. Decimal values are supported, for example 0.5.
2917
+ schema:
2918
+ type: number
2919
+ format: double
2920
+ - in: query
2921
+ name: maxExecutionTime
2922
+ description: Maximum execution time in seconds. Decimal values are supported, for example 0.5.
2923
+ schema:
2924
+ type: number
2925
+ format: double
2926
+ - in: query
2927
+ name: minLockTime
2928
+ description: Minimum lock time in seconds. Decimal values are supported, for example 0.001.
2929
+ schema:
2930
+ type: number
2931
+ format: double
2932
+ - in: query
2933
+ name: maxLockTime
2934
+ description: Maximum lock time in seconds. Decimal values are supported, for example 0.001.
2935
+ schema:
2936
+ type: number
2937
+ format: double
2938
+ - in: query
2939
+ name: minRowsExamined
2940
+ schema:
2941
+ type: integer
2942
+ format: int64
2943
+ - in: query
2944
+ name: maxRowsExamined
2945
+ schema:
2946
+ type: integer
2947
+ format: int64
2948
+ - in: query
2949
+ name: minRowsSent
2950
+ schema:
2951
+ type: integer
2952
+ format: int64
2953
+ - in: query
2954
+ name: maxRowsSent
2955
+ schema:
2956
+ type: integer
2957
+ format: int64
2958
+ - in: query
2959
+ name: dbName
2960
+ schema:
2961
+ type: string
2962
+ - in: query
2963
+ name: dbNameContains
2964
+ schema:
2965
+ type: string
2966
+ - in: query
2967
+ name: userName
2968
+ schema:
2969
+ type: string
2970
+ - in: query
2971
+ name: userNameContains
2972
+ schema:
2973
+ type: string
2974
+ - in: query
2975
+ name: clientIp
2976
+ schema:
2977
+ type: string
2978
+ - in: query
2979
+ name: clientIpContains
2980
+ schema:
2981
+ type: string
2982
+ - in: query
2983
+ name: clientIpCIDR
2984
+ schema:
2985
+ type: string
2986
+ - in: query
2987
+ name: appName
2988
+ schema:
2989
+ type: string
2990
+ - in: query
2991
+ name: appNameContains
2992
+ schema:
2993
+ type: string
2994
+ - in: query
2995
+ name: templateId
2996
+ schema:
2997
+ type: string
2998
+ - in: query
2999
+ name: unclassifiedOnly
3000
+ schema:
3001
+ type: boolean
2914
3002
  responses:
2915
3003
  '200':
2916
3004
  content: