kb-cloud-client-typescript 2.4.0-alpha.88 → 2.4.0-alpha.89
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 +198 -0
- package/dist/adminapi/apis/cluster-log-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-log-api.js +228 -0
- package/dist/adminapi/apis/cluster-log-api.js.map +1 -1
- package/dist/adminapi/apis/environment-api.d.ts +174 -0
- package/dist/adminapi/apis/environment-api.d.ts.map +1 -1
- package/dist/adminapi/apis/environment-api.js +213 -0
- package/dist/adminapi/apis/environment-api.js.map +1 -1
- package/dist/adminapi/models/index.d.ts +1 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +1 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/log-retention.d.ts +49 -0
- package/dist/adminapi/models/log-retention.d.ts.map +1 -0
- package/dist/adminapi/models/log-retention.js +16 -0
- package/dist/adminapi/models/log-retention.js.map +1 -0
- package/dist/internalapi/api.d.ts +2 -0
- package/dist/internalapi/api.d.ts.map +1 -1
- package/dist/internalapi/api.js +2 -0
- package/dist/internalapi/api.js.map +1 -1
- package/dist/internalapi/apis/opsrequest-api.d.ts +121 -0
- package/dist/internalapi/apis/opsrequest-api.d.ts.map +1 -0
- package/dist/internalapi/apis/opsrequest-api.js +142 -0
- package/dist/internalapi/apis/opsrequest-api.js.map +1 -0
- package/dist/internalapi/apis/parameter-api.d.ts +128 -0
- package/dist/internalapi/apis/parameter-api.d.ts.map +1 -0
- package/dist/internalapi/apis/parameter-api.js +146 -0
- package/dist/internalapi/apis/parameter-api.js.map +1 -0
- package/dist/internalapi/apis/shared-api.d.ts +153 -0
- package/dist/internalapi/apis/shared-api.d.ts.map +1 -1
- package/dist/internalapi/apis/shared-api.js +160 -0
- package/dist/internalapi/apis/shared-api.js.map +1 -1
- package/dist/internalapi/models/index.d.ts +7 -0
- package/dist/internalapi/models/index.d.ts.map +1 -1
- package/dist/internalapi/models/index.js +7 -0
- package/dist/internalapi/models/index.js.map +1 -1
- package/dist/internalapi/models/ops-request-name.d.ts +31 -0
- package/dist/internalapi/models/ops-request-name.d.ts.map +1 -0
- package/dist/internalapi/models/ops-request-name.js +16 -0
- package/dist/internalapi/models/ops-request-name.js.map +1 -0
- package/dist/internalapi/models/parameter-item.d.ts +50 -0
- package/dist/internalapi/models/parameter-item.d.ts.map +1 -0
- package/dist/internalapi/models/parameter-item.js +16 -0
- package/dist/internalapi/models/parameter-item.js.map +1 -0
- package/dist/internalapi/models/parameter-list.d.ts +38 -0
- package/dist/internalapi/models/parameter-list.d.ts.map +1 -0
- package/dist/internalapi/models/parameter-list.js +16 -0
- package/dist/internalapi/models/parameter-list.js.map +1 -0
- package/dist/internalapi/models/parameter-prop.d.ts +85 -0
- package/dist/internalapi/models/parameter-prop.d.ts.map +1 -0
- package/dist/internalapi/models/parameter-prop.js +16 -0
- package/dist/internalapi/models/parameter-prop.js.map +1 -0
- package/dist/internalapi/models/reconfigure-create.d.ts +52 -0
- package/dist/internalapi/models/reconfigure-create.d.ts.map +1 -0
- package/dist/internalapi/models/reconfigure-create.js +16 -0
- package/dist/internalapi/models/reconfigure-create.js.map +1 -0
- package/dist/internalapi/models/task-schedule-type.d.ts +23 -0
- package/dist/internalapi/models/task-schedule-type.d.ts.map +1 -0
- package/dist/internalapi/models/task-schedule-type.js +27 -0
- package/dist/internalapi/models/task-schedule-type.js.map +1 -0
- package/dist/internalapi/models/task-schedule.d.ts +38 -0
- package/dist/internalapi/models/task-schedule.d.ts.map +1 -0
- package/dist/internalapi/models/task-schedule.js +16 -0
- package/dist/internalapi/models/task-schedule.js.map +1 -0
- package/dist/openapi/apis/cluster-log-api.d.ts +198 -0
- package/dist/openapi/apis/cluster-log-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-log-api.js +228 -0
- package/dist/openapi/apis/cluster-log-api.js.map +1 -1
- package/dist/openapi/models/index.d.ts +1 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +1 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/log-retention.d.ts +49 -0
- package/dist/openapi/models/log-retention.d.ts.map +1 -0
- package/dist/openapi/models/log-retention.js +16 -0
- package/dist/openapi/models/log-retention.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +1 -0
- package/src/adminapi/apis/cluster-log-api.ts +352 -0
- package/src/adminapi/apis/environment-api.ts +316 -0
- package/src/adminapi/models/index.ts +1 -0
- package/src/adminapi/models/log-retention.ts +54 -0
- package/src/adminapi.yaml +227 -0
- package/src/internalapi/.openapi-generator/FILES +9 -0
- package/src/internalapi/api.ts +2 -0
- package/src/internalapi/apis/opsrequest-api.ts +197 -0
- package/src/internalapi/apis/parameter-api.ts +207 -0
- package/src/internalapi/apis/shared-api.ts +264 -0
- package/src/internalapi/models/index.ts +7 -0
- package/src/internalapi/models/ops-request-name.ts +36 -0
- package/src/internalapi/models/parameter-item.ts +57 -0
- package/src/internalapi/models/parameter-list.ts +45 -0
- package/src/internalapi/models/parameter-prop.ts +90 -0
- package/src/internalapi/models/reconfigure-create.ts +57 -0
- package/src/internalapi/models/task-schedule-type.ts +32 -0
- package/src/internalapi/models/task-schedule.ts +47 -0
- package/src/internalapi.yaml +224 -0
- package/src/openapi/.openapi-generator/FILES +1 -0
- package/src/openapi/apis/cluster-log-api.ts +352 -0
- package/src/openapi/models/index.ts +1 -0
- package/src/openapi/models/log-retention.ts +54 -0
- package/src/openapi.yaml +136 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* KubeBlocks Cloud API
|
|
6
|
+
* KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@apecloud.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
//# sourceMappingURL=log-retention.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log-retention.js","sourceRoot":"","sources":["../../../src/openapi/models/log-retention.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
|
package/package.json
CHANGED
|
@@ -42,6 +42,8 @@ import type { ClusterSlowLogTemplateList } from '../models';
|
|
|
42
42
|
// @ts-ignore
|
|
43
43
|
import type { DmsExplainRequest } from '../models';
|
|
44
44
|
// @ts-ignore
|
|
45
|
+
import type { LogRetention } from '../models';
|
|
46
|
+
// @ts-ignore
|
|
45
47
|
import type { SortType } from '../models';
|
|
46
48
|
/**
|
|
47
49
|
* ClusterLogApi - axios parameter creator
|
|
@@ -204,6 +206,51 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
|
|
|
204
206
|
|
|
205
207
|
|
|
206
208
|
|
|
209
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
210
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
211
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
212
|
+
|
|
213
|
+
return {
|
|
214
|
+
url: toPathString(localVarUrlObj),
|
|
215
|
+
options: localVarRequestOptions,
|
|
216
|
+
};
|
|
217
|
+
},
|
|
218
|
+
/**
|
|
219
|
+
* Removes cluster overrides and returns the retention inherited from the environment.
|
|
220
|
+
* @summary Reset cluster log retention
|
|
221
|
+
* @param {string} orgName
|
|
222
|
+
* @param {string} clusterName
|
|
223
|
+
* @param {*} [options] Override http request option.
|
|
224
|
+
* @throws {RequiredError}
|
|
225
|
+
*/
|
|
226
|
+
deleteClusterLogRetention: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
227
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
228
|
+
assertParamExists('deleteClusterLogRetention', 'orgName', orgName)
|
|
229
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
230
|
+
assertParamExists('deleteClusterLogRetention', 'clusterName', clusterName)
|
|
231
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/retention`
|
|
232
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
233
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
234
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
235
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
236
|
+
let baseOptions;
|
|
237
|
+
if (configuration) {
|
|
238
|
+
baseOptions = configuration.baseOptions;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
242
|
+
const localVarHeaderParameter = {} as any;
|
|
243
|
+
const localVarQueryParameter = {} as any;
|
|
244
|
+
|
|
245
|
+
// authentication BearerToken required
|
|
246
|
+
// http bearer authentication required
|
|
247
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
248
|
+
|
|
249
|
+
// authentication DigestAuth required
|
|
250
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
207
254
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
208
255
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
209
256
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -393,6 +440,51 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
|
|
|
393
440
|
|
|
394
441
|
|
|
395
442
|
|
|
443
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
444
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
445
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
446
|
+
|
|
447
|
+
return {
|
|
448
|
+
url: toPathString(localVarUrlObj),
|
|
449
|
+
options: localVarRequestOptions,
|
|
450
|
+
};
|
|
451
|
+
},
|
|
452
|
+
/**
|
|
453
|
+
*
|
|
454
|
+
* @summary Get cluster log retention
|
|
455
|
+
* @param {string} orgName
|
|
456
|
+
* @param {string} clusterName
|
|
457
|
+
* @param {*} [options] Override http request option.
|
|
458
|
+
* @throws {RequiredError}
|
|
459
|
+
*/
|
|
460
|
+
getClusterLogRetention: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
461
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
462
|
+
assertParamExists('getClusterLogRetention', 'orgName', orgName)
|
|
463
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
464
|
+
assertParamExists('getClusterLogRetention', 'clusterName', clusterName)
|
|
465
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/retention`
|
|
466
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
467
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
468
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
469
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
470
|
+
let baseOptions;
|
|
471
|
+
if (configuration) {
|
|
472
|
+
baseOptions = configuration.baseOptions;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
476
|
+
const localVarHeaderParameter = {} as any;
|
|
477
|
+
const localVarQueryParameter = {} as any;
|
|
478
|
+
|
|
479
|
+
// authentication BearerToken required
|
|
480
|
+
// http bearer authentication required
|
|
481
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
482
|
+
|
|
483
|
+
// authentication DigestAuth required
|
|
484
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
396
488
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
397
489
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
398
490
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -684,6 +776,57 @@ export const ClusterLogApiAxiosParamCreator = function (configuration?: Configur
|
|
|
684
776
|
options: localVarRequestOptions,
|
|
685
777
|
};
|
|
686
778
|
},
|
|
779
|
+
/**
|
|
780
|
+
* Replaces the current settings. Applies to the next cleanup.
|
|
781
|
+
* @summary Set cluster log retention
|
|
782
|
+
* @param {string} orgName
|
|
783
|
+
* @param {string} clusterName
|
|
784
|
+
* @param {LogRetention} logRetention
|
|
785
|
+
* @param {*} [options] Override http request option.
|
|
786
|
+
* @throws {RequiredError}
|
|
787
|
+
*/
|
|
788
|
+
putClusterLogRetention: async (orgName: string, clusterName: string, logRetention: LogRetention, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
789
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
790
|
+
assertParamExists('putClusterLogRetention', 'orgName', orgName)
|
|
791
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
792
|
+
assertParamExists('putClusterLogRetention', 'clusterName', clusterName)
|
|
793
|
+
// verify required parameter 'logRetention' is not null or undefined
|
|
794
|
+
assertParamExists('putClusterLogRetention', 'logRetention', logRetention)
|
|
795
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/retention`
|
|
796
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
797
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
798
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
799
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
800
|
+
let baseOptions;
|
|
801
|
+
if (configuration) {
|
|
802
|
+
baseOptions = configuration.baseOptions;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
806
|
+
const localVarHeaderParameter = {} as any;
|
|
807
|
+
const localVarQueryParameter = {} as any;
|
|
808
|
+
|
|
809
|
+
// authentication BearerToken required
|
|
810
|
+
// http bearer authentication required
|
|
811
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
812
|
+
|
|
813
|
+
// authentication DigestAuth required
|
|
814
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
819
|
+
|
|
820
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
821
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
822
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
823
|
+
localVarRequestOptions.data = serializeDataIfNeeded(logRetention, localVarRequestOptions, configuration)
|
|
824
|
+
|
|
825
|
+
return {
|
|
826
|
+
url: toPathString(localVarUrlObj),
|
|
827
|
+
options: localVarRequestOptions,
|
|
828
|
+
};
|
|
829
|
+
},
|
|
687
830
|
/**
|
|
688
831
|
* Query audit logs of a cluster
|
|
689
832
|
* @summary Query cluster audit logs
|
|
@@ -1696,6 +1839,20 @@ export const ClusterLogApiFp = function(configuration?: Configuration) {
|
|
|
1696
1839
|
const localVarOperationServerBasePath = operationServerMap['ClusterLogApi.aggregateSlowLogs']?.[localVarOperationServerIndex]?.url;
|
|
1697
1840
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1698
1841
|
},
|
|
1842
|
+
/**
|
|
1843
|
+
* Removes cluster overrides and returns the retention inherited from the environment.
|
|
1844
|
+
* @summary Reset cluster log retention
|
|
1845
|
+
* @param {string} orgName
|
|
1846
|
+
* @param {string} clusterName
|
|
1847
|
+
* @param {*} [options] Override http request option.
|
|
1848
|
+
* @throws {RequiredError}
|
|
1849
|
+
*/
|
|
1850
|
+
async deleteClusterLogRetention(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogRetention>> {
|
|
1851
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClusterLogRetention(orgName, clusterName, options);
|
|
1852
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1853
|
+
const localVarOperationServerBasePath = operationServerMap['ClusterLogApi.deleteClusterLogRetention']?.[localVarOperationServerIndex]?.url;
|
|
1854
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1855
|
+
},
|
|
1699
1856
|
/**
|
|
1700
1857
|
* Explain a concrete SQL from a slow log using the cluster default datasource.
|
|
1701
1858
|
* @summary Explain cluster slow log SQL
|
|
@@ -1743,6 +1900,20 @@ export const ClusterLogApiFp = function(configuration?: Configuration) {
|
|
|
1743
1900
|
const localVarOperationServerBasePath = operationServerMap['ClusterLogApi.explainSlowLogTemplate']?.[localVarOperationServerIndex]?.url;
|
|
1744
1901
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1745
1902
|
},
|
|
1903
|
+
/**
|
|
1904
|
+
*
|
|
1905
|
+
* @summary Get cluster log retention
|
|
1906
|
+
* @param {string} orgName
|
|
1907
|
+
* @param {string} clusterName
|
|
1908
|
+
* @param {*} [options] Override http request option.
|
|
1909
|
+
* @throws {RequiredError}
|
|
1910
|
+
*/
|
|
1911
|
+
async getClusterLogRetention(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogRetention>> {
|
|
1912
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterLogRetention(orgName, clusterName, options);
|
|
1913
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1914
|
+
const localVarOperationServerBasePath = operationServerMap['ClusterLogApi.getClusterLogRetention']?.[localVarOperationServerIndex]?.url;
|
|
1915
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1916
|
+
},
|
|
1746
1917
|
/**
|
|
1747
1918
|
* Get statistics summary for slow logs of a cluster. When the same slow log filters are supplied, totalSlowLogs can be used as the filtered list preview count.
|
|
1748
1919
|
* @summary Get cluster slow log statistics
|
|
@@ -1808,6 +1979,21 @@ export const ClusterLogApiFp = function(configuration?: Configuration) {
|
|
|
1808
1979
|
const localVarOperationServerBasePath = operationServerMap['ClusterLogApi.getSlowLogTemplate']?.[localVarOperationServerIndex]?.url;
|
|
1809
1980
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1810
1981
|
},
|
|
1982
|
+
/**
|
|
1983
|
+
* Replaces the current settings. Applies to the next cleanup.
|
|
1984
|
+
* @summary Set cluster log retention
|
|
1985
|
+
* @param {string} orgName
|
|
1986
|
+
* @param {string} clusterName
|
|
1987
|
+
* @param {LogRetention} logRetention
|
|
1988
|
+
* @param {*} [options] Override http request option.
|
|
1989
|
+
* @throws {RequiredError}
|
|
1990
|
+
*/
|
|
1991
|
+
async putClusterLogRetention(orgName: string, clusterName: string, logRetention: LogRetention, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LogRetention>> {
|
|
1992
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putClusterLogRetention(orgName, clusterName, logRetention, options);
|
|
1993
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1994
|
+
const localVarOperationServerBasePath = operationServerMap['ClusterLogApi.putClusterLogRetention']?.[localVarOperationServerIndex]?.url;
|
|
1995
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1996
|
+
},
|
|
1811
1997
|
/**
|
|
1812
1998
|
* Query audit logs of a cluster
|
|
1813
1999
|
* @summary Query cluster audit logs
|
|
@@ -2054,6 +2240,16 @@ export const ClusterLogApiFactory = function (configuration?: Configuration, bas
|
|
|
2054
2240
|
aggregateSlowLogs(requestParameters: ClusterLogApiAggregateSlowLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLogAggregateResponse> {
|
|
2055
2241
|
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.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, options).then((request) => request(axios, basePath));
|
|
2056
2242
|
},
|
|
2243
|
+
/**
|
|
2244
|
+
* Removes cluster overrides and returns the retention inherited from the environment.
|
|
2245
|
+
* @summary Reset cluster log retention
|
|
2246
|
+
* @param {ClusterLogApiDeleteClusterLogRetentionRequest} requestParameters Request parameters.
|
|
2247
|
+
* @param {*} [options] Override http request option.
|
|
2248
|
+
* @throws {RequiredError}
|
|
2249
|
+
*/
|
|
2250
|
+
deleteClusterLogRetention(requestParameters: ClusterLogApiDeleteClusterLogRetentionRequest, options?: RawAxiosRequestConfig): AxiosPromise<LogRetention> {
|
|
2251
|
+
return localVarFp.deleteClusterLogRetention(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
2252
|
+
},
|
|
2057
2253
|
/**
|
|
2058
2254
|
* Explain a concrete SQL from a slow log using the cluster default datasource.
|
|
2059
2255
|
* @summary Explain cluster slow log SQL
|
|
@@ -2074,6 +2270,16 @@ export const ClusterLogApiFactory = function (configuration?: Configuration, bas
|
|
|
2074
2270
|
explainSlowLogTemplate(requestParameters: ClusterLogApiExplainSlowLogTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterSlowLogExplainResponse> {
|
|
2075
2271
|
return localVarFp.explainSlowLogTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.templateId, requestParameters.startTime, requestParameters.endTime, 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, options).then((request) => request(axios, basePath));
|
|
2076
2272
|
},
|
|
2273
|
+
/**
|
|
2274
|
+
*
|
|
2275
|
+
* @summary Get cluster log retention
|
|
2276
|
+
* @param {ClusterLogApiGetClusterLogRetentionRequest} requestParameters Request parameters.
|
|
2277
|
+
* @param {*} [options] Override http request option.
|
|
2278
|
+
* @throws {RequiredError}
|
|
2279
|
+
*/
|
|
2280
|
+
getClusterLogRetention(requestParameters: ClusterLogApiGetClusterLogRetentionRequest, options?: RawAxiosRequestConfig): AxiosPromise<LogRetention> {
|
|
2281
|
+
return localVarFp.getClusterLogRetention(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
2282
|
+
},
|
|
2077
2283
|
/**
|
|
2078
2284
|
* Get statistics summary for slow logs of a cluster. When the same slow log filters are supplied, totalSlowLogs can be used as the filtered list preview count.
|
|
2079
2285
|
* @summary Get cluster slow log statistics
|
|
@@ -2094,6 +2300,16 @@ export const ClusterLogApiFactory = function (configuration?: Configuration, bas
|
|
|
2094
2300
|
getSlowLogTemplate(requestParameters: ClusterLogApiGetSlowLogTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterSlowLogTemplate> {
|
|
2095
2301
|
return localVarFp.getSlowLogTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.templateId, requestParameters.startTime, requestParameters.endTime, 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, options).then((request) => request(axios, basePath));
|
|
2096
2302
|
},
|
|
2303
|
+
/**
|
|
2304
|
+
* Replaces the current settings. Applies to the next cleanup.
|
|
2305
|
+
* @summary Set cluster log retention
|
|
2306
|
+
* @param {ClusterLogApiPutClusterLogRetentionRequest} requestParameters Request parameters.
|
|
2307
|
+
* @param {*} [options] Override http request option.
|
|
2308
|
+
* @throws {RequiredError}
|
|
2309
|
+
*/
|
|
2310
|
+
putClusterLogRetention(requestParameters: ClusterLogApiPutClusterLogRetentionRequest, options?: RawAxiosRequestConfig): AxiosPromise<LogRetention> {
|
|
2311
|
+
return localVarFp.putClusterLogRetention(requestParameters.orgName, requestParameters.clusterName, requestParameters.logRetention, options).then((request) => request(axios, basePath));
|
|
2312
|
+
},
|
|
2097
2313
|
/**
|
|
2098
2314
|
* Query audit logs of a cluster
|
|
2099
2315
|
* @summary Query cluster audit logs
|
|
@@ -2193,6 +2409,16 @@ export interface ClusterLogApiInterface {
|
|
|
2193
2409
|
*/
|
|
2194
2410
|
aggregateSlowLogs(requestParameters: ClusterLogApiAggregateSlowLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLogAggregateResponse>;
|
|
2195
2411
|
|
|
2412
|
+
/**
|
|
2413
|
+
* Removes cluster overrides and returns the retention inherited from the environment.
|
|
2414
|
+
* @summary Reset cluster log retention
|
|
2415
|
+
* @param {ClusterLogApiDeleteClusterLogRetentionRequest} requestParameters Request parameters.
|
|
2416
|
+
* @param {*} [options] Override http request option.
|
|
2417
|
+
* @throws {RequiredError}
|
|
2418
|
+
* @memberof ClusterLogApiInterface
|
|
2419
|
+
*/
|
|
2420
|
+
deleteClusterLogRetention(requestParameters: ClusterLogApiDeleteClusterLogRetentionRequest, options?: RawAxiosRequestConfig): AxiosPromise<LogRetention>;
|
|
2421
|
+
|
|
2196
2422
|
/**
|
|
2197
2423
|
* Explain a concrete SQL from a slow log using the cluster default datasource.
|
|
2198
2424
|
* @summary Explain cluster slow log SQL
|
|
@@ -2213,6 +2439,16 @@ export interface ClusterLogApiInterface {
|
|
|
2213
2439
|
*/
|
|
2214
2440
|
explainSlowLogTemplate(requestParameters: ClusterLogApiExplainSlowLogTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterSlowLogExplainResponse>;
|
|
2215
2441
|
|
|
2442
|
+
/**
|
|
2443
|
+
*
|
|
2444
|
+
* @summary Get cluster log retention
|
|
2445
|
+
* @param {ClusterLogApiGetClusterLogRetentionRequest} requestParameters Request parameters.
|
|
2446
|
+
* @param {*} [options] Override http request option.
|
|
2447
|
+
* @throws {RequiredError}
|
|
2448
|
+
* @memberof ClusterLogApiInterface
|
|
2449
|
+
*/
|
|
2450
|
+
getClusterLogRetention(requestParameters: ClusterLogApiGetClusterLogRetentionRequest, options?: RawAxiosRequestConfig): AxiosPromise<LogRetention>;
|
|
2451
|
+
|
|
2216
2452
|
/**
|
|
2217
2453
|
* Get statistics summary for slow logs of a cluster. When the same slow log filters are supplied, totalSlowLogs can be used as the filtered list preview count.
|
|
2218
2454
|
* @summary Get cluster slow log statistics
|
|
@@ -2233,6 +2469,16 @@ export interface ClusterLogApiInterface {
|
|
|
2233
2469
|
*/
|
|
2234
2470
|
getSlowLogTemplate(requestParameters: ClusterLogApiGetSlowLogTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterSlowLogTemplate>;
|
|
2235
2471
|
|
|
2472
|
+
/**
|
|
2473
|
+
* Replaces the current settings. Applies to the next cleanup.
|
|
2474
|
+
* @summary Set cluster log retention
|
|
2475
|
+
* @param {ClusterLogApiPutClusterLogRetentionRequest} requestParameters Request parameters.
|
|
2476
|
+
* @param {*} [options] Override http request option.
|
|
2477
|
+
* @throws {RequiredError}
|
|
2478
|
+
* @memberof ClusterLogApiInterface
|
|
2479
|
+
*/
|
|
2480
|
+
putClusterLogRetention(requestParameters: ClusterLogApiPutClusterLogRetentionRequest, options?: RawAxiosRequestConfig): AxiosPromise<LogRetention>;
|
|
2481
|
+
|
|
2236
2482
|
/**
|
|
2237
2483
|
* Query audit logs of a cluster
|
|
2238
2484
|
* @summary Query cluster audit logs
|
|
@@ -2497,6 +2743,27 @@ export interface ClusterLogApiAggregateSlowLogsRequest {
|
|
|
2497
2743
|
readonly unclassifiedOnly?: boolean
|
|
2498
2744
|
}
|
|
2499
2745
|
|
|
2746
|
+
/**
|
|
2747
|
+
* Request parameters for deleteClusterLogRetention operation in ClusterLogApi.
|
|
2748
|
+
* @export
|
|
2749
|
+
* @interface ClusterLogApiDeleteClusterLogRetentionRequest
|
|
2750
|
+
*/
|
|
2751
|
+
export interface ClusterLogApiDeleteClusterLogRetentionRequest {
|
|
2752
|
+
/**
|
|
2753
|
+
*
|
|
2754
|
+
* @type {string}
|
|
2755
|
+
* @memberof ClusterLogApiDeleteClusterLogRetention
|
|
2756
|
+
*/
|
|
2757
|
+
readonly orgName: string
|
|
2758
|
+
|
|
2759
|
+
/**
|
|
2760
|
+
*
|
|
2761
|
+
* @type {string}
|
|
2762
|
+
* @memberof ClusterLogApiDeleteClusterLogRetention
|
|
2763
|
+
*/
|
|
2764
|
+
readonly clusterName: string
|
|
2765
|
+
}
|
|
2766
|
+
|
|
2500
2767
|
/**
|
|
2501
2768
|
* Request parameters for explainSlowLog operation in ClusterLogApi.
|
|
2502
2769
|
* @export
|
|
@@ -2672,6 +2939,27 @@ export interface ClusterLogApiExplainSlowLogTemplateRequest {
|
|
|
2672
2939
|
readonly appName?: string
|
|
2673
2940
|
}
|
|
2674
2941
|
|
|
2942
|
+
/**
|
|
2943
|
+
* Request parameters for getClusterLogRetention operation in ClusterLogApi.
|
|
2944
|
+
* @export
|
|
2945
|
+
* @interface ClusterLogApiGetClusterLogRetentionRequest
|
|
2946
|
+
*/
|
|
2947
|
+
export interface ClusterLogApiGetClusterLogRetentionRequest {
|
|
2948
|
+
/**
|
|
2949
|
+
*
|
|
2950
|
+
* @type {string}
|
|
2951
|
+
* @memberof ClusterLogApiGetClusterLogRetention
|
|
2952
|
+
*/
|
|
2953
|
+
readonly orgName: string
|
|
2954
|
+
|
|
2955
|
+
/**
|
|
2956
|
+
*
|
|
2957
|
+
* @type {string}
|
|
2958
|
+
* @memberof ClusterLogApiGetClusterLogRetention
|
|
2959
|
+
*/
|
|
2960
|
+
readonly clusterName: string
|
|
2961
|
+
}
|
|
2962
|
+
|
|
2675
2963
|
/**
|
|
2676
2964
|
* Request parameters for getSlowLogStats operation in ClusterLogApi.
|
|
2677
2965
|
* @export
|
|
@@ -2973,6 +3261,34 @@ export interface ClusterLogApiGetSlowLogTemplateRequest {
|
|
|
2973
3261
|
readonly appName?: string
|
|
2974
3262
|
}
|
|
2975
3263
|
|
|
3264
|
+
/**
|
|
3265
|
+
* Request parameters for putClusterLogRetention operation in ClusterLogApi.
|
|
3266
|
+
* @export
|
|
3267
|
+
* @interface ClusterLogApiPutClusterLogRetentionRequest
|
|
3268
|
+
*/
|
|
3269
|
+
export interface ClusterLogApiPutClusterLogRetentionRequest {
|
|
3270
|
+
/**
|
|
3271
|
+
*
|
|
3272
|
+
* @type {string}
|
|
3273
|
+
* @memberof ClusterLogApiPutClusterLogRetention
|
|
3274
|
+
*/
|
|
3275
|
+
readonly orgName: string
|
|
3276
|
+
|
|
3277
|
+
/**
|
|
3278
|
+
*
|
|
3279
|
+
* @type {string}
|
|
3280
|
+
* @memberof ClusterLogApiPutClusterLogRetention
|
|
3281
|
+
*/
|
|
3282
|
+
readonly clusterName: string
|
|
3283
|
+
|
|
3284
|
+
/**
|
|
3285
|
+
*
|
|
3286
|
+
* @type {LogRetention}
|
|
3287
|
+
* @memberof ClusterLogApiPutClusterLogRetention
|
|
3288
|
+
*/
|
|
3289
|
+
readonly logRetention: LogRetention
|
|
3290
|
+
}
|
|
3291
|
+
|
|
2976
3292
|
/**
|
|
2977
3293
|
* Request parameters for queryAuditLogs operation in ClusterLogApi.
|
|
2978
3294
|
* @export
|
|
@@ -3958,6 +4274,18 @@ export class ClusterLogApi extends BaseAPI implements ClusterLogApiInterface {
|
|
|
3958
4274
|
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.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, options).then((request) => request(this.axios, this.basePath));
|
|
3959
4275
|
}
|
|
3960
4276
|
|
|
4277
|
+
/**
|
|
4278
|
+
* Removes cluster overrides and returns the retention inherited from the environment.
|
|
4279
|
+
* @summary Reset cluster log retention
|
|
4280
|
+
* @param {ClusterLogApiDeleteClusterLogRetentionRequest} requestParameters Request parameters.
|
|
4281
|
+
* @param {*} [options] Override http request option.
|
|
4282
|
+
* @throws {RequiredError}
|
|
4283
|
+
* @memberof ClusterLogApi
|
|
4284
|
+
*/
|
|
4285
|
+
public deleteClusterLogRetention(requestParameters: ClusterLogApiDeleteClusterLogRetentionRequest, options?: RawAxiosRequestConfig) {
|
|
4286
|
+
return ClusterLogApiFp(this.configuration).deleteClusterLogRetention(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
4287
|
+
}
|
|
4288
|
+
|
|
3961
4289
|
/**
|
|
3962
4290
|
* Explain a concrete SQL from a slow log using the cluster default datasource.
|
|
3963
4291
|
* @summary Explain cluster slow log SQL
|
|
@@ -3982,6 +4310,18 @@ export class ClusterLogApi extends BaseAPI implements ClusterLogApiInterface {
|
|
|
3982
4310
|
return ClusterLogApiFp(this.configuration).explainSlowLogTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.templateId, requestParameters.startTime, requestParameters.endTime, 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, options).then((request) => request(this.axios, this.basePath));
|
|
3983
4311
|
}
|
|
3984
4312
|
|
|
4313
|
+
/**
|
|
4314
|
+
*
|
|
4315
|
+
* @summary Get cluster log retention
|
|
4316
|
+
* @param {ClusterLogApiGetClusterLogRetentionRequest} requestParameters Request parameters.
|
|
4317
|
+
* @param {*} [options] Override http request option.
|
|
4318
|
+
* @throws {RequiredError}
|
|
4319
|
+
* @memberof ClusterLogApi
|
|
4320
|
+
*/
|
|
4321
|
+
public getClusterLogRetention(requestParameters: ClusterLogApiGetClusterLogRetentionRequest, options?: RawAxiosRequestConfig) {
|
|
4322
|
+
return ClusterLogApiFp(this.configuration).getClusterLogRetention(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
4323
|
+
}
|
|
4324
|
+
|
|
3985
4325
|
/**
|
|
3986
4326
|
* Get statistics summary for slow logs of a cluster. When the same slow log filters are supplied, totalSlowLogs can be used as the filtered list preview count.
|
|
3987
4327
|
* @summary Get cluster slow log statistics
|
|
@@ -4006,6 +4346,18 @@ export class ClusterLogApi extends BaseAPI implements ClusterLogApiInterface {
|
|
|
4006
4346
|
return ClusterLogApiFp(this.configuration).getSlowLogTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.templateId, requestParameters.startTime, requestParameters.endTime, 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, options).then((request) => request(this.axios, this.basePath));
|
|
4007
4347
|
}
|
|
4008
4348
|
|
|
4349
|
+
/**
|
|
4350
|
+
* Replaces the current settings. Applies to the next cleanup.
|
|
4351
|
+
* @summary Set cluster log retention
|
|
4352
|
+
* @param {ClusterLogApiPutClusterLogRetentionRequest} requestParameters Request parameters.
|
|
4353
|
+
* @param {*} [options] Override http request option.
|
|
4354
|
+
* @throws {RequiredError}
|
|
4355
|
+
* @memberof ClusterLogApi
|
|
4356
|
+
*/
|
|
4357
|
+
public putClusterLogRetention(requestParameters: ClusterLogApiPutClusterLogRetentionRequest, options?: RawAxiosRequestConfig) {
|
|
4358
|
+
return ClusterLogApiFp(this.configuration).putClusterLogRetention(requestParameters.orgName, requestParameters.clusterName, requestParameters.logRetention, options).then((request) => request(this.axios, this.basePath));
|
|
4359
|
+
}
|
|
4360
|
+
|
|
4009
4361
|
/**
|
|
4010
4362
|
* Query audit logs of a cluster
|
|
4011
4363
|
* @summary Query cluster audit logs
|