kb-cloud-client-typescript 2.3.0-alpha.97 → 2.3.0-alpha.98
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/dist/adminapi/apis/cluster-log-api.d.ts +114 -2
- package/dist/adminapi/apis/cluster-log-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-log-api.js +75 -5
- package/dist/adminapi/apis/cluster-log-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +114 -2
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +75 -5
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/storage-create.d.ts +0 -6
- package/dist/adminapi/models/storage-create.d.ts.map +1 -1
- package/dist/adminapi/models/storage-update.d.ts +0 -6
- package/dist/adminapi/models/storage-update.d.ts.map +1 -1
- package/dist/adminapi/models/storage.d.ts +0 -6
- package/dist/adminapi/models/storage.d.ts.map +1 -1
- package/dist/internalapi/models/storage-create.d.ts +0 -6
- package/dist/internalapi/models/storage-create.d.ts.map +1 -1
- package/dist/internalapi/models/storage.d.ts +0 -6
- package/dist/internalapi/models/storage.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-log-api.d.ts +114 -2
- package/dist/openapi/apis/cluster-log-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-log-api.js +75 -5
- package/dist/openapi/apis/cluster-log-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +114 -2
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +75 -5
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/storage.d.ts +0 -6
- package/dist/openapi/models/storage.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/apis/cluster-log-api.ts +187 -5
- package/src/adminapi/apis/shared-api.ts +187 -5
- package/src/adminapi/models/storage-create.ts +0 -6
- package/src/adminapi/models/storage-update.ts +0 -6
- package/src/adminapi/models/storage.ts +0 -6
- package/src/adminapi.yaml +68 -12
- package/src/internalapi/models/storage-create.ts +0 -6
- package/src/internalapi/models/storage.ts +0 -6
- package/src/internalapi.yaml +0 -8
- package/src/openapi/apis/cluster-log-api.ts +187 -5
- package/src/openapi/apis/shared-api.ts +187 -5
- package/src/openapi/models/storage.ts +0 -6
- package/src/openapi.yaml +68 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/storage.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IACtC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/storage.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;IACtC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAC;CACvC"}
|
package/package.json
CHANGED
|
@@ -579,10 +579,24 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
|
|
|
579
579
|
* @param {string} [componentName]
|
|
580
580
|
* @param {string} [instanceName]
|
|
581
581
|
* @param {string} [query]
|
|
582
|
+
* @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Only applies when logType=slow.
|
|
583
|
+
* @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Only applies when logType=slow.
|
|
584
|
+
* @param {number} [minLockTime] Minimum slow log lock time in seconds. Only applies when logType=slow.
|
|
585
|
+
* @param {number} [maxLockTime] Maximum slow log lock time in seconds. Only applies when logType=slow.
|
|
586
|
+
* @param {number} [minRowsExamined]
|
|
587
|
+
* @param {number} [maxRowsExamined]
|
|
588
|
+
* @param {number} [minRowsSent]
|
|
589
|
+
* @param {number} [maxRowsSent]
|
|
590
|
+
* @param {string} [dbName]
|
|
591
|
+
* @param {string} [userName]
|
|
592
|
+
* @param {string} [clientIp]
|
|
593
|
+
* @param {string} [appName]
|
|
594
|
+
* @param {string} [templateId]
|
|
595
|
+
* @param {boolean} [unclassifiedOnly]
|
|
582
596
|
* @param {*} [options] Override http request option.
|
|
583
597
|
* @throws {RequiredError}
|
|
584
598
|
*/
|
|
585
|
-
queryLogHits: async (orgName: string, clusterName: string, startTime: string, endTime: string, step: string, logType: string, componentName?: string, instanceName?: string, query?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
599
|
+
queryLogHits: async (orgName: string, clusterName: string, startTime: string, endTime: string, step: string, logType: string, componentName?: string, instanceName?: string, query?: string, minExecutionTime?: number, maxExecutionTime?: number, minLockTime?: number, maxLockTime?: number, minRowsExamined?: number, maxRowsExamined?: number, minRowsSent?: number, maxRowsSent?: number, dbName?: string, userName?: string, clientIp?: string, appName?: string, templateId?: string, unclassifiedOnly?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
586
600
|
// verify required parameter 'orgName' is not null or undefined
|
|
587
601
|
assertParamExists('queryLogHits', 'orgName', orgName)
|
|
588
602
|
// verify required parameter 'clusterName' is not null or undefined
|
|
@@ -640,6 +654,62 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
|
|
|
640
654
|
localVarQueryParameter['query'] = query;
|
|
641
655
|
}
|
|
642
656
|
|
|
657
|
+
if (minExecutionTime !== undefined) {
|
|
658
|
+
localVarQueryParameter['minExecutionTime'] = minExecutionTime;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
if (maxExecutionTime !== undefined) {
|
|
662
|
+
localVarQueryParameter['maxExecutionTime'] = maxExecutionTime;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
if (minLockTime !== undefined) {
|
|
666
|
+
localVarQueryParameter['minLockTime'] = minLockTime;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
if (maxLockTime !== undefined) {
|
|
670
|
+
localVarQueryParameter['maxLockTime'] = maxLockTime;
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
if (minRowsExamined !== undefined) {
|
|
674
|
+
localVarQueryParameter['minRowsExamined'] = minRowsExamined;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
if (maxRowsExamined !== undefined) {
|
|
678
|
+
localVarQueryParameter['maxRowsExamined'] = maxRowsExamined;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
if (minRowsSent !== undefined) {
|
|
682
|
+
localVarQueryParameter['minRowsSent'] = minRowsSent;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
if (maxRowsSent !== undefined) {
|
|
686
|
+
localVarQueryParameter['maxRowsSent'] = maxRowsSent;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
if (dbName !== undefined) {
|
|
690
|
+
localVarQueryParameter['dbName'] = dbName;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
if (userName !== undefined) {
|
|
694
|
+
localVarQueryParameter['userName'] = userName;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
if (clientIp !== undefined) {
|
|
698
|
+
localVarQueryParameter['clientIp'] = clientIp;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
if (appName !== undefined) {
|
|
702
|
+
localVarQueryParameter['appName'] = appName;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
if (templateId !== undefined) {
|
|
706
|
+
localVarQueryParameter['templateId'] = templateId;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
if (unclassifiedOnly !== undefined) {
|
|
710
|
+
localVarQueryParameter['unclassifiedOnly'] = unclassifiedOnly;
|
|
711
|
+
}
|
|
712
|
+
|
|
643
713
|
|
|
644
714
|
|
|
645
715
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1402,11 +1472,25 @@ export const ClusterLogApiFp = function(configuration?: Configuration) {
|
|
|
1402
1472
|
* @param {string} [componentName]
|
|
1403
1473
|
* @param {string} [instanceName]
|
|
1404
1474
|
* @param {string} [query]
|
|
1475
|
+
* @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Only applies when logType=slow.
|
|
1476
|
+
* @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Only applies when logType=slow.
|
|
1477
|
+
* @param {number} [minLockTime] Minimum slow log lock time in seconds. Only applies when logType=slow.
|
|
1478
|
+
* @param {number} [maxLockTime] Maximum slow log lock time in seconds. Only applies when logType=slow.
|
|
1479
|
+
* @param {number} [minRowsExamined]
|
|
1480
|
+
* @param {number} [maxRowsExamined]
|
|
1481
|
+
* @param {number} [minRowsSent]
|
|
1482
|
+
* @param {number} [maxRowsSent]
|
|
1483
|
+
* @param {string} [dbName]
|
|
1484
|
+
* @param {string} [userName]
|
|
1485
|
+
* @param {string} [clientIp]
|
|
1486
|
+
* @param {string} [appName]
|
|
1487
|
+
* @param {string} [templateId]
|
|
1488
|
+
* @param {boolean} [unclassifiedOnly]
|
|
1405
1489
|
* @param {*} [options] Override http request option.
|
|
1406
1490
|
* @throws {RequiredError}
|
|
1407
1491
|
*/
|
|
1408
|
-
async queryLogHits(orgName: string, clusterName: string, startTime: string, endTime: string, step: string, logType: string, componentName?: string, instanceName?: string, query?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterLogHitsResponse>> {
|
|
1409
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLogHits(orgName, clusterName, startTime, endTime, step, logType, componentName, instanceName, query, options);
|
|
1492
|
+
async queryLogHits(orgName: string, clusterName: string, startTime: string, endTime: string, step: string, logType: string, componentName?: string, instanceName?: string, query?: string, minExecutionTime?: number, maxExecutionTime?: number, minLockTime?: number, maxLockTime?: number, minRowsExamined?: number, maxRowsExamined?: number, minRowsSent?: number, maxRowsSent?: number, dbName?: string, userName?: string, clientIp?: string, appName?: string, templateId?: string, unclassifiedOnly?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterLogHitsResponse>> {
|
|
1493
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLogHits(orgName, clusterName, startTime, endTime, step, logType, componentName, instanceName, query, minExecutionTime, maxExecutionTime, minLockTime, maxLockTime, minRowsExamined, maxRowsExamined, minRowsSent, maxRowsSent, dbName, userName, clientIp, appName, templateId, unclassifiedOnly, options);
|
|
1410
1494
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1411
1495
|
const localVarOperationServerBasePath = operationServerMap['ClusterLogApi.queryLogHits']?.[localVarOperationServerIndex]?.url;
|
|
1412
1496
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1633,7 +1717,7 @@ export const ClusterLogApiFactory = function (configuration?: Configuration, bas
|
|
|
1633
1717
|
* @throws {RequiredError}
|
|
1634
1718
|
*/
|
|
1635
1719
|
queryLogHits(requestParameters: ClusterLogApiQueryLogHitsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterLogHitsResponse> {
|
|
1636
|
-
return localVarFp.queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, options).then((request) => request(axios, basePath));
|
|
1720
|
+
return localVarFp.queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, options).then((request) => request(axios, basePath));
|
|
1637
1721
|
},
|
|
1638
1722
|
/**
|
|
1639
1723
|
* Query pod logs of a cluster
|
|
@@ -2367,6 +2451,104 @@ export interface ClusterLogApiQueryLogHitsRequest {
|
|
|
2367
2451
|
* @memberof ClusterLogApiQueryLogHits
|
|
2368
2452
|
*/
|
|
2369
2453
|
readonly query?: string
|
|
2454
|
+
|
|
2455
|
+
/**
|
|
2456
|
+
* Minimum slow log execution time in seconds. Only applies when logType=slow.
|
|
2457
|
+
* @type {number}
|
|
2458
|
+
* @memberof ClusterLogApiQueryLogHits
|
|
2459
|
+
*/
|
|
2460
|
+
readonly minExecutionTime?: number
|
|
2461
|
+
|
|
2462
|
+
/**
|
|
2463
|
+
* Maximum slow log execution time in seconds. Only applies when logType=slow.
|
|
2464
|
+
* @type {number}
|
|
2465
|
+
* @memberof ClusterLogApiQueryLogHits
|
|
2466
|
+
*/
|
|
2467
|
+
readonly maxExecutionTime?: number
|
|
2468
|
+
|
|
2469
|
+
/**
|
|
2470
|
+
* Minimum slow log lock time in seconds. Only applies when logType=slow.
|
|
2471
|
+
* @type {number}
|
|
2472
|
+
* @memberof ClusterLogApiQueryLogHits
|
|
2473
|
+
*/
|
|
2474
|
+
readonly minLockTime?: number
|
|
2475
|
+
|
|
2476
|
+
/**
|
|
2477
|
+
* Maximum slow log lock time in seconds. Only applies when logType=slow.
|
|
2478
|
+
* @type {number}
|
|
2479
|
+
* @memberof ClusterLogApiQueryLogHits
|
|
2480
|
+
*/
|
|
2481
|
+
readonly maxLockTime?: number
|
|
2482
|
+
|
|
2483
|
+
/**
|
|
2484
|
+
*
|
|
2485
|
+
* @type {number}
|
|
2486
|
+
* @memberof ClusterLogApiQueryLogHits
|
|
2487
|
+
*/
|
|
2488
|
+
readonly minRowsExamined?: number
|
|
2489
|
+
|
|
2490
|
+
/**
|
|
2491
|
+
*
|
|
2492
|
+
* @type {number}
|
|
2493
|
+
* @memberof ClusterLogApiQueryLogHits
|
|
2494
|
+
*/
|
|
2495
|
+
readonly maxRowsExamined?: number
|
|
2496
|
+
|
|
2497
|
+
/**
|
|
2498
|
+
*
|
|
2499
|
+
* @type {number}
|
|
2500
|
+
* @memberof ClusterLogApiQueryLogHits
|
|
2501
|
+
*/
|
|
2502
|
+
readonly minRowsSent?: number
|
|
2503
|
+
|
|
2504
|
+
/**
|
|
2505
|
+
*
|
|
2506
|
+
* @type {number}
|
|
2507
|
+
* @memberof ClusterLogApiQueryLogHits
|
|
2508
|
+
*/
|
|
2509
|
+
readonly maxRowsSent?: number
|
|
2510
|
+
|
|
2511
|
+
/**
|
|
2512
|
+
*
|
|
2513
|
+
* @type {string}
|
|
2514
|
+
* @memberof ClusterLogApiQueryLogHits
|
|
2515
|
+
*/
|
|
2516
|
+
readonly dbName?: string
|
|
2517
|
+
|
|
2518
|
+
/**
|
|
2519
|
+
*
|
|
2520
|
+
* @type {string}
|
|
2521
|
+
* @memberof ClusterLogApiQueryLogHits
|
|
2522
|
+
*/
|
|
2523
|
+
readonly userName?: string
|
|
2524
|
+
|
|
2525
|
+
/**
|
|
2526
|
+
*
|
|
2527
|
+
* @type {string}
|
|
2528
|
+
* @memberof ClusterLogApiQueryLogHits
|
|
2529
|
+
*/
|
|
2530
|
+
readonly clientIp?: string
|
|
2531
|
+
|
|
2532
|
+
/**
|
|
2533
|
+
*
|
|
2534
|
+
* @type {string}
|
|
2535
|
+
* @memberof ClusterLogApiQueryLogHits
|
|
2536
|
+
*/
|
|
2537
|
+
readonly appName?: string
|
|
2538
|
+
|
|
2539
|
+
/**
|
|
2540
|
+
*
|
|
2541
|
+
* @type {string}
|
|
2542
|
+
* @memberof ClusterLogApiQueryLogHits
|
|
2543
|
+
*/
|
|
2544
|
+
readonly templateId?: string
|
|
2545
|
+
|
|
2546
|
+
/**
|
|
2547
|
+
*
|
|
2548
|
+
* @type {boolean}
|
|
2549
|
+
* @memberof ClusterLogApiQueryLogHits
|
|
2550
|
+
*/
|
|
2551
|
+
readonly unclassifiedOnly?: boolean
|
|
2370
2552
|
}
|
|
2371
2553
|
|
|
2372
2554
|
/**
|
|
@@ -3080,7 +3262,7 @@ export class ClusterLogApi extends BaseAPI implements ClusterLogApiInterface {
|
|
|
3080
3262
|
* @memberof ClusterLogApi
|
|
3081
3263
|
*/
|
|
3082
3264
|
public queryLogHits(requestParameters: ClusterLogApiQueryLogHitsRequest, options?: RawAxiosRequestConfig) {
|
|
3083
|
-
return ClusterLogApiFp(this.configuration).queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, options).then((request) => request(this.axios, this.basePath));
|
|
3265
|
+
return ClusterLogApiFp(this.configuration).queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, options).then((request) => request(this.axios, this.basePath));
|
|
3084
3266
|
}
|
|
3085
3267
|
|
|
3086
3268
|
/**
|
|
@@ -9311,10 +9311,24 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
9311
9311
|
* @param {string} [componentName]
|
|
9312
9312
|
* @param {string} [instanceName]
|
|
9313
9313
|
* @param {string} [query]
|
|
9314
|
+
* @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Only applies when logType=slow.
|
|
9315
|
+
* @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Only applies when logType=slow.
|
|
9316
|
+
* @param {number} [minLockTime] Minimum slow log lock time in seconds. Only applies when logType=slow.
|
|
9317
|
+
* @param {number} [maxLockTime] Maximum slow log lock time in seconds. Only applies when logType=slow.
|
|
9318
|
+
* @param {number} [minRowsExamined]
|
|
9319
|
+
* @param {number} [maxRowsExamined]
|
|
9320
|
+
* @param {number} [minRowsSent]
|
|
9321
|
+
* @param {number} [maxRowsSent]
|
|
9322
|
+
* @param {string} [dbName]
|
|
9323
|
+
* @param {string} [userName]
|
|
9324
|
+
* @param {string} [clientIp]
|
|
9325
|
+
* @param {string} [appName]
|
|
9326
|
+
* @param {string} [templateId]
|
|
9327
|
+
* @param {boolean} [unclassifiedOnly]
|
|
9314
9328
|
* @param {*} [options] Override http request option.
|
|
9315
9329
|
* @throws {RequiredError}
|
|
9316
9330
|
*/
|
|
9317
|
-
queryLogHits: async (orgName: string, clusterName: string, startTime: string, endTime: string, step: string, logType: string, componentName?: string, instanceName?: string, query?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9331
|
+
queryLogHits: async (orgName: string, clusterName: string, startTime: string, endTime: string, step: string, logType: string, componentName?: string, instanceName?: string, query?: string, minExecutionTime?: number, maxExecutionTime?: number, minLockTime?: number, maxLockTime?: number, minRowsExamined?: number, maxRowsExamined?: number, minRowsSent?: number, maxRowsSent?: number, dbName?: string, userName?: string, clientIp?: string, appName?: string, templateId?: string, unclassifiedOnly?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
9318
9332
|
// verify required parameter 'orgName' is not null or undefined
|
|
9319
9333
|
assertParamExists('queryLogHits', 'orgName', orgName)
|
|
9320
9334
|
// verify required parameter 'clusterName' is not null or undefined
|
|
@@ -9372,6 +9386,62 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
9372
9386
|
localVarQueryParameter['query'] = query;
|
|
9373
9387
|
}
|
|
9374
9388
|
|
|
9389
|
+
if (minExecutionTime !== undefined) {
|
|
9390
|
+
localVarQueryParameter['minExecutionTime'] = minExecutionTime;
|
|
9391
|
+
}
|
|
9392
|
+
|
|
9393
|
+
if (maxExecutionTime !== undefined) {
|
|
9394
|
+
localVarQueryParameter['maxExecutionTime'] = maxExecutionTime;
|
|
9395
|
+
}
|
|
9396
|
+
|
|
9397
|
+
if (minLockTime !== undefined) {
|
|
9398
|
+
localVarQueryParameter['minLockTime'] = minLockTime;
|
|
9399
|
+
}
|
|
9400
|
+
|
|
9401
|
+
if (maxLockTime !== undefined) {
|
|
9402
|
+
localVarQueryParameter['maxLockTime'] = maxLockTime;
|
|
9403
|
+
}
|
|
9404
|
+
|
|
9405
|
+
if (minRowsExamined !== undefined) {
|
|
9406
|
+
localVarQueryParameter['minRowsExamined'] = minRowsExamined;
|
|
9407
|
+
}
|
|
9408
|
+
|
|
9409
|
+
if (maxRowsExamined !== undefined) {
|
|
9410
|
+
localVarQueryParameter['maxRowsExamined'] = maxRowsExamined;
|
|
9411
|
+
}
|
|
9412
|
+
|
|
9413
|
+
if (minRowsSent !== undefined) {
|
|
9414
|
+
localVarQueryParameter['minRowsSent'] = minRowsSent;
|
|
9415
|
+
}
|
|
9416
|
+
|
|
9417
|
+
if (maxRowsSent !== undefined) {
|
|
9418
|
+
localVarQueryParameter['maxRowsSent'] = maxRowsSent;
|
|
9419
|
+
}
|
|
9420
|
+
|
|
9421
|
+
if (dbName !== undefined) {
|
|
9422
|
+
localVarQueryParameter['dbName'] = dbName;
|
|
9423
|
+
}
|
|
9424
|
+
|
|
9425
|
+
if (userName !== undefined) {
|
|
9426
|
+
localVarQueryParameter['userName'] = userName;
|
|
9427
|
+
}
|
|
9428
|
+
|
|
9429
|
+
if (clientIp !== undefined) {
|
|
9430
|
+
localVarQueryParameter['clientIp'] = clientIp;
|
|
9431
|
+
}
|
|
9432
|
+
|
|
9433
|
+
if (appName !== undefined) {
|
|
9434
|
+
localVarQueryParameter['appName'] = appName;
|
|
9435
|
+
}
|
|
9436
|
+
|
|
9437
|
+
if (templateId !== undefined) {
|
|
9438
|
+
localVarQueryParameter['templateId'] = templateId;
|
|
9439
|
+
}
|
|
9440
|
+
|
|
9441
|
+
if (unclassifiedOnly !== undefined) {
|
|
9442
|
+
localVarQueryParameter['unclassifiedOnly'] = unclassifiedOnly;
|
|
9443
|
+
}
|
|
9444
|
+
|
|
9375
9445
|
|
|
9376
9446
|
|
|
9377
9447
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -14928,11 +14998,25 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
14928
14998
|
* @param {string} [componentName]
|
|
14929
14999
|
* @param {string} [instanceName]
|
|
14930
15000
|
* @param {string} [query]
|
|
15001
|
+
* @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Only applies when logType=slow.
|
|
15002
|
+
* @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Only applies when logType=slow.
|
|
15003
|
+
* @param {number} [minLockTime] Minimum slow log lock time in seconds. Only applies when logType=slow.
|
|
15004
|
+
* @param {number} [maxLockTime] Maximum slow log lock time in seconds. Only applies when logType=slow.
|
|
15005
|
+
* @param {number} [minRowsExamined]
|
|
15006
|
+
* @param {number} [maxRowsExamined]
|
|
15007
|
+
* @param {number} [minRowsSent]
|
|
15008
|
+
* @param {number} [maxRowsSent]
|
|
15009
|
+
* @param {string} [dbName]
|
|
15010
|
+
* @param {string} [userName]
|
|
15011
|
+
* @param {string} [clientIp]
|
|
15012
|
+
* @param {string} [appName]
|
|
15013
|
+
* @param {string} [templateId]
|
|
15014
|
+
* @param {boolean} [unclassifiedOnly]
|
|
14931
15015
|
* @param {*} [options] Override http request option.
|
|
14932
15016
|
* @throws {RequiredError}
|
|
14933
15017
|
*/
|
|
14934
|
-
async queryLogHits(orgName: string, clusterName: string, startTime: string, endTime: string, step: string, logType: string, componentName?: string, instanceName?: string, query?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterLogHitsResponse>> {
|
|
14935
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLogHits(orgName, clusterName, startTime, endTime, step, logType, componentName, instanceName, query, options);
|
|
15018
|
+
async queryLogHits(orgName: string, clusterName: string, startTime: string, endTime: string, step: string, logType: string, componentName?: string, instanceName?: string, query?: string, minExecutionTime?: number, maxExecutionTime?: number, minLockTime?: number, maxLockTime?: number, minRowsExamined?: number, maxRowsExamined?: number, minRowsSent?: number, maxRowsSent?: number, dbName?: string, userName?: string, clientIp?: string, appName?: string, templateId?: string, unclassifiedOnly?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterLogHitsResponse>> {
|
|
15019
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLogHits(orgName, clusterName, startTime, endTime, step, logType, componentName, instanceName, query, minExecutionTime, maxExecutionTime, minLockTime, maxLockTime, minRowsExamined, maxRowsExamined, minRowsSent, maxRowsSent, dbName, userName, clientIp, appName, templateId, unclassifiedOnly, options);
|
|
14936
15020
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14937
15021
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.queryLogHits']?.[localVarOperationServerIndex]?.url;
|
|
14938
15022
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -17634,7 +17718,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
17634
17718
|
* @throws {RequiredError}
|
|
17635
17719
|
*/
|
|
17636
17720
|
queryLogHits(requestParameters: SharedApiQueryLogHitsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterLogHitsResponse> {
|
|
17637
|
-
return localVarFp.queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, options).then((request) => request(axios, basePath));
|
|
17721
|
+
return localVarFp.queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, options).then((request) => request(axios, basePath));
|
|
17638
17722
|
},
|
|
17639
17723
|
/**
|
|
17640
17724
|
* Query pod logs of a cluster
|
|
@@ -26055,6 +26139,104 @@ export interface SharedApiQueryLogHitsRequest {
|
|
|
26055
26139
|
* @memberof SharedApiQueryLogHits
|
|
26056
26140
|
*/
|
|
26057
26141
|
readonly query?: string
|
|
26142
|
+
|
|
26143
|
+
/**
|
|
26144
|
+
* Minimum slow log execution time in seconds. Only applies when logType=slow.
|
|
26145
|
+
* @type {number}
|
|
26146
|
+
* @memberof SharedApiQueryLogHits
|
|
26147
|
+
*/
|
|
26148
|
+
readonly minExecutionTime?: number
|
|
26149
|
+
|
|
26150
|
+
/**
|
|
26151
|
+
* Maximum slow log execution time in seconds. Only applies when logType=slow.
|
|
26152
|
+
* @type {number}
|
|
26153
|
+
* @memberof SharedApiQueryLogHits
|
|
26154
|
+
*/
|
|
26155
|
+
readonly maxExecutionTime?: number
|
|
26156
|
+
|
|
26157
|
+
/**
|
|
26158
|
+
* Minimum slow log lock time in seconds. Only applies when logType=slow.
|
|
26159
|
+
* @type {number}
|
|
26160
|
+
* @memberof SharedApiQueryLogHits
|
|
26161
|
+
*/
|
|
26162
|
+
readonly minLockTime?: number
|
|
26163
|
+
|
|
26164
|
+
/**
|
|
26165
|
+
* Maximum slow log lock time in seconds. Only applies when logType=slow.
|
|
26166
|
+
* @type {number}
|
|
26167
|
+
* @memberof SharedApiQueryLogHits
|
|
26168
|
+
*/
|
|
26169
|
+
readonly maxLockTime?: number
|
|
26170
|
+
|
|
26171
|
+
/**
|
|
26172
|
+
*
|
|
26173
|
+
* @type {number}
|
|
26174
|
+
* @memberof SharedApiQueryLogHits
|
|
26175
|
+
*/
|
|
26176
|
+
readonly minRowsExamined?: number
|
|
26177
|
+
|
|
26178
|
+
/**
|
|
26179
|
+
*
|
|
26180
|
+
* @type {number}
|
|
26181
|
+
* @memberof SharedApiQueryLogHits
|
|
26182
|
+
*/
|
|
26183
|
+
readonly maxRowsExamined?: number
|
|
26184
|
+
|
|
26185
|
+
/**
|
|
26186
|
+
*
|
|
26187
|
+
* @type {number}
|
|
26188
|
+
* @memberof SharedApiQueryLogHits
|
|
26189
|
+
*/
|
|
26190
|
+
readonly minRowsSent?: number
|
|
26191
|
+
|
|
26192
|
+
/**
|
|
26193
|
+
*
|
|
26194
|
+
* @type {number}
|
|
26195
|
+
* @memberof SharedApiQueryLogHits
|
|
26196
|
+
*/
|
|
26197
|
+
readonly maxRowsSent?: number
|
|
26198
|
+
|
|
26199
|
+
/**
|
|
26200
|
+
*
|
|
26201
|
+
* @type {string}
|
|
26202
|
+
* @memberof SharedApiQueryLogHits
|
|
26203
|
+
*/
|
|
26204
|
+
readonly dbName?: string
|
|
26205
|
+
|
|
26206
|
+
/**
|
|
26207
|
+
*
|
|
26208
|
+
* @type {string}
|
|
26209
|
+
* @memberof SharedApiQueryLogHits
|
|
26210
|
+
*/
|
|
26211
|
+
readonly userName?: string
|
|
26212
|
+
|
|
26213
|
+
/**
|
|
26214
|
+
*
|
|
26215
|
+
* @type {string}
|
|
26216
|
+
* @memberof SharedApiQueryLogHits
|
|
26217
|
+
*/
|
|
26218
|
+
readonly clientIp?: string
|
|
26219
|
+
|
|
26220
|
+
/**
|
|
26221
|
+
*
|
|
26222
|
+
* @type {string}
|
|
26223
|
+
* @memberof SharedApiQueryLogHits
|
|
26224
|
+
*/
|
|
26225
|
+
readonly appName?: string
|
|
26226
|
+
|
|
26227
|
+
/**
|
|
26228
|
+
*
|
|
26229
|
+
* @type {string}
|
|
26230
|
+
* @memberof SharedApiQueryLogHits
|
|
26231
|
+
*/
|
|
26232
|
+
readonly templateId?: string
|
|
26233
|
+
|
|
26234
|
+
/**
|
|
26235
|
+
*
|
|
26236
|
+
* @type {boolean}
|
|
26237
|
+
* @memberof SharedApiQueryLogHits
|
|
26238
|
+
*/
|
|
26239
|
+
readonly unclassifiedOnly?: boolean
|
|
26058
26240
|
}
|
|
26059
26241
|
|
|
26060
26242
|
/**
|
|
@@ -30231,7 +30413,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
30231
30413
|
* @memberof SharedApi
|
|
30232
30414
|
*/
|
|
30233
30415
|
public queryLogHits(requestParameters: SharedApiQueryLogHitsRequest, options?: RawAxiosRequestConfig) {
|
|
30234
|
-
return SharedApiFp(this.configuration).queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, options).then((request) => request(this.axios, this.basePath));
|
|
30416
|
+
return SharedApiFp(this.configuration).queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, options).then((request) => request(this.axios, this.basePath));
|
|
30235
30417
|
}
|
|
30236
30418
|
|
|
30237
30419
|
/**
|
package/src/adminapi.yaml
CHANGED
|
@@ -7491,6 +7491,74 @@ paths:
|
|
|
7491
7491
|
name: query
|
|
7492
7492
|
schema:
|
|
7493
7493
|
type: string
|
|
7494
|
+
- in: query
|
|
7495
|
+
name: minExecutionTime
|
|
7496
|
+
description: Minimum slow log execution time in seconds. Only applies when logType=slow.
|
|
7497
|
+
schema:
|
|
7498
|
+
type: number
|
|
7499
|
+
format: double
|
|
7500
|
+
- in: query
|
|
7501
|
+
name: maxExecutionTime
|
|
7502
|
+
description: Maximum slow log execution time in seconds. Only applies when logType=slow.
|
|
7503
|
+
schema:
|
|
7504
|
+
type: number
|
|
7505
|
+
format: double
|
|
7506
|
+
- in: query
|
|
7507
|
+
name: minLockTime
|
|
7508
|
+
description: Minimum slow log lock time in seconds. Only applies when logType=slow.
|
|
7509
|
+
schema:
|
|
7510
|
+
type: number
|
|
7511
|
+
format: double
|
|
7512
|
+
- in: query
|
|
7513
|
+
name: maxLockTime
|
|
7514
|
+
description: Maximum slow log lock time in seconds. Only applies when logType=slow.
|
|
7515
|
+
schema:
|
|
7516
|
+
type: number
|
|
7517
|
+
format: double
|
|
7518
|
+
- in: query
|
|
7519
|
+
name: minRowsExamined
|
|
7520
|
+
schema:
|
|
7521
|
+
type: integer
|
|
7522
|
+
format: int64
|
|
7523
|
+
- in: query
|
|
7524
|
+
name: maxRowsExamined
|
|
7525
|
+
schema:
|
|
7526
|
+
type: integer
|
|
7527
|
+
format: int64
|
|
7528
|
+
- in: query
|
|
7529
|
+
name: minRowsSent
|
|
7530
|
+
schema:
|
|
7531
|
+
type: integer
|
|
7532
|
+
format: int64
|
|
7533
|
+
- in: query
|
|
7534
|
+
name: maxRowsSent
|
|
7535
|
+
schema:
|
|
7536
|
+
type: integer
|
|
7537
|
+
format: int64
|
|
7538
|
+
- in: query
|
|
7539
|
+
name: dbName
|
|
7540
|
+
schema:
|
|
7541
|
+
type: string
|
|
7542
|
+
- in: query
|
|
7543
|
+
name: userName
|
|
7544
|
+
schema:
|
|
7545
|
+
type: string
|
|
7546
|
+
- in: query
|
|
7547
|
+
name: clientIp
|
|
7548
|
+
schema:
|
|
7549
|
+
type: string
|
|
7550
|
+
- in: query
|
|
7551
|
+
name: appName
|
|
7552
|
+
schema:
|
|
7553
|
+
type: string
|
|
7554
|
+
- in: query
|
|
7555
|
+
name: templateId
|
|
7556
|
+
schema:
|
|
7557
|
+
type: string
|
|
7558
|
+
- in: query
|
|
7559
|
+
name: unclassifiedOnly
|
|
7560
|
+
schema:
|
|
7561
|
+
type: boolean
|
|
7494
7562
|
responses:
|
|
7495
7563
|
'200':
|
|
7496
7564
|
content:
|
|
@@ -26497,10 +26565,6 @@ components:
|
|
|
26497
26565
|
description: the tags for the storage
|
|
26498
26566
|
additionalProperties:
|
|
26499
26567
|
type: string
|
|
26500
|
-
engines:
|
|
26501
|
-
type: array
|
|
26502
|
-
items:
|
|
26503
|
-
type: string
|
|
26504
26568
|
staticCluster:
|
|
26505
26569
|
properties:
|
|
26506
26570
|
replicas:
|
|
@@ -32907,10 +32971,6 @@ components:
|
|
|
32907
32971
|
description: the tags for the storage
|
|
32908
32972
|
additionalProperties:
|
|
32909
32973
|
type: string
|
|
32910
|
-
engines:
|
|
32911
|
-
type: array
|
|
32912
|
-
items:
|
|
32913
|
-
type: string
|
|
32914
32974
|
storageList:
|
|
32915
32975
|
type: array
|
|
32916
32976
|
items:
|
|
@@ -32929,10 +32989,6 @@ components:
|
|
|
32929
32989
|
description: the tags for the storage
|
|
32930
32990
|
additionalProperties:
|
|
32931
32991
|
type: string
|
|
32932
|
-
engines:
|
|
32933
|
-
type: array
|
|
32934
|
-
items:
|
|
32935
|
-
type: string
|
|
32936
32992
|
storageName:
|
|
32937
32993
|
type: string
|
|
32938
32994
|
envName:
|