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
|
@@ -163,6 +163,44 @@ const ClusterLogApiAxiosParamCreator = function (configuration) {
|
|
|
163
163
|
options: localVarRequestOptions,
|
|
164
164
|
};
|
|
165
165
|
},
|
|
166
|
+
/**
|
|
167
|
+
* Removes cluster overrides and returns the retention inherited from the environment.
|
|
168
|
+
* @summary Reset cluster log retention
|
|
169
|
+
* @param {string} orgName
|
|
170
|
+
* @param {string} clusterName
|
|
171
|
+
* @param {*} [options] Override http request option.
|
|
172
|
+
* @throws {RequiredError}
|
|
173
|
+
*/
|
|
174
|
+
deleteClusterLogRetention: async (orgName, clusterName, options = {}) => {
|
|
175
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
176
|
+
(0, common_1.assertParamExists)('deleteClusterLogRetention', 'orgName', orgName);
|
|
177
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
178
|
+
(0, common_1.assertParamExists)('deleteClusterLogRetention', 'clusterName', clusterName);
|
|
179
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/retention`
|
|
180
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
181
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
182
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
183
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
184
|
+
let baseOptions;
|
|
185
|
+
if (configuration) {
|
|
186
|
+
baseOptions = configuration.baseOptions;
|
|
187
|
+
}
|
|
188
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
189
|
+
const localVarHeaderParameter = {};
|
|
190
|
+
const localVarQueryParameter = {};
|
|
191
|
+
// authentication BearerToken required
|
|
192
|
+
// http bearer authentication required
|
|
193
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
194
|
+
// authentication DigestAuth required
|
|
195
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
196
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
197
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
198
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
199
|
+
return {
|
|
200
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
201
|
+
options: localVarRequestOptions,
|
|
202
|
+
};
|
|
203
|
+
},
|
|
166
204
|
/**
|
|
167
205
|
* Explain a concrete SQL from a slow log using the cluster default datasource.
|
|
168
206
|
* @summary Explain cluster slow log SQL
|
|
@@ -320,6 +358,44 @@ const ClusterLogApiAxiosParamCreator = function (configuration) {
|
|
|
320
358
|
options: localVarRequestOptions,
|
|
321
359
|
};
|
|
322
360
|
},
|
|
361
|
+
/**
|
|
362
|
+
*
|
|
363
|
+
* @summary Get cluster log retention
|
|
364
|
+
* @param {string} orgName
|
|
365
|
+
* @param {string} clusterName
|
|
366
|
+
* @param {*} [options] Override http request option.
|
|
367
|
+
* @throws {RequiredError}
|
|
368
|
+
*/
|
|
369
|
+
getClusterLogRetention: async (orgName, clusterName, options = {}) => {
|
|
370
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
371
|
+
(0, common_1.assertParamExists)('getClusterLogRetention', 'orgName', orgName);
|
|
372
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
373
|
+
(0, common_1.assertParamExists)('getClusterLogRetention', 'clusterName', clusterName);
|
|
374
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/retention`
|
|
375
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
376
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
377
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
378
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
379
|
+
let baseOptions;
|
|
380
|
+
if (configuration) {
|
|
381
|
+
baseOptions = configuration.baseOptions;
|
|
382
|
+
}
|
|
383
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
384
|
+
const localVarHeaderParameter = {};
|
|
385
|
+
const localVarQueryParameter = {};
|
|
386
|
+
// authentication BearerToken required
|
|
387
|
+
// http bearer authentication required
|
|
388
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
389
|
+
// authentication DigestAuth required
|
|
390
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
391
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
392
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
393
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
394
|
+
return {
|
|
395
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
396
|
+
options: localVarRequestOptions,
|
|
397
|
+
};
|
|
398
|
+
},
|
|
323
399
|
/**
|
|
324
400
|
* 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.
|
|
325
401
|
* @summary Get cluster slow log statistics
|
|
@@ -552,6 +628,49 @@ const ClusterLogApiAxiosParamCreator = function (configuration) {
|
|
|
552
628
|
options: localVarRequestOptions,
|
|
553
629
|
};
|
|
554
630
|
},
|
|
631
|
+
/**
|
|
632
|
+
* Replaces the current settings. Applies to the next cleanup.
|
|
633
|
+
* @summary Set cluster log retention
|
|
634
|
+
* @param {string} orgName
|
|
635
|
+
* @param {string} clusterName
|
|
636
|
+
* @param {LogRetention} logRetention
|
|
637
|
+
* @param {*} [options] Override http request option.
|
|
638
|
+
* @throws {RequiredError}
|
|
639
|
+
*/
|
|
640
|
+
putClusterLogRetention: async (orgName, clusterName, logRetention, options = {}) => {
|
|
641
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
642
|
+
(0, common_1.assertParamExists)('putClusterLogRetention', 'orgName', orgName);
|
|
643
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
644
|
+
(0, common_1.assertParamExists)('putClusterLogRetention', 'clusterName', clusterName);
|
|
645
|
+
// verify required parameter 'logRetention' is not null or undefined
|
|
646
|
+
(0, common_1.assertParamExists)('putClusterLogRetention', 'logRetention', logRetention);
|
|
647
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/retention`
|
|
648
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
649
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
650
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
651
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
652
|
+
let baseOptions;
|
|
653
|
+
if (configuration) {
|
|
654
|
+
baseOptions = configuration.baseOptions;
|
|
655
|
+
}
|
|
656
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
657
|
+
const localVarHeaderParameter = {};
|
|
658
|
+
const localVarQueryParameter = {};
|
|
659
|
+
// authentication BearerToken required
|
|
660
|
+
// http bearer authentication required
|
|
661
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
662
|
+
// authentication DigestAuth required
|
|
663
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
664
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
665
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
666
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
667
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
668
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(logRetention, localVarRequestOptions, configuration);
|
|
669
|
+
return {
|
|
670
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
671
|
+
options: localVarRequestOptions,
|
|
672
|
+
};
|
|
673
|
+
},
|
|
555
674
|
/**
|
|
556
675
|
* Query audit logs of a cluster
|
|
557
676
|
* @summary Query cluster audit logs
|
|
@@ -1396,6 +1515,21 @@ const ClusterLogApiFp = function (configuration) {
|
|
|
1396
1515
|
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;
|
|
1397
1516
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1398
1517
|
},
|
|
1518
|
+
/**
|
|
1519
|
+
* Removes cluster overrides and returns the retention inherited from the environment.
|
|
1520
|
+
* @summary Reset cluster log retention
|
|
1521
|
+
* @param {string} orgName
|
|
1522
|
+
* @param {string} clusterName
|
|
1523
|
+
* @param {*} [options] Override http request option.
|
|
1524
|
+
* @throws {RequiredError}
|
|
1525
|
+
*/
|
|
1526
|
+
async deleteClusterLogRetention(orgName, clusterName, options) {
|
|
1527
|
+
var _a, _b, _c;
|
|
1528
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClusterLogRetention(orgName, clusterName, options);
|
|
1529
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1530
|
+
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;
|
|
1531
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1532
|
+
},
|
|
1399
1533
|
/**
|
|
1400
1534
|
* Explain a concrete SQL from a slow log using the cluster default datasource.
|
|
1401
1535
|
* @summary Explain cluster slow log SQL
|
|
@@ -1445,6 +1579,21 @@ const ClusterLogApiFp = function (configuration) {
|
|
|
1445
1579
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClusterLogApi.explainSlowLogTemplate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1446
1580
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1447
1581
|
},
|
|
1582
|
+
/**
|
|
1583
|
+
*
|
|
1584
|
+
* @summary Get cluster log retention
|
|
1585
|
+
* @param {string} orgName
|
|
1586
|
+
* @param {string} clusterName
|
|
1587
|
+
* @param {*} [options] Override http request option.
|
|
1588
|
+
* @throws {RequiredError}
|
|
1589
|
+
*/
|
|
1590
|
+
async getClusterLogRetention(orgName, clusterName, options) {
|
|
1591
|
+
var _a, _b, _c;
|
|
1592
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterLogRetention(orgName, clusterName, options);
|
|
1593
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1594
|
+
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;
|
|
1595
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1596
|
+
},
|
|
1448
1597
|
/**
|
|
1449
1598
|
* 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.
|
|
1450
1599
|
* @summary Get cluster slow log statistics
|
|
@@ -1512,6 +1661,22 @@ const ClusterLogApiFp = function (configuration) {
|
|
|
1512
1661
|
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;
|
|
1513
1662
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1514
1663
|
},
|
|
1664
|
+
/**
|
|
1665
|
+
* Replaces the current settings. Applies to the next cleanup.
|
|
1666
|
+
* @summary Set cluster log retention
|
|
1667
|
+
* @param {string} orgName
|
|
1668
|
+
* @param {string} clusterName
|
|
1669
|
+
* @param {LogRetention} logRetention
|
|
1670
|
+
* @param {*} [options] Override http request option.
|
|
1671
|
+
* @throws {RequiredError}
|
|
1672
|
+
*/
|
|
1673
|
+
async putClusterLogRetention(orgName, clusterName, logRetention, options) {
|
|
1674
|
+
var _a, _b, _c;
|
|
1675
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putClusterLogRetention(orgName, clusterName, logRetention, options);
|
|
1676
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1677
|
+
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;
|
|
1678
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1679
|
+
},
|
|
1515
1680
|
/**
|
|
1516
1681
|
* Query audit logs of a cluster
|
|
1517
1682
|
* @summary Query cluster audit logs
|
|
@@ -1766,6 +1931,16 @@ const ClusterLogApiFactory = function (configuration, basePath, axios) {
|
|
|
1766
1931
|
aggregateSlowLogs(requestParameters, options) {
|
|
1767
1932
|
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));
|
|
1768
1933
|
},
|
|
1934
|
+
/**
|
|
1935
|
+
* Removes cluster overrides and returns the retention inherited from the environment.
|
|
1936
|
+
* @summary Reset cluster log retention
|
|
1937
|
+
* @param {ClusterLogApiDeleteClusterLogRetentionRequest} requestParameters Request parameters.
|
|
1938
|
+
* @param {*} [options] Override http request option.
|
|
1939
|
+
* @throws {RequiredError}
|
|
1940
|
+
*/
|
|
1941
|
+
deleteClusterLogRetention(requestParameters, options) {
|
|
1942
|
+
return localVarFp.deleteClusterLogRetention(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
1943
|
+
},
|
|
1769
1944
|
/**
|
|
1770
1945
|
* Explain a concrete SQL from a slow log using the cluster default datasource.
|
|
1771
1946
|
* @summary Explain cluster slow log SQL
|
|
@@ -1786,6 +1961,16 @@ const ClusterLogApiFactory = function (configuration, basePath, axios) {
|
|
|
1786
1961
|
explainSlowLogTemplate(requestParameters, options) {
|
|
1787
1962
|
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));
|
|
1788
1963
|
},
|
|
1964
|
+
/**
|
|
1965
|
+
*
|
|
1966
|
+
* @summary Get cluster log retention
|
|
1967
|
+
* @param {ClusterLogApiGetClusterLogRetentionRequest} requestParameters Request parameters.
|
|
1968
|
+
* @param {*} [options] Override http request option.
|
|
1969
|
+
* @throws {RequiredError}
|
|
1970
|
+
*/
|
|
1971
|
+
getClusterLogRetention(requestParameters, options) {
|
|
1972
|
+
return localVarFp.getClusterLogRetention(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
1973
|
+
},
|
|
1789
1974
|
/**
|
|
1790
1975
|
* 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.
|
|
1791
1976
|
* @summary Get cluster slow log statistics
|
|
@@ -1806,6 +1991,16 @@ const ClusterLogApiFactory = function (configuration, basePath, axios) {
|
|
|
1806
1991
|
getSlowLogTemplate(requestParameters, options) {
|
|
1807
1992
|
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));
|
|
1808
1993
|
},
|
|
1994
|
+
/**
|
|
1995
|
+
* Replaces the current settings. Applies to the next cleanup.
|
|
1996
|
+
* @summary Set cluster log retention
|
|
1997
|
+
* @param {ClusterLogApiPutClusterLogRetentionRequest} requestParameters Request parameters.
|
|
1998
|
+
* @param {*} [options] Override http request option.
|
|
1999
|
+
* @throws {RequiredError}
|
|
2000
|
+
*/
|
|
2001
|
+
putClusterLogRetention(requestParameters, options) {
|
|
2002
|
+
return localVarFp.putClusterLogRetention(requestParameters.orgName, requestParameters.clusterName, requestParameters.logRetention, options).then((request) => request(axios, basePath));
|
|
2003
|
+
},
|
|
1809
2004
|
/**
|
|
1810
2005
|
* Query audit logs of a cluster
|
|
1811
2006
|
* @summary Query cluster audit logs
|
|
@@ -1907,6 +2102,17 @@ class ClusterLogApi extends base_1.BaseAPI {
|
|
|
1907
2102
|
aggregateSlowLogs(requestParameters, options) {
|
|
1908
2103
|
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));
|
|
1909
2104
|
}
|
|
2105
|
+
/**
|
|
2106
|
+
* Removes cluster overrides and returns the retention inherited from the environment.
|
|
2107
|
+
* @summary Reset cluster log retention
|
|
2108
|
+
* @param {ClusterLogApiDeleteClusterLogRetentionRequest} requestParameters Request parameters.
|
|
2109
|
+
* @param {*} [options] Override http request option.
|
|
2110
|
+
* @throws {RequiredError}
|
|
2111
|
+
* @memberof ClusterLogApi
|
|
2112
|
+
*/
|
|
2113
|
+
deleteClusterLogRetention(requestParameters, options) {
|
|
2114
|
+
return (0, exports.ClusterLogApiFp)(this.configuration).deleteClusterLogRetention(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
2115
|
+
}
|
|
1910
2116
|
/**
|
|
1911
2117
|
* Explain a concrete SQL from a slow log using the cluster default datasource.
|
|
1912
2118
|
* @summary Explain cluster slow log SQL
|
|
@@ -1929,6 +2135,17 @@ class ClusterLogApi extends base_1.BaseAPI {
|
|
|
1929
2135
|
explainSlowLogTemplate(requestParameters, options) {
|
|
1930
2136
|
return (0, exports.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));
|
|
1931
2137
|
}
|
|
2138
|
+
/**
|
|
2139
|
+
*
|
|
2140
|
+
* @summary Get cluster log retention
|
|
2141
|
+
* @param {ClusterLogApiGetClusterLogRetentionRequest} requestParameters Request parameters.
|
|
2142
|
+
* @param {*} [options] Override http request option.
|
|
2143
|
+
* @throws {RequiredError}
|
|
2144
|
+
* @memberof ClusterLogApi
|
|
2145
|
+
*/
|
|
2146
|
+
getClusterLogRetention(requestParameters, options) {
|
|
2147
|
+
return (0, exports.ClusterLogApiFp)(this.configuration).getClusterLogRetention(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
2148
|
+
}
|
|
1932
2149
|
/**
|
|
1933
2150
|
* 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.
|
|
1934
2151
|
* @summary Get cluster slow log statistics
|
|
@@ -1951,6 +2168,17 @@ class ClusterLogApi extends base_1.BaseAPI {
|
|
|
1951
2168
|
getSlowLogTemplate(requestParameters, options) {
|
|
1952
2169
|
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));
|
|
1953
2170
|
}
|
|
2171
|
+
/**
|
|
2172
|
+
* Replaces the current settings. Applies to the next cleanup.
|
|
2173
|
+
* @summary Set cluster log retention
|
|
2174
|
+
* @param {ClusterLogApiPutClusterLogRetentionRequest} requestParameters Request parameters.
|
|
2175
|
+
* @param {*} [options] Override http request option.
|
|
2176
|
+
* @throws {RequiredError}
|
|
2177
|
+
* @memberof ClusterLogApi
|
|
2178
|
+
*/
|
|
2179
|
+
putClusterLogRetention(requestParameters, options) {
|
|
2180
|
+
return (0, exports.ClusterLogApiFp)(this.configuration).putClusterLogRetention(requestParameters.orgName, requestParameters.clusterName, requestParameters.logRetention, options).then((request) => request(this.axios, this.basePath));
|
|
2181
|
+
}
|
|
1954
2182
|
/**
|
|
1955
2183
|
* Query audit logs of a cluster
|
|
1956
2184
|
* @summary Query cluster audit logs
|