kb-cloud-client-typescript 2.3.0-alpha.97 → 2.3.0-alpha.99
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-api.d.ts +18 -2
- package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-api.js +15 -5
- package/dist/adminapi/apis/cluster-api.js.map +1 -1
- 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 +132 -4
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +90 -10
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/database-parameter-item.d.ts +6 -0
- package/dist/adminapi/models/database-parameter-item.d.ts.map +1 -1
- package/dist/adminapi/models/database-parameter-list-item.d.ts +6 -0
- package/dist/adminapi/models/database-parameter-list-item.d.ts.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-api.d.ts +18 -2
- package/dist/openapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-api.js +15 -5
- package/dist/openapi/apis/cluster-api.js.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 +132 -4
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +90 -10
- 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-api.ts +31 -5
- package/src/adminapi/apis/cluster-log-api.ts +187 -5
- package/src/adminapi/apis/shared-api.ts +218 -10
- package/src/adminapi/models/database-parameter-item.ts +6 -0
- package/src/adminapi/models/database-parameter-list-item.ts +6 -0
- 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 +88 -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-api.ts +31 -5
- package/src/openapi/apis/cluster-log-api.ts +187 -5
- package/src/openapi/apis/shared-api.ts +218 -10
- package/src/openapi/models/storage.ts +0 -6
- package/src/openapi.yaml +80 -4
|
@@ -3876,10 +3876,12 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3876
3876
|
* @summary Get cluster details by ID
|
|
3877
3877
|
* @param {string} orgName name of the Org
|
|
3878
3878
|
* @param {string} clusterID ID of the KubeBlocks cluster
|
|
3879
|
+
* @param {string} [backupName] Backup name to override cluster components from its snapshot
|
|
3880
|
+
* @param {string} [restoreTime] Restore time to find latest continuous backup snapshot after this time
|
|
3879
3881
|
* @param {*} [options] Override http request option.
|
|
3880
3882
|
* @throws {RequiredError}
|
|
3881
3883
|
*/
|
|
3882
|
-
getClusterByID: async (orgName: string, clusterID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3884
|
+
getClusterByID: async (orgName: string, clusterID: string, backupName?: string, restoreTime?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3883
3885
|
// verify required parameter 'orgName' is not null or undefined
|
|
3884
3886
|
assertParamExists('getClusterByID', 'orgName', orgName)
|
|
3885
3887
|
// verify required parameter 'clusterID' is not null or undefined
|
|
@@ -3901,6 +3903,14 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
3901
3903
|
// authentication BearerToken required
|
|
3902
3904
|
await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
|
|
3903
3905
|
|
|
3906
|
+
if (backupName !== undefined) {
|
|
3907
|
+
localVarQueryParameter['backupName'] = backupName;
|
|
3908
|
+
}
|
|
3909
|
+
|
|
3910
|
+
if (restoreTime !== undefined) {
|
|
3911
|
+
localVarQueryParameter['restoreTime'] = restoreTime;
|
|
3912
|
+
}
|
|
3913
|
+
|
|
3904
3914
|
|
|
3905
3915
|
|
|
3906
3916
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -9311,10 +9321,24 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
9311
9321
|
* @param {string} [componentName]
|
|
9312
9322
|
* @param {string} [instanceName]
|
|
9313
9323
|
* @param {string} [query]
|
|
9324
|
+
* @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Only applies when logType=slow.
|
|
9325
|
+
* @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Only applies when logType=slow.
|
|
9326
|
+
* @param {number} [minLockTime] Minimum slow log lock time in seconds. Only applies when logType=slow.
|
|
9327
|
+
* @param {number} [maxLockTime] Maximum slow log lock time in seconds. Only applies when logType=slow.
|
|
9328
|
+
* @param {number} [minRowsExamined]
|
|
9329
|
+
* @param {number} [maxRowsExamined]
|
|
9330
|
+
* @param {number} [minRowsSent]
|
|
9331
|
+
* @param {number} [maxRowsSent]
|
|
9332
|
+
* @param {string} [dbName]
|
|
9333
|
+
* @param {string} [userName]
|
|
9334
|
+
* @param {string} [clientIp]
|
|
9335
|
+
* @param {string} [appName]
|
|
9336
|
+
* @param {string} [templateId]
|
|
9337
|
+
* @param {boolean} [unclassifiedOnly]
|
|
9314
9338
|
* @param {*} [options] Override http request option.
|
|
9315
9339
|
* @throws {RequiredError}
|
|
9316
9340
|
*/
|
|
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> => {
|
|
9341
|
+
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
9342
|
// verify required parameter 'orgName' is not null or undefined
|
|
9319
9343
|
assertParamExists('queryLogHits', 'orgName', orgName)
|
|
9320
9344
|
// verify required parameter 'clusterName' is not null or undefined
|
|
@@ -9372,6 +9396,62 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
9372
9396
|
localVarQueryParameter['query'] = query;
|
|
9373
9397
|
}
|
|
9374
9398
|
|
|
9399
|
+
if (minExecutionTime !== undefined) {
|
|
9400
|
+
localVarQueryParameter['minExecutionTime'] = minExecutionTime;
|
|
9401
|
+
}
|
|
9402
|
+
|
|
9403
|
+
if (maxExecutionTime !== undefined) {
|
|
9404
|
+
localVarQueryParameter['maxExecutionTime'] = maxExecutionTime;
|
|
9405
|
+
}
|
|
9406
|
+
|
|
9407
|
+
if (minLockTime !== undefined) {
|
|
9408
|
+
localVarQueryParameter['minLockTime'] = minLockTime;
|
|
9409
|
+
}
|
|
9410
|
+
|
|
9411
|
+
if (maxLockTime !== undefined) {
|
|
9412
|
+
localVarQueryParameter['maxLockTime'] = maxLockTime;
|
|
9413
|
+
}
|
|
9414
|
+
|
|
9415
|
+
if (minRowsExamined !== undefined) {
|
|
9416
|
+
localVarQueryParameter['minRowsExamined'] = minRowsExamined;
|
|
9417
|
+
}
|
|
9418
|
+
|
|
9419
|
+
if (maxRowsExamined !== undefined) {
|
|
9420
|
+
localVarQueryParameter['maxRowsExamined'] = maxRowsExamined;
|
|
9421
|
+
}
|
|
9422
|
+
|
|
9423
|
+
if (minRowsSent !== undefined) {
|
|
9424
|
+
localVarQueryParameter['minRowsSent'] = minRowsSent;
|
|
9425
|
+
}
|
|
9426
|
+
|
|
9427
|
+
if (maxRowsSent !== undefined) {
|
|
9428
|
+
localVarQueryParameter['maxRowsSent'] = maxRowsSent;
|
|
9429
|
+
}
|
|
9430
|
+
|
|
9431
|
+
if (dbName !== undefined) {
|
|
9432
|
+
localVarQueryParameter['dbName'] = dbName;
|
|
9433
|
+
}
|
|
9434
|
+
|
|
9435
|
+
if (userName !== undefined) {
|
|
9436
|
+
localVarQueryParameter['userName'] = userName;
|
|
9437
|
+
}
|
|
9438
|
+
|
|
9439
|
+
if (clientIp !== undefined) {
|
|
9440
|
+
localVarQueryParameter['clientIp'] = clientIp;
|
|
9441
|
+
}
|
|
9442
|
+
|
|
9443
|
+
if (appName !== undefined) {
|
|
9444
|
+
localVarQueryParameter['appName'] = appName;
|
|
9445
|
+
}
|
|
9446
|
+
|
|
9447
|
+
if (templateId !== undefined) {
|
|
9448
|
+
localVarQueryParameter['templateId'] = templateId;
|
|
9449
|
+
}
|
|
9450
|
+
|
|
9451
|
+
if (unclassifiedOnly !== undefined) {
|
|
9452
|
+
localVarQueryParameter['unclassifiedOnly'] = unclassifiedOnly;
|
|
9453
|
+
}
|
|
9454
|
+
|
|
9375
9455
|
|
|
9376
9456
|
|
|
9377
9457
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -13198,11 +13278,13 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
13198
13278
|
* @summary Get cluster details by ID
|
|
13199
13279
|
* @param {string} orgName name of the Org
|
|
13200
13280
|
* @param {string} clusterID ID of the KubeBlocks cluster
|
|
13281
|
+
* @param {string} [backupName] Backup name to override cluster components from its snapshot
|
|
13282
|
+
* @param {string} [restoreTime] Restore time to find latest continuous backup snapshot after this time
|
|
13201
13283
|
* @param {*} [options] Override http request option.
|
|
13202
13284
|
* @throws {RequiredError}
|
|
13203
13285
|
*/
|
|
13204
|
-
async getClusterByID(orgName: string, clusterID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Cluster>> {
|
|
13205
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterByID(orgName, clusterID, options);
|
|
13286
|
+
async getClusterByID(orgName: string, clusterID: string, backupName?: string, restoreTime?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Cluster>> {
|
|
13287
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterByID(orgName, clusterID, backupName, restoreTime, options);
|
|
13206
13288
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
13207
13289
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.getClusterByID']?.[localVarOperationServerIndex]?.url;
|
|
13208
13290
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -14928,11 +15010,25 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
14928
15010
|
* @param {string} [componentName]
|
|
14929
15011
|
* @param {string} [instanceName]
|
|
14930
15012
|
* @param {string} [query]
|
|
15013
|
+
* @param {number} [minExecutionTime] Minimum slow log execution time in seconds. Only applies when logType=slow.
|
|
15014
|
+
* @param {number} [maxExecutionTime] Maximum slow log execution time in seconds. Only applies when logType=slow.
|
|
15015
|
+
* @param {number} [minLockTime] Minimum slow log lock time in seconds. Only applies when logType=slow.
|
|
15016
|
+
* @param {number} [maxLockTime] Maximum slow log lock time in seconds. Only applies when logType=slow.
|
|
15017
|
+
* @param {number} [minRowsExamined]
|
|
15018
|
+
* @param {number} [maxRowsExamined]
|
|
15019
|
+
* @param {number} [minRowsSent]
|
|
15020
|
+
* @param {number} [maxRowsSent]
|
|
15021
|
+
* @param {string} [dbName]
|
|
15022
|
+
* @param {string} [userName]
|
|
15023
|
+
* @param {string} [clientIp]
|
|
15024
|
+
* @param {string} [appName]
|
|
15025
|
+
* @param {string} [templateId]
|
|
15026
|
+
* @param {boolean} [unclassifiedOnly]
|
|
14931
15027
|
* @param {*} [options] Override http request option.
|
|
14932
15028
|
* @throws {RequiredError}
|
|
14933
15029
|
*/
|
|
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);
|
|
15030
|
+
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>> {
|
|
15031
|
+
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
15032
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
14937
15033
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.queryLogHits']?.[localVarOperationServerIndex]?.url;
|
|
14938
15034
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -16519,7 +16615,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
16519
16615
|
* @throws {RequiredError}
|
|
16520
16616
|
*/
|
|
16521
16617
|
getClusterByID(requestParameters: SharedApiGetClusterByIDRequest, options?: RawAxiosRequestConfig): AxiosPromise<Cluster> {
|
|
16522
|
-
return localVarFp.getClusterByID(requestParameters.orgName, requestParameters.clusterID, options).then((request) => request(axios, basePath));
|
|
16618
|
+
return localVarFp.getClusterByID(requestParameters.orgName, requestParameters.clusterID, requestParameters.backupName, requestParameters.restoreTime, options).then((request) => request(axios, basePath));
|
|
16523
16619
|
},
|
|
16524
16620
|
/**
|
|
16525
16621
|
* read log of the specified cluster instance
|
|
@@ -17634,7 +17730,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
17634
17730
|
* @throws {RequiredError}
|
|
17635
17731
|
*/
|
|
17636
17732
|
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));
|
|
17733
|
+
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
17734
|
},
|
|
17639
17735
|
/**
|
|
17640
17736
|
* Query pod logs of a cluster
|
|
@@ -22604,6 +22700,20 @@ export interface SharedApiGetClusterByIDRequest {
|
|
|
22604
22700
|
* @memberof SharedApiGetClusterByID
|
|
22605
22701
|
*/
|
|
22606
22702
|
readonly clusterID: string
|
|
22703
|
+
|
|
22704
|
+
/**
|
|
22705
|
+
* Backup name to override cluster components from its snapshot
|
|
22706
|
+
* @type {string}
|
|
22707
|
+
* @memberof SharedApiGetClusterByID
|
|
22708
|
+
*/
|
|
22709
|
+
readonly backupName?: string
|
|
22710
|
+
|
|
22711
|
+
/**
|
|
22712
|
+
* Restore time to find latest continuous backup snapshot after this time
|
|
22713
|
+
* @type {string}
|
|
22714
|
+
* @memberof SharedApiGetClusterByID
|
|
22715
|
+
*/
|
|
22716
|
+
readonly restoreTime?: string
|
|
22607
22717
|
}
|
|
22608
22718
|
|
|
22609
22719
|
/**
|
|
@@ -26055,6 +26165,104 @@ export interface SharedApiQueryLogHitsRequest {
|
|
|
26055
26165
|
* @memberof SharedApiQueryLogHits
|
|
26056
26166
|
*/
|
|
26057
26167
|
readonly query?: string
|
|
26168
|
+
|
|
26169
|
+
/**
|
|
26170
|
+
* Minimum slow log execution time in seconds. Only applies when logType=slow.
|
|
26171
|
+
* @type {number}
|
|
26172
|
+
* @memberof SharedApiQueryLogHits
|
|
26173
|
+
*/
|
|
26174
|
+
readonly minExecutionTime?: number
|
|
26175
|
+
|
|
26176
|
+
/**
|
|
26177
|
+
* Maximum slow log execution time in seconds. Only applies when logType=slow.
|
|
26178
|
+
* @type {number}
|
|
26179
|
+
* @memberof SharedApiQueryLogHits
|
|
26180
|
+
*/
|
|
26181
|
+
readonly maxExecutionTime?: number
|
|
26182
|
+
|
|
26183
|
+
/**
|
|
26184
|
+
* Minimum slow log lock time in seconds. Only applies when logType=slow.
|
|
26185
|
+
* @type {number}
|
|
26186
|
+
* @memberof SharedApiQueryLogHits
|
|
26187
|
+
*/
|
|
26188
|
+
readonly minLockTime?: number
|
|
26189
|
+
|
|
26190
|
+
/**
|
|
26191
|
+
* Maximum slow log lock time in seconds. Only applies when logType=slow.
|
|
26192
|
+
* @type {number}
|
|
26193
|
+
* @memberof SharedApiQueryLogHits
|
|
26194
|
+
*/
|
|
26195
|
+
readonly maxLockTime?: number
|
|
26196
|
+
|
|
26197
|
+
/**
|
|
26198
|
+
*
|
|
26199
|
+
* @type {number}
|
|
26200
|
+
* @memberof SharedApiQueryLogHits
|
|
26201
|
+
*/
|
|
26202
|
+
readonly minRowsExamined?: number
|
|
26203
|
+
|
|
26204
|
+
/**
|
|
26205
|
+
*
|
|
26206
|
+
* @type {number}
|
|
26207
|
+
* @memberof SharedApiQueryLogHits
|
|
26208
|
+
*/
|
|
26209
|
+
readonly maxRowsExamined?: number
|
|
26210
|
+
|
|
26211
|
+
/**
|
|
26212
|
+
*
|
|
26213
|
+
* @type {number}
|
|
26214
|
+
* @memberof SharedApiQueryLogHits
|
|
26215
|
+
*/
|
|
26216
|
+
readonly minRowsSent?: number
|
|
26217
|
+
|
|
26218
|
+
/**
|
|
26219
|
+
*
|
|
26220
|
+
* @type {number}
|
|
26221
|
+
* @memberof SharedApiQueryLogHits
|
|
26222
|
+
*/
|
|
26223
|
+
readonly maxRowsSent?: number
|
|
26224
|
+
|
|
26225
|
+
/**
|
|
26226
|
+
*
|
|
26227
|
+
* @type {string}
|
|
26228
|
+
* @memberof SharedApiQueryLogHits
|
|
26229
|
+
*/
|
|
26230
|
+
readonly dbName?: string
|
|
26231
|
+
|
|
26232
|
+
/**
|
|
26233
|
+
*
|
|
26234
|
+
* @type {string}
|
|
26235
|
+
* @memberof SharedApiQueryLogHits
|
|
26236
|
+
*/
|
|
26237
|
+
readonly userName?: string
|
|
26238
|
+
|
|
26239
|
+
/**
|
|
26240
|
+
*
|
|
26241
|
+
* @type {string}
|
|
26242
|
+
* @memberof SharedApiQueryLogHits
|
|
26243
|
+
*/
|
|
26244
|
+
readonly clientIp?: string
|
|
26245
|
+
|
|
26246
|
+
/**
|
|
26247
|
+
*
|
|
26248
|
+
* @type {string}
|
|
26249
|
+
* @memberof SharedApiQueryLogHits
|
|
26250
|
+
*/
|
|
26251
|
+
readonly appName?: string
|
|
26252
|
+
|
|
26253
|
+
/**
|
|
26254
|
+
*
|
|
26255
|
+
* @type {string}
|
|
26256
|
+
* @memberof SharedApiQueryLogHits
|
|
26257
|
+
*/
|
|
26258
|
+
readonly templateId?: string
|
|
26259
|
+
|
|
26260
|
+
/**
|
|
26261
|
+
*
|
|
26262
|
+
* @type {boolean}
|
|
26263
|
+
* @memberof SharedApiQueryLogHits
|
|
26264
|
+
*/
|
|
26265
|
+
readonly unclassifiedOnly?: boolean
|
|
26058
26266
|
}
|
|
26059
26267
|
|
|
26060
26268
|
/**
|
|
@@ -28892,7 +29100,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
28892
29100
|
* @memberof SharedApi
|
|
28893
29101
|
*/
|
|
28894
29102
|
public getClusterByID(requestParameters: SharedApiGetClusterByIDRequest, options?: RawAxiosRequestConfig) {
|
|
28895
|
-
return SharedApiFp(this.configuration).getClusterByID(requestParameters.orgName, requestParameters.clusterID, options).then((request) => request(this.axios, this.basePath));
|
|
29103
|
+
return SharedApiFp(this.configuration).getClusterByID(requestParameters.orgName, requestParameters.clusterID, requestParameters.backupName, requestParameters.restoreTime, options).then((request) => request(this.axios, this.basePath));
|
|
28896
29104
|
}
|
|
28897
29105
|
|
|
28898
29106
|
/**
|
|
@@ -30231,7 +30439,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
30231
30439
|
* @memberof SharedApi
|
|
30232
30440
|
*/
|
|
30233
30441
|
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));
|
|
30442
|
+
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
30443
|
}
|
|
30236
30444
|
|
|
30237
30445
|
/**
|
|
@@ -122,6 +122,12 @@ export interface DatabaseParameterItem {
|
|
|
122
122
|
* @memberof DatabaseParameterItem
|
|
123
123
|
*/
|
|
124
124
|
'unit'?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Whether the parameter can be recovered during backup restore
|
|
127
|
+
* @type {boolean}
|
|
128
|
+
* @memberof DatabaseParameterItem
|
|
129
|
+
*/
|
|
130
|
+
'recoverable'?: boolean;
|
|
125
131
|
}
|
|
126
132
|
|
|
127
133
|
|
|
@@ -110,6 +110,12 @@ export interface DatabaseParameterListItem {
|
|
|
110
110
|
* @memberof DatabaseParameterListItem
|
|
111
111
|
*/
|
|
112
112
|
'unit'?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Whether the parameter can be recovered during backup restore
|
|
115
|
+
* @type {boolean}
|
|
116
|
+
* @memberof DatabaseParameterListItem
|
|
117
|
+
*/
|
|
118
|
+
'recoverable'?: boolean;
|
|
113
119
|
}
|
|
114
120
|
|
|
115
121
|
|
package/src/adminapi.yaml
CHANGED
|
@@ -2640,6 +2640,18 @@ paths:
|
|
|
2640
2640
|
required: true
|
|
2641
2641
|
schema:
|
|
2642
2642
|
type: string
|
|
2643
|
+
- description: Backup name to override cluster components from its snapshot
|
|
2644
|
+
in: query
|
|
2645
|
+
name: backupName
|
|
2646
|
+
required: false
|
|
2647
|
+
schema:
|
|
2648
|
+
type: string
|
|
2649
|
+
- description: Restore time to find latest continuous backup snapshot after this time
|
|
2650
|
+
in: query
|
|
2651
|
+
name: restoreTime
|
|
2652
|
+
required: false
|
|
2653
|
+
schema:
|
|
2654
|
+
type: string
|
|
2643
2655
|
responses:
|
|
2644
2656
|
'200':
|
|
2645
2657
|
content:
|
|
@@ -7491,6 +7503,74 @@ paths:
|
|
|
7491
7503
|
name: query
|
|
7492
7504
|
schema:
|
|
7493
7505
|
type: string
|
|
7506
|
+
- in: query
|
|
7507
|
+
name: minExecutionTime
|
|
7508
|
+
description: Minimum slow log execution time in seconds. Only applies when logType=slow.
|
|
7509
|
+
schema:
|
|
7510
|
+
type: number
|
|
7511
|
+
format: double
|
|
7512
|
+
- in: query
|
|
7513
|
+
name: maxExecutionTime
|
|
7514
|
+
description: Maximum slow log execution time in seconds. Only applies when logType=slow.
|
|
7515
|
+
schema:
|
|
7516
|
+
type: number
|
|
7517
|
+
format: double
|
|
7518
|
+
- in: query
|
|
7519
|
+
name: minLockTime
|
|
7520
|
+
description: Minimum slow log lock time in seconds. Only applies when logType=slow.
|
|
7521
|
+
schema:
|
|
7522
|
+
type: number
|
|
7523
|
+
format: double
|
|
7524
|
+
- in: query
|
|
7525
|
+
name: maxLockTime
|
|
7526
|
+
description: Maximum slow log lock time in seconds. Only applies when logType=slow.
|
|
7527
|
+
schema:
|
|
7528
|
+
type: number
|
|
7529
|
+
format: double
|
|
7530
|
+
- in: query
|
|
7531
|
+
name: minRowsExamined
|
|
7532
|
+
schema:
|
|
7533
|
+
type: integer
|
|
7534
|
+
format: int64
|
|
7535
|
+
- in: query
|
|
7536
|
+
name: maxRowsExamined
|
|
7537
|
+
schema:
|
|
7538
|
+
type: integer
|
|
7539
|
+
format: int64
|
|
7540
|
+
- in: query
|
|
7541
|
+
name: minRowsSent
|
|
7542
|
+
schema:
|
|
7543
|
+
type: integer
|
|
7544
|
+
format: int64
|
|
7545
|
+
- in: query
|
|
7546
|
+
name: maxRowsSent
|
|
7547
|
+
schema:
|
|
7548
|
+
type: integer
|
|
7549
|
+
format: int64
|
|
7550
|
+
- in: query
|
|
7551
|
+
name: dbName
|
|
7552
|
+
schema:
|
|
7553
|
+
type: string
|
|
7554
|
+
- in: query
|
|
7555
|
+
name: userName
|
|
7556
|
+
schema:
|
|
7557
|
+
type: string
|
|
7558
|
+
- in: query
|
|
7559
|
+
name: clientIp
|
|
7560
|
+
schema:
|
|
7561
|
+
type: string
|
|
7562
|
+
- in: query
|
|
7563
|
+
name: appName
|
|
7564
|
+
schema:
|
|
7565
|
+
type: string
|
|
7566
|
+
- in: query
|
|
7567
|
+
name: templateId
|
|
7568
|
+
schema:
|
|
7569
|
+
type: string
|
|
7570
|
+
- in: query
|
|
7571
|
+
name: unclassifiedOnly
|
|
7572
|
+
schema:
|
|
7573
|
+
type: boolean
|
|
7494
7574
|
responses:
|
|
7495
7575
|
'200':
|
|
7496
7576
|
content:
|
|
@@ -24010,6 +24090,10 @@ components:
|
|
|
24010
24090
|
unit:
|
|
24011
24091
|
description: The unit of the parameter
|
|
24012
24092
|
type: string
|
|
24093
|
+
recoverable:
|
|
24094
|
+
description: Whether the parameter can be recovered during backup restore
|
|
24095
|
+
type: boolean
|
|
24096
|
+
default: false
|
|
24013
24097
|
databaseParameterList:
|
|
24014
24098
|
description: A list of database parameters
|
|
24015
24099
|
type: object
|
|
@@ -24088,6 +24172,10 @@ components:
|
|
|
24088
24172
|
unit:
|
|
24089
24173
|
description: The unit of the parameter
|
|
24090
24174
|
type: string
|
|
24175
|
+
recoverable:
|
|
24176
|
+
description: Whether the parameter can be recovered during backup restore
|
|
24177
|
+
type: boolean
|
|
24178
|
+
default: false
|
|
24091
24179
|
deleteDatabaseParameterItem:
|
|
24092
24180
|
description: A database parameter item for deletion
|
|
24093
24181
|
type: object
|
|
@@ -26497,10 +26585,6 @@ components:
|
|
|
26497
26585
|
description: the tags for the storage
|
|
26498
26586
|
additionalProperties:
|
|
26499
26587
|
type: string
|
|
26500
|
-
engines:
|
|
26501
|
-
type: array
|
|
26502
|
-
items:
|
|
26503
|
-
type: string
|
|
26504
26588
|
staticCluster:
|
|
26505
26589
|
properties:
|
|
26506
26590
|
replicas:
|
|
@@ -32907,10 +32991,6 @@ components:
|
|
|
32907
32991
|
description: the tags for the storage
|
|
32908
32992
|
additionalProperties:
|
|
32909
32993
|
type: string
|
|
32910
|
-
engines:
|
|
32911
|
-
type: array
|
|
32912
|
-
items:
|
|
32913
|
-
type: string
|
|
32914
32994
|
storageList:
|
|
32915
32995
|
type: array
|
|
32916
32996
|
items:
|
|
@@ -32929,10 +33009,6 @@ components:
|
|
|
32929
33009
|
description: the tags for the storage
|
|
32930
33010
|
additionalProperties:
|
|
32931
33011
|
type: string
|
|
32932
|
-
engines:
|
|
32933
|
-
type: array
|
|
32934
|
-
items:
|
|
32935
|
-
type: string
|
|
32936
33012
|
storageName:
|
|
32937
33013
|
type: string
|
|
32938
33014
|
envName:
|
package/src/internalapi.yaml
CHANGED
|
@@ -1179,10 +1179,6 @@ components:
|
|
|
1179
1179
|
description: the tags for the storage
|
|
1180
1180
|
additionalProperties:
|
|
1181
1181
|
type: string
|
|
1182
|
-
engines:
|
|
1183
|
-
type: array
|
|
1184
|
-
items:
|
|
1185
|
-
type: string
|
|
1186
1182
|
staticCluster:
|
|
1187
1183
|
properties:
|
|
1188
1184
|
replicas:
|
|
@@ -1742,10 +1738,6 @@ components:
|
|
|
1742
1738
|
description: the tags for the storage
|
|
1743
1739
|
additionalProperties:
|
|
1744
1740
|
type: string
|
|
1745
|
-
engines:
|
|
1746
|
-
type: array
|
|
1747
|
-
items:
|
|
1748
|
-
type: string
|
|
1749
1741
|
environmentType:
|
|
1750
1742
|
type: string
|
|
1751
1743
|
description: Type of this environment
|
|
@@ -313,10 +313,12 @@ export const ClusterApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
313
313
|
* @summary Get cluster details by ID
|
|
314
314
|
* @param {string} orgName name of the Org
|
|
315
315
|
* @param {string} clusterID ID of the KubeBlocks cluster
|
|
316
|
+
* @param {string} [backupName] Backup name to override cluster components from its snapshot
|
|
317
|
+
* @param {string} [restoreTime] Restore time to find latest continuous backup snapshot after this time
|
|
316
318
|
* @param {*} [options] Override http request option.
|
|
317
319
|
* @throws {RequiredError}
|
|
318
320
|
*/
|
|
319
|
-
getClusterByID: async (orgName: string, clusterID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
321
|
+
getClusterByID: async (orgName: string, clusterID: string, backupName?: string, restoreTime?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
320
322
|
// verify required parameter 'orgName' is not null or undefined
|
|
321
323
|
assertParamExists('getClusterByID', 'orgName', orgName)
|
|
322
324
|
// verify required parameter 'clusterID' is not null or undefined
|
|
@@ -338,6 +340,14 @@ export const ClusterApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
338
340
|
// authentication BearerToken required
|
|
339
341
|
await setApiKeyToObject(localVarHeaderParameter, "authorization", configuration)
|
|
340
342
|
|
|
343
|
+
if (backupName !== undefined) {
|
|
344
|
+
localVarQueryParameter['backupName'] = backupName;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
if (restoreTime !== undefined) {
|
|
348
|
+
localVarQueryParameter['restoreTime'] = restoreTime;
|
|
349
|
+
}
|
|
350
|
+
|
|
341
351
|
|
|
342
352
|
|
|
343
353
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1305,11 +1315,13 @@ export const ClusterApiFp = function(configuration?: Configuration) {
|
|
|
1305
1315
|
* @summary Get cluster details by ID
|
|
1306
1316
|
* @param {string} orgName name of the Org
|
|
1307
1317
|
* @param {string} clusterID ID of the KubeBlocks cluster
|
|
1318
|
+
* @param {string} [backupName] Backup name to override cluster components from its snapshot
|
|
1319
|
+
* @param {string} [restoreTime] Restore time to find latest continuous backup snapshot after this time
|
|
1308
1320
|
* @param {*} [options] Override http request option.
|
|
1309
1321
|
* @throws {RequiredError}
|
|
1310
1322
|
*/
|
|
1311
|
-
async getClusterByID(orgName: string, clusterID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Cluster>> {
|
|
1312
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterByID(orgName, clusterID, options);
|
|
1323
|
+
async getClusterByID(orgName: string, clusterID: string, backupName?: string, restoreTime?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Cluster>> {
|
|
1324
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterByID(orgName, clusterID, backupName, restoreTime, options);
|
|
1313
1325
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1314
1326
|
const localVarOperationServerBasePath = operationServerMap['ClusterApi.getClusterByID']?.[localVarOperationServerIndex]?.url;
|
|
1315
1327
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1651,7 +1663,7 @@ export const ClusterApiFactory = function (configuration?: Configuration, basePa
|
|
|
1651
1663
|
* @throws {RequiredError}
|
|
1652
1664
|
*/
|
|
1653
1665
|
getClusterByID(requestParameters: ClusterApiGetClusterByIDRequest, options?: RawAxiosRequestConfig): AxiosPromise<Cluster> {
|
|
1654
|
-
return localVarFp.getClusterByID(requestParameters.orgName, requestParameters.clusterID, options).then((request) => request(axios, basePath));
|
|
1666
|
+
return localVarFp.getClusterByID(requestParameters.orgName, requestParameters.clusterID, requestParameters.backupName, requestParameters.restoreTime, options).then((request) => request(axios, basePath));
|
|
1655
1667
|
},
|
|
1656
1668
|
/**
|
|
1657
1669
|
* read log of the specified cluster instance
|
|
@@ -2216,6 +2228,20 @@ export interface ClusterApiGetClusterByIDRequest {
|
|
|
2216
2228
|
* @memberof ClusterApiGetClusterByID
|
|
2217
2229
|
*/
|
|
2218
2230
|
readonly clusterID: string
|
|
2231
|
+
|
|
2232
|
+
/**
|
|
2233
|
+
* Backup name to override cluster components from its snapshot
|
|
2234
|
+
* @type {string}
|
|
2235
|
+
* @memberof ClusterApiGetClusterByID
|
|
2236
|
+
*/
|
|
2237
|
+
readonly backupName?: string
|
|
2238
|
+
|
|
2239
|
+
/**
|
|
2240
|
+
* Restore time to find latest continuous backup snapshot after this time
|
|
2241
|
+
* @type {string}
|
|
2242
|
+
* @memberof ClusterApiGetClusterByID
|
|
2243
|
+
*/
|
|
2244
|
+
readonly restoreTime?: string
|
|
2219
2245
|
}
|
|
2220
2246
|
|
|
2221
2247
|
/**
|
|
@@ -2868,7 +2894,7 @@ export class ClusterApi extends BaseAPI implements ClusterApiInterface {
|
|
|
2868
2894
|
* @memberof ClusterApi
|
|
2869
2895
|
*/
|
|
2870
2896
|
public getClusterByID(requestParameters: ClusterApiGetClusterByIDRequest, options?: RawAxiosRequestConfig) {
|
|
2871
|
-
return ClusterApiFp(this.configuration).getClusterByID(requestParameters.orgName, requestParameters.clusterID, options).then((request) => request(this.axios, this.basePath));
|
|
2897
|
+
return ClusterApiFp(this.configuration).getClusterByID(requestParameters.orgName, requestParameters.clusterID, requestParameters.backupName, requestParameters.restoreTime, options).then((request) => request(this.axios, this.basePath));
|
|
2872
2898
|
}
|
|
2873
2899
|
|
|
2874
2900
|
/**
|