kb-cloud-client-typescript 2.4.0-alpha.87 → 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
|
@@ -241,6 +241,44 @@ const ClusterLogApiAxiosParamCreator = function (configuration) {
|
|
|
241
241
|
options: localVarRequestOptions,
|
|
242
242
|
};
|
|
243
243
|
},
|
|
244
|
+
/**
|
|
245
|
+
* Removes cluster overrides and returns the retention inherited from the environment.
|
|
246
|
+
* @summary Reset cluster log retention
|
|
247
|
+
* @param {string} orgName
|
|
248
|
+
* @param {string} clusterName
|
|
249
|
+
* @param {*} [options] Override http request option.
|
|
250
|
+
* @throws {RequiredError}
|
|
251
|
+
*/
|
|
252
|
+
deleteClusterLogRetention: async (orgName, clusterName, options = {}) => {
|
|
253
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
254
|
+
(0, common_1.assertParamExists)('deleteClusterLogRetention', 'orgName', orgName);
|
|
255
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
256
|
+
(0, common_1.assertParamExists)('deleteClusterLogRetention', 'clusterName', clusterName);
|
|
257
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/retention`
|
|
258
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
259
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
260
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
261
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
262
|
+
let baseOptions;
|
|
263
|
+
if (configuration) {
|
|
264
|
+
baseOptions = configuration.baseOptions;
|
|
265
|
+
}
|
|
266
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
267
|
+
const localVarHeaderParameter = {};
|
|
268
|
+
const localVarQueryParameter = {};
|
|
269
|
+
// authentication BearerToken required
|
|
270
|
+
// http bearer authentication required
|
|
271
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
272
|
+
// authentication DigestAuth required
|
|
273
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
274
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
275
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
276
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
277
|
+
return {
|
|
278
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
279
|
+
options: localVarRequestOptions,
|
|
280
|
+
};
|
|
281
|
+
},
|
|
244
282
|
/**
|
|
245
283
|
* Explain a concrete SQL from a slow log using the cluster default datasource.
|
|
246
284
|
* @summary Explain cluster slow log SQL
|
|
@@ -530,6 +568,44 @@ const ClusterLogApiAxiosParamCreator = function (configuration) {
|
|
|
530
568
|
options: localVarRequestOptions,
|
|
531
569
|
};
|
|
532
570
|
},
|
|
571
|
+
/**
|
|
572
|
+
*
|
|
573
|
+
* @summary Get cluster log retention
|
|
574
|
+
* @param {string} orgName
|
|
575
|
+
* @param {string} clusterName
|
|
576
|
+
* @param {*} [options] Override http request option.
|
|
577
|
+
* @throws {RequiredError}
|
|
578
|
+
*/
|
|
579
|
+
getClusterLogRetention: async (orgName, clusterName, options = {}) => {
|
|
580
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
581
|
+
(0, common_1.assertParamExists)('getClusterLogRetention', 'orgName', orgName);
|
|
582
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
583
|
+
(0, common_1.assertParamExists)('getClusterLogRetention', 'clusterName', clusterName);
|
|
584
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/retention`
|
|
585
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
586
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
587
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
588
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
589
|
+
let baseOptions;
|
|
590
|
+
if (configuration) {
|
|
591
|
+
baseOptions = configuration.baseOptions;
|
|
592
|
+
}
|
|
593
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
594
|
+
const localVarHeaderParameter = {};
|
|
595
|
+
const localVarQueryParameter = {};
|
|
596
|
+
// authentication BearerToken required
|
|
597
|
+
// http bearer authentication required
|
|
598
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
599
|
+
// authentication DigestAuth required
|
|
600
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
601
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
602
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
603
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
604
|
+
return {
|
|
605
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
606
|
+
options: localVarRequestOptions,
|
|
607
|
+
};
|
|
608
|
+
},
|
|
533
609
|
/**
|
|
534
610
|
* 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.
|
|
535
611
|
* @summary Get cluster slow log statistics
|
|
@@ -762,6 +838,49 @@ const ClusterLogApiAxiosParamCreator = function (configuration) {
|
|
|
762
838
|
options: localVarRequestOptions,
|
|
763
839
|
};
|
|
764
840
|
},
|
|
841
|
+
/**
|
|
842
|
+
* Replaces the current settings. Applies to the next cleanup.
|
|
843
|
+
* @summary Set cluster log retention
|
|
844
|
+
* @param {string} orgName
|
|
845
|
+
* @param {string} clusterName
|
|
846
|
+
* @param {LogRetention} logRetention
|
|
847
|
+
* @param {*} [options] Override http request option.
|
|
848
|
+
* @throws {RequiredError}
|
|
849
|
+
*/
|
|
850
|
+
putClusterLogRetention: async (orgName, clusterName, logRetention, options = {}) => {
|
|
851
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
852
|
+
(0, common_1.assertParamExists)('putClusterLogRetention', 'orgName', orgName);
|
|
853
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
854
|
+
(0, common_1.assertParamExists)('putClusterLogRetention', 'clusterName', clusterName);
|
|
855
|
+
// verify required parameter 'logRetention' is not null or undefined
|
|
856
|
+
(0, common_1.assertParamExists)('putClusterLogRetention', 'logRetention', logRetention);
|
|
857
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/retention`
|
|
858
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
859
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
860
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
861
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
862
|
+
let baseOptions;
|
|
863
|
+
if (configuration) {
|
|
864
|
+
baseOptions = configuration.baseOptions;
|
|
865
|
+
}
|
|
866
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
867
|
+
const localVarHeaderParameter = {};
|
|
868
|
+
const localVarQueryParameter = {};
|
|
869
|
+
// authentication BearerToken required
|
|
870
|
+
// http bearer authentication required
|
|
871
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
872
|
+
// authentication DigestAuth required
|
|
873
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
874
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
875
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
876
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
877
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
878
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(logRetention, localVarRequestOptions, configuration);
|
|
879
|
+
return {
|
|
880
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
881
|
+
options: localVarRequestOptions,
|
|
882
|
+
};
|
|
883
|
+
},
|
|
765
884
|
/**
|
|
766
885
|
* Query audit logs of a cluster
|
|
767
886
|
* @summary Query cluster audit logs
|
|
@@ -1630,6 +1749,21 @@ const ClusterLogApiFp = function (configuration) {
|
|
|
1630
1749
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterLogApi.aggregateSlowLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1631
1750
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1632
1751
|
},
|
|
1752
|
+
/**
|
|
1753
|
+
* Removes cluster overrides and returns the retention inherited from the environment.
|
|
1754
|
+
* @summary Reset cluster log retention
|
|
1755
|
+
* @param {string} orgName
|
|
1756
|
+
* @param {string} clusterName
|
|
1757
|
+
* @param {*} [options] Override http request option.
|
|
1758
|
+
* @throws {RequiredError}
|
|
1759
|
+
*/
|
|
1760
|
+
async deleteClusterLogRetention(orgName, clusterName, options) {
|
|
1761
|
+
var _a, _b, _c;
|
|
1762
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClusterLogRetention(orgName, clusterName, options);
|
|
1763
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1764
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterLogApi.deleteClusterLogRetention']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1765
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1766
|
+
},
|
|
1633
1767
|
/**
|
|
1634
1768
|
* Explain a concrete SQL from a slow log using the cluster default datasource.
|
|
1635
1769
|
* @summary Explain cluster slow log SQL
|
|
@@ -1717,6 +1851,21 @@ const ClusterLogApiFp = function (configuration) {
|
|
|
1717
1851
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterLogApi.exportClusterLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1718
1852
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1719
1853
|
},
|
|
1854
|
+
/**
|
|
1855
|
+
*
|
|
1856
|
+
* @summary Get cluster log retention
|
|
1857
|
+
* @param {string} orgName
|
|
1858
|
+
* @param {string} clusterName
|
|
1859
|
+
* @param {*} [options] Override http request option.
|
|
1860
|
+
* @throws {RequiredError}
|
|
1861
|
+
*/
|
|
1862
|
+
async getClusterLogRetention(orgName, clusterName, options) {
|
|
1863
|
+
var _a, _b, _c;
|
|
1864
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterLogRetention(orgName, clusterName, options);
|
|
1865
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1866
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterLogApi.getClusterLogRetention']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1867
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1868
|
+
},
|
|
1720
1869
|
/**
|
|
1721
1870
|
* 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.
|
|
1722
1871
|
* @summary Get cluster slow log statistics
|
|
@@ -1784,6 +1933,22 @@ const ClusterLogApiFp = function (configuration) {
|
|
|
1784
1933
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterLogApi.getSlowLogTemplate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1785
1934
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1786
1935
|
},
|
|
1936
|
+
/**
|
|
1937
|
+
* Replaces the current settings. Applies to the next cleanup.
|
|
1938
|
+
* @summary Set cluster log retention
|
|
1939
|
+
* @param {string} orgName
|
|
1940
|
+
* @param {string} clusterName
|
|
1941
|
+
* @param {LogRetention} logRetention
|
|
1942
|
+
* @param {*} [options] Override http request option.
|
|
1943
|
+
* @throws {RequiredError}
|
|
1944
|
+
*/
|
|
1945
|
+
async putClusterLogRetention(orgName, clusterName, logRetention, options) {
|
|
1946
|
+
var _a, _b, _c;
|
|
1947
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putClusterLogRetention(orgName, clusterName, logRetention, options);
|
|
1948
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1949
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterLogApi.putClusterLogRetention']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1950
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1951
|
+
},
|
|
1787
1952
|
/**
|
|
1788
1953
|
* Query audit logs of a cluster
|
|
1789
1954
|
* @summary Query cluster audit logs
|
|
@@ -2048,6 +2213,16 @@ const ClusterLogApiFactory = function (configuration, basePath, axios) {
|
|
|
2048
2213
|
aggregateSlowLogs(requestParameters, options) {
|
|
2049
2214
|
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));
|
|
2050
2215
|
},
|
|
2216
|
+
/**
|
|
2217
|
+
* Removes cluster overrides and returns the retention inherited from the environment.
|
|
2218
|
+
* @summary Reset cluster log retention
|
|
2219
|
+
* @param {ClusterLogApiDeleteClusterLogRetentionRequest} requestParameters Request parameters.
|
|
2220
|
+
* @param {*} [options] Override http request option.
|
|
2221
|
+
* @throws {RequiredError}
|
|
2222
|
+
*/
|
|
2223
|
+
deleteClusterLogRetention(requestParameters, options) {
|
|
2224
|
+
return localVarFp.deleteClusterLogRetention(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
2225
|
+
},
|
|
2051
2226
|
/**
|
|
2052
2227
|
* Explain a concrete SQL from a slow log using the cluster default datasource.
|
|
2053
2228
|
* @summary Explain cluster slow log SQL
|
|
@@ -2078,6 +2253,16 @@ const ClusterLogApiFactory = function (configuration, basePath, axios) {
|
|
|
2078
2253
|
exportClusterLogs(requestParameters, options) {
|
|
2079
2254
|
return localVarFp.exportClusterLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.logType, requestParameters.startTime, requestParameters.endTime, requestParameters.format, requestParameters.query, requestParameters.filename, requestParameters.componentName, requestParameters.instanceName, 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, requestParameters.maxLines, options).then((request) => request(axios, basePath));
|
|
2080
2255
|
},
|
|
2256
|
+
/**
|
|
2257
|
+
*
|
|
2258
|
+
* @summary Get cluster log retention
|
|
2259
|
+
* @param {ClusterLogApiGetClusterLogRetentionRequest} requestParameters Request parameters.
|
|
2260
|
+
* @param {*} [options] Override http request option.
|
|
2261
|
+
* @throws {RequiredError}
|
|
2262
|
+
*/
|
|
2263
|
+
getClusterLogRetention(requestParameters, options) {
|
|
2264
|
+
return localVarFp.getClusterLogRetention(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
2265
|
+
},
|
|
2081
2266
|
/**
|
|
2082
2267
|
* 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.
|
|
2083
2268
|
* @summary Get cluster slow log statistics
|
|
@@ -2098,6 +2283,16 @@ const ClusterLogApiFactory = function (configuration, basePath, axios) {
|
|
|
2098
2283
|
getSlowLogTemplate(requestParameters, options) {
|
|
2099
2284
|
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));
|
|
2100
2285
|
},
|
|
2286
|
+
/**
|
|
2287
|
+
* Replaces the current settings. Applies to the next cleanup.
|
|
2288
|
+
* @summary Set cluster log retention
|
|
2289
|
+
* @param {ClusterLogApiPutClusterLogRetentionRequest} requestParameters Request parameters.
|
|
2290
|
+
* @param {*} [options] Override http request option.
|
|
2291
|
+
* @throws {RequiredError}
|
|
2292
|
+
*/
|
|
2293
|
+
putClusterLogRetention(requestParameters, options) {
|
|
2294
|
+
return localVarFp.putClusterLogRetention(requestParameters.orgName, requestParameters.clusterName, requestParameters.logRetention, options).then((request) => request(axios, basePath));
|
|
2295
|
+
},
|
|
2101
2296
|
/**
|
|
2102
2297
|
* Query audit logs of a cluster
|
|
2103
2298
|
* @summary Query cluster audit logs
|
|
@@ -2210,6 +2405,17 @@ class ClusterLogApi extends base_1.BaseAPI {
|
|
|
2210
2405
|
aggregateSlowLogs(requestParameters, options) {
|
|
2211
2406
|
return (0, exports.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));
|
|
2212
2407
|
}
|
|
2408
|
+
/**
|
|
2409
|
+
* Removes cluster overrides and returns the retention inherited from the environment.
|
|
2410
|
+
* @summary Reset cluster log retention
|
|
2411
|
+
* @param {ClusterLogApiDeleteClusterLogRetentionRequest} requestParameters Request parameters.
|
|
2412
|
+
* @param {*} [options] Override http request option.
|
|
2413
|
+
* @throws {RequiredError}
|
|
2414
|
+
* @memberof ClusterLogApi
|
|
2415
|
+
*/
|
|
2416
|
+
deleteClusterLogRetention(requestParameters, options) {
|
|
2417
|
+
return (0, exports.ClusterLogApiFp)(this.configuration).deleteClusterLogRetention(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
2418
|
+
}
|
|
2213
2419
|
/**
|
|
2214
2420
|
* Explain a concrete SQL from a slow log using the cluster default datasource.
|
|
2215
2421
|
* @summary Explain cluster slow log SQL
|
|
@@ -2243,6 +2449,17 @@ class ClusterLogApi extends base_1.BaseAPI {
|
|
|
2243
2449
|
exportClusterLogs(requestParameters, options) {
|
|
2244
2450
|
return (0, exports.ClusterLogApiFp)(this.configuration).exportClusterLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.logType, requestParameters.startTime, requestParameters.endTime, requestParameters.format, requestParameters.query, requestParameters.filename, requestParameters.componentName, requestParameters.instanceName, 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, requestParameters.maxLines, options).then((request) => request(this.axios, this.basePath));
|
|
2245
2451
|
}
|
|
2452
|
+
/**
|
|
2453
|
+
*
|
|
2454
|
+
* @summary Get cluster log retention
|
|
2455
|
+
* @param {ClusterLogApiGetClusterLogRetentionRequest} requestParameters Request parameters.
|
|
2456
|
+
* @param {*} [options] Override http request option.
|
|
2457
|
+
* @throws {RequiredError}
|
|
2458
|
+
* @memberof ClusterLogApi
|
|
2459
|
+
*/
|
|
2460
|
+
getClusterLogRetention(requestParameters, options) {
|
|
2461
|
+
return (0, exports.ClusterLogApiFp)(this.configuration).getClusterLogRetention(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
2462
|
+
}
|
|
2246
2463
|
/**
|
|
2247
2464
|
* 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.
|
|
2248
2465
|
* @summary Get cluster slow log statistics
|
|
@@ -2265,6 +2482,17 @@ class ClusterLogApi extends base_1.BaseAPI {
|
|
|
2265
2482
|
getSlowLogTemplate(requestParameters, options) {
|
|
2266
2483
|
return (0, exports.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));
|
|
2267
2484
|
}
|
|
2485
|
+
/**
|
|
2486
|
+
* Replaces the current settings. Applies to the next cleanup.
|
|
2487
|
+
* @summary Set cluster log retention
|
|
2488
|
+
* @param {ClusterLogApiPutClusterLogRetentionRequest} requestParameters Request parameters.
|
|
2489
|
+
* @param {*} [options] Override http request option.
|
|
2490
|
+
* @throws {RequiredError}
|
|
2491
|
+
* @memberof ClusterLogApi
|
|
2492
|
+
*/
|
|
2493
|
+
putClusterLogRetention(requestParameters, options) {
|
|
2494
|
+
return (0, exports.ClusterLogApiFp)(this.configuration).putClusterLogRetention(requestParameters.orgName, requestParameters.clusterName, requestParameters.logRetention, options).then((request) => request(this.axios, this.basePath));
|
|
2495
|
+
}
|
|
2268
2496
|
/**
|
|
2269
2497
|
* Query audit logs of a cluster
|
|
2270
2498
|
* @summary Query cluster audit logs
|