kb-cloud-client-typescript 2.3.0-alpha.227 → 2.3.0-alpha.229
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/api.d.ts +1 -0
- package/dist/adminapi/api.d.ts.map +1 -1
- package/dist/adminapi/api.js +1 -0
- package/dist/adminapi/api.js.map +1 -1
- package/dist/adminapi/apis/cluster-loki-log-api.d.ts +885 -0
- package/dist/adminapi/apis/cluster-loki-log-api.d.ts.map +1 -0
- package/dist/adminapi/apis/cluster-loki-log-api.js +853 -0
- package/dist/adminapi/apis/cluster-loki-log-api.js.map +1 -0
- package/dist/adminapi/apis/shared-api.d.ts +848 -15
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +845 -56
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/environment.d.ts +7 -0
- package/dist/adminapi/models/environment.d.ts.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-backend-type.d.ts +22 -0
- package/dist/adminapi/models/log-backend-type.d.ts.map +1 -0
- package/dist/adminapi/models/log-backend-type.js +26 -0
- package/dist/adminapi/models/log-backend-type.js.map +1 -0
- package/dist/openapi/api.d.ts +1 -0
- package/dist/openapi/api.d.ts.map +1 -1
- package/dist/openapi/api.js +1 -0
- package/dist/openapi/api.js.map +1 -1
- package/dist/openapi/apis/cluster-loki-log-api.d.ts +885 -0
- package/dist/openapi/apis/cluster-loki-log-api.d.ts.map +1 -0
- package/dist/openapi/apis/cluster-loki-log-api.js +853 -0
- package/dist/openapi/apis/cluster-loki-log-api.js.map +1 -0
- package/dist/openapi/apis/shared-api.d.ts +844 -11
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +845 -56
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/environment.d.ts +7 -0
- package/dist/openapi/models/environment.d.ts.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-backend-type.d.ts +22 -0
- package/dist/openapi/models/log-backend-type.d.ts.map +1 -0
- package/dist/openapi/models/log-backend-type.js +26 -0
- package/dist/openapi/models/log-backend-type.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +2 -0
- package/src/adminapi/api.ts +1 -0
- package/src/adminapi/apis/cluster-loki-log-api.ts +1525 -0
- package/src/adminapi/apis/shared-api.ts +1620 -173
- package/src/adminapi/models/environment.ts +9 -0
- package/src/adminapi/models/index.ts +1 -0
- package/src/adminapi/models/log-backend-type.ts +31 -0
- package/src/adminapi.yaml +309 -0
- package/src/openapi/.openapi-generator/FILES +2 -0
- package/src/openapi/api.ts +1 -0
- package/src/openapi/apis/cluster-loki-log-api.ts +1525 -0
- package/src/openapi/apis/shared-api.ts +1620 -173
- package/src/openapi/models/environment.ts +9 -0
- package/src/openapi/models/index.ts +1 -0
- package/src/openapi/models/log-backend-type.ts +31 -0
- package/src/openapi.yaml +309 -0
|
@@ -3330,6 +3330,82 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
3330
3330
|
options: localVarRequestOptions,
|
|
3331
3331
|
};
|
|
3332
3332
|
},
|
|
3333
|
+
/**
|
|
3334
|
+
* Export logs through the Loki compatibility API.
|
|
3335
|
+
* @summary Export Loki logs
|
|
3336
|
+
* @param {string} orgName
|
|
3337
|
+
* @param {string} clusterName
|
|
3338
|
+
* @param {string} logType Log type: runninglog, errorlog, slow, auditlog
|
|
3339
|
+
* @param {number} [startTime] Start time in epoch nanoseconds. If omitted, exports from the earliest available log
|
|
3340
|
+
* @param {number} [endTime] End time in epoch nanoseconds. If omitted, exports up to the latest available log
|
|
3341
|
+
* @param {string} [format] Export format: csv, raw, jsonl
|
|
3342
|
+
* @param {string} [query]
|
|
3343
|
+
* @param {string} [filename]
|
|
3344
|
+
* @param {string} [componentName]
|
|
3345
|
+
* @param {string} [instanceName]
|
|
3346
|
+
* @param {number} [maxLines] Maximum number of lines to export. Defaults to 100000 if omitted
|
|
3347
|
+
* @param {*} [options] Override http request option.
|
|
3348
|
+
* @throws {RequiredError}
|
|
3349
|
+
*/
|
|
3350
|
+
exportLokiClusterLogs: async (orgName, clusterName, logType, startTime, endTime, format, query, filename, componentName, instanceName, maxLines, options = {}) => {
|
|
3351
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
3352
|
+
(0, common_1.assertParamExists)('exportLokiClusterLogs', 'orgName', orgName);
|
|
3353
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
3354
|
+
(0, common_1.assertParamExists)('exportLokiClusterLogs', 'clusterName', clusterName);
|
|
3355
|
+
// verify required parameter 'logType' is not null or undefined
|
|
3356
|
+
(0, common_1.assertParamExists)('exportLokiClusterLogs', 'logType', logType);
|
|
3357
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/export`
|
|
3358
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3359
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
3360
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3361
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3362
|
+
let baseOptions;
|
|
3363
|
+
if (configuration) {
|
|
3364
|
+
baseOptions = configuration.baseOptions;
|
|
3365
|
+
}
|
|
3366
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3367
|
+
const localVarHeaderParameter = {};
|
|
3368
|
+
const localVarQueryParameter = {};
|
|
3369
|
+
// authentication BearerToken required
|
|
3370
|
+
// http bearer authentication required
|
|
3371
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3372
|
+
// authentication DigestAuth required
|
|
3373
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
3374
|
+
if (logType !== undefined) {
|
|
3375
|
+
localVarQueryParameter['logType'] = logType;
|
|
3376
|
+
}
|
|
3377
|
+
if (startTime !== undefined) {
|
|
3378
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
3379
|
+
}
|
|
3380
|
+
if (endTime !== undefined) {
|
|
3381
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
3382
|
+
}
|
|
3383
|
+
if (format !== undefined) {
|
|
3384
|
+
localVarQueryParameter['format'] = format;
|
|
3385
|
+
}
|
|
3386
|
+
if (query !== undefined) {
|
|
3387
|
+
localVarQueryParameter['query'] = query;
|
|
3388
|
+
}
|
|
3389
|
+
if (filename !== undefined) {
|
|
3390
|
+
localVarQueryParameter['filename'] = filename;
|
|
3391
|
+
}
|
|
3392
|
+
if (componentName !== undefined) {
|
|
3393
|
+
localVarQueryParameter['componentName'] = componentName;
|
|
3394
|
+
}
|
|
3395
|
+
if (instanceName !== undefined) {
|
|
3396
|
+
localVarQueryParameter['instanceName'] = instanceName;
|
|
3397
|
+
}
|
|
3398
|
+
if (maxLines !== undefined) {
|
|
3399
|
+
localVarQueryParameter['maxLines'] = maxLines;
|
|
3400
|
+
}
|
|
3401
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3402
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3403
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3404
|
+
return {
|
|
3405
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3406
|
+
options: localVarRequestOptions,
|
|
3407
|
+
};
|
|
3408
|
+
},
|
|
3333
3409
|
/**
|
|
3334
3410
|
*
|
|
3335
3411
|
* @summary Export parameter template from cluster
|
|
@@ -5017,6 +5093,64 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
5017
5093
|
options: localVarRequestOptions,
|
|
5018
5094
|
};
|
|
5019
5095
|
},
|
|
5096
|
+
/**
|
|
5097
|
+
* Query slow-log statistics through the Loki compatibility API.
|
|
5098
|
+
* @summary Query Loki slow-log statistics
|
|
5099
|
+
* @param {string} orgName
|
|
5100
|
+
* @param {string} clusterName
|
|
5101
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
5102
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
5103
|
+
* @param {string} [componentName]
|
|
5104
|
+
* @param {string} [instanceName]
|
|
5105
|
+
* @param {*} [options] Override http request option.
|
|
5106
|
+
* @throws {RequiredError}
|
|
5107
|
+
*/
|
|
5108
|
+
getLokiSlowLogStats: async (orgName, clusterName, startTime, endTime, componentName, instanceName, options = {}) => {
|
|
5109
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
5110
|
+
(0, common_1.assertParamExists)('getLokiSlowLogStats', 'orgName', orgName);
|
|
5111
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
5112
|
+
(0, common_1.assertParamExists)('getLokiSlowLogStats', 'clusterName', clusterName);
|
|
5113
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
5114
|
+
(0, common_1.assertParamExists)('getLokiSlowLogStats', 'startTime', startTime);
|
|
5115
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
5116
|
+
(0, common_1.assertParamExists)('getLokiSlowLogStats', 'endTime', endTime);
|
|
5117
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/slow/stats`
|
|
5118
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
5119
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
5120
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5121
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5122
|
+
let baseOptions;
|
|
5123
|
+
if (configuration) {
|
|
5124
|
+
baseOptions = configuration.baseOptions;
|
|
5125
|
+
}
|
|
5126
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5127
|
+
const localVarHeaderParameter = {};
|
|
5128
|
+
const localVarQueryParameter = {};
|
|
5129
|
+
// authentication BearerToken required
|
|
5130
|
+
// http bearer authentication required
|
|
5131
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5132
|
+
// authentication DigestAuth required
|
|
5133
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5134
|
+
if (startTime !== undefined) {
|
|
5135
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
5136
|
+
}
|
|
5137
|
+
if (endTime !== undefined) {
|
|
5138
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
5139
|
+
}
|
|
5140
|
+
if (componentName !== undefined) {
|
|
5141
|
+
localVarQueryParameter['componentName'] = componentName;
|
|
5142
|
+
}
|
|
5143
|
+
if (instanceName !== undefined) {
|
|
5144
|
+
localVarQueryParameter['instanceName'] = instanceName;
|
|
5145
|
+
}
|
|
5146
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5147
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5148
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5149
|
+
return {
|
|
5150
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5151
|
+
options: localVarRequestOptions,
|
|
5152
|
+
};
|
|
5153
|
+
},
|
|
5020
5154
|
/**
|
|
5021
5155
|
* Get a Milvus native role and its privilege grants.
|
|
5022
5156
|
* @summary Get Milvus role
|
|
@@ -9743,20 +9877,416 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
9743
9877
|
* @param {*} [options] Override http request option.
|
|
9744
9878
|
* @throws {RequiredError}
|
|
9745
9879
|
*/
|
|
9746
|
-
queryLogHits: async (orgName, clusterName, startTime, endTime, step, logType, componentName, instanceName, query, minExecutionTime, maxExecutionTime, minLockTime, maxLockTime, minRowsExamined, maxRowsExamined, minRowsSent, maxRowsSent, dbName, userName, clientIp, appName, templateId, unclassifiedOnly, options = {}) => {
|
|
9880
|
+
queryLogHits: async (orgName, clusterName, startTime, endTime, step, logType, componentName, instanceName, query, minExecutionTime, maxExecutionTime, minLockTime, maxLockTime, minRowsExamined, maxRowsExamined, minRowsSent, maxRowsSent, dbName, userName, clientIp, appName, templateId, unclassifiedOnly, options = {}) => {
|
|
9881
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
9882
|
+
(0, common_1.assertParamExists)('queryLogHits', 'orgName', orgName);
|
|
9883
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
9884
|
+
(0, common_1.assertParamExists)('queryLogHits', 'clusterName', clusterName);
|
|
9885
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
9886
|
+
(0, common_1.assertParamExists)('queryLogHits', 'startTime', startTime);
|
|
9887
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
9888
|
+
(0, common_1.assertParamExists)('queryLogHits', 'endTime', endTime);
|
|
9889
|
+
// verify required parameter 'step' is not null or undefined
|
|
9890
|
+
(0, common_1.assertParamExists)('queryLogHits', 'step', step);
|
|
9891
|
+
// verify required parameter 'logType' is not null or undefined
|
|
9892
|
+
(0, common_1.assertParamExists)('queryLogHits', 'logType', logType);
|
|
9893
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/hits`
|
|
9894
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
9895
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
9896
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9897
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9898
|
+
let baseOptions;
|
|
9899
|
+
if (configuration) {
|
|
9900
|
+
baseOptions = configuration.baseOptions;
|
|
9901
|
+
}
|
|
9902
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
9903
|
+
const localVarHeaderParameter = {};
|
|
9904
|
+
const localVarQueryParameter = {};
|
|
9905
|
+
// authentication BearerToken required
|
|
9906
|
+
// http bearer authentication required
|
|
9907
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
9908
|
+
// authentication DigestAuth required
|
|
9909
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
9910
|
+
if (startTime !== undefined) {
|
|
9911
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
9912
|
+
}
|
|
9913
|
+
if (endTime !== undefined) {
|
|
9914
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
9915
|
+
}
|
|
9916
|
+
if (step !== undefined) {
|
|
9917
|
+
localVarQueryParameter['step'] = step;
|
|
9918
|
+
}
|
|
9919
|
+
if (logType !== undefined) {
|
|
9920
|
+
localVarQueryParameter['logType'] = logType;
|
|
9921
|
+
}
|
|
9922
|
+
if (componentName !== undefined) {
|
|
9923
|
+
localVarQueryParameter['componentName'] = componentName;
|
|
9924
|
+
}
|
|
9925
|
+
if (instanceName !== undefined) {
|
|
9926
|
+
localVarQueryParameter['instanceName'] = instanceName;
|
|
9927
|
+
}
|
|
9928
|
+
if (query !== undefined) {
|
|
9929
|
+
localVarQueryParameter['query'] = query;
|
|
9930
|
+
}
|
|
9931
|
+
if (minExecutionTime !== undefined) {
|
|
9932
|
+
localVarQueryParameter['minExecutionTime'] = minExecutionTime;
|
|
9933
|
+
}
|
|
9934
|
+
if (maxExecutionTime !== undefined) {
|
|
9935
|
+
localVarQueryParameter['maxExecutionTime'] = maxExecutionTime;
|
|
9936
|
+
}
|
|
9937
|
+
if (minLockTime !== undefined) {
|
|
9938
|
+
localVarQueryParameter['minLockTime'] = minLockTime;
|
|
9939
|
+
}
|
|
9940
|
+
if (maxLockTime !== undefined) {
|
|
9941
|
+
localVarQueryParameter['maxLockTime'] = maxLockTime;
|
|
9942
|
+
}
|
|
9943
|
+
if (minRowsExamined !== undefined) {
|
|
9944
|
+
localVarQueryParameter['minRowsExamined'] = minRowsExamined;
|
|
9945
|
+
}
|
|
9946
|
+
if (maxRowsExamined !== undefined) {
|
|
9947
|
+
localVarQueryParameter['maxRowsExamined'] = maxRowsExamined;
|
|
9948
|
+
}
|
|
9949
|
+
if (minRowsSent !== undefined) {
|
|
9950
|
+
localVarQueryParameter['minRowsSent'] = minRowsSent;
|
|
9951
|
+
}
|
|
9952
|
+
if (maxRowsSent !== undefined) {
|
|
9953
|
+
localVarQueryParameter['maxRowsSent'] = maxRowsSent;
|
|
9954
|
+
}
|
|
9955
|
+
if (dbName !== undefined) {
|
|
9956
|
+
localVarQueryParameter['dbName'] = dbName;
|
|
9957
|
+
}
|
|
9958
|
+
if (userName !== undefined) {
|
|
9959
|
+
localVarQueryParameter['userName'] = userName;
|
|
9960
|
+
}
|
|
9961
|
+
if (clientIp !== undefined) {
|
|
9962
|
+
localVarQueryParameter['clientIp'] = clientIp;
|
|
9963
|
+
}
|
|
9964
|
+
if (appName !== undefined) {
|
|
9965
|
+
localVarQueryParameter['appName'] = appName;
|
|
9966
|
+
}
|
|
9967
|
+
if (templateId !== undefined) {
|
|
9968
|
+
localVarQueryParameter['templateId'] = templateId;
|
|
9969
|
+
}
|
|
9970
|
+
if (unclassifiedOnly !== undefined) {
|
|
9971
|
+
localVarQueryParameter['unclassifiedOnly'] = unclassifiedOnly;
|
|
9972
|
+
}
|
|
9973
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9974
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9975
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9976
|
+
return {
|
|
9977
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9978
|
+
options: localVarRequestOptions,
|
|
9979
|
+
};
|
|
9980
|
+
},
|
|
9981
|
+
/**
|
|
9982
|
+
* Query audit logs through the Loki compatibility API.
|
|
9983
|
+
* @summary Query Loki audit logs
|
|
9984
|
+
* @param {string} orgName
|
|
9985
|
+
* @param {string} clusterName
|
|
9986
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
9987
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
9988
|
+
* @param {string} [limit]
|
|
9989
|
+
* @param {string} [componentName]
|
|
9990
|
+
* @param {string} [instanceName]
|
|
9991
|
+
* @param {SortType} [sortType]
|
|
9992
|
+
* @param {*} [options] Override http request option.
|
|
9993
|
+
* @throws {RequiredError}
|
|
9994
|
+
*/
|
|
9995
|
+
queryLokiAuditLogs: async (orgName, clusterName, startTime, endTime, limit, componentName, instanceName, sortType, options = {}) => {
|
|
9996
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
9997
|
+
(0, common_1.assertParamExists)('queryLokiAuditLogs', 'orgName', orgName);
|
|
9998
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
9999
|
+
(0, common_1.assertParamExists)('queryLokiAuditLogs', 'clusterName', clusterName);
|
|
10000
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
10001
|
+
(0, common_1.assertParamExists)('queryLokiAuditLogs', 'startTime', startTime);
|
|
10002
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
10003
|
+
(0, common_1.assertParamExists)('queryLokiAuditLogs', 'endTime', endTime);
|
|
10004
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/audit`
|
|
10005
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
10006
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
10007
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10008
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10009
|
+
let baseOptions;
|
|
10010
|
+
if (configuration) {
|
|
10011
|
+
baseOptions = configuration.baseOptions;
|
|
10012
|
+
}
|
|
10013
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10014
|
+
const localVarHeaderParameter = {};
|
|
10015
|
+
const localVarQueryParameter = {};
|
|
10016
|
+
// authentication BearerToken required
|
|
10017
|
+
// http bearer authentication required
|
|
10018
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10019
|
+
// authentication DigestAuth required
|
|
10020
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
10021
|
+
if (startTime !== undefined) {
|
|
10022
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
10023
|
+
}
|
|
10024
|
+
if (endTime !== undefined) {
|
|
10025
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
10026
|
+
}
|
|
10027
|
+
if (limit !== undefined) {
|
|
10028
|
+
localVarQueryParameter['limit'] = limit;
|
|
10029
|
+
}
|
|
10030
|
+
if (componentName !== undefined) {
|
|
10031
|
+
localVarQueryParameter['componentName'] = componentName;
|
|
10032
|
+
}
|
|
10033
|
+
if (instanceName !== undefined) {
|
|
10034
|
+
localVarQueryParameter['instanceName'] = instanceName;
|
|
10035
|
+
}
|
|
10036
|
+
if (sortType !== undefined) {
|
|
10037
|
+
localVarQueryParameter['sortType'] = sortType;
|
|
10038
|
+
}
|
|
10039
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10040
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10041
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10042
|
+
return {
|
|
10043
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10044
|
+
options: localVarRequestOptions,
|
|
10045
|
+
};
|
|
10046
|
+
},
|
|
10047
|
+
/**
|
|
10048
|
+
* Query error logs through the Loki compatibility API.
|
|
10049
|
+
* @summary Query Loki error logs
|
|
10050
|
+
* @param {string} orgName
|
|
10051
|
+
* @param {string} clusterName
|
|
10052
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
10053
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
10054
|
+
* @param {string} [componentName]
|
|
10055
|
+
* @param {string} [instanceName]
|
|
10056
|
+
* @param {string} [filename]
|
|
10057
|
+
* @param {string} [query]
|
|
10058
|
+
* @param {string} [limit]
|
|
10059
|
+
* @param {SortType} [sortType]
|
|
10060
|
+
* @param {*} [options] Override http request option.
|
|
10061
|
+
* @throws {RequiredError}
|
|
10062
|
+
*/
|
|
10063
|
+
queryLokiErrorLogs: async (orgName, clusterName, startTime, endTime, componentName, instanceName, filename, query, limit, sortType, options = {}) => {
|
|
10064
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
10065
|
+
(0, common_1.assertParamExists)('queryLokiErrorLogs', 'orgName', orgName);
|
|
10066
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
10067
|
+
(0, common_1.assertParamExists)('queryLokiErrorLogs', 'clusterName', clusterName);
|
|
10068
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
10069
|
+
(0, common_1.assertParamExists)('queryLokiErrorLogs', 'startTime', startTime);
|
|
10070
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
10071
|
+
(0, common_1.assertParamExists)('queryLokiErrorLogs', 'endTime', endTime);
|
|
10072
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/error`
|
|
10073
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
10074
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
10075
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10076
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10077
|
+
let baseOptions;
|
|
10078
|
+
if (configuration) {
|
|
10079
|
+
baseOptions = configuration.baseOptions;
|
|
10080
|
+
}
|
|
10081
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10082
|
+
const localVarHeaderParameter = {};
|
|
10083
|
+
const localVarQueryParameter = {};
|
|
10084
|
+
// authentication BearerToken required
|
|
10085
|
+
// http bearer authentication required
|
|
10086
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10087
|
+
// authentication DigestAuth required
|
|
10088
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
10089
|
+
if (componentName !== undefined) {
|
|
10090
|
+
localVarQueryParameter['componentName'] = componentName;
|
|
10091
|
+
}
|
|
10092
|
+
if (instanceName !== undefined) {
|
|
10093
|
+
localVarQueryParameter['instanceName'] = instanceName;
|
|
10094
|
+
}
|
|
10095
|
+
if (filename !== undefined) {
|
|
10096
|
+
localVarQueryParameter['filename'] = filename;
|
|
10097
|
+
}
|
|
10098
|
+
if (startTime !== undefined) {
|
|
10099
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
10100
|
+
}
|
|
10101
|
+
if (endTime !== undefined) {
|
|
10102
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
10103
|
+
}
|
|
10104
|
+
if (query !== undefined) {
|
|
10105
|
+
localVarQueryParameter['query'] = query;
|
|
10106
|
+
}
|
|
10107
|
+
if (limit !== undefined) {
|
|
10108
|
+
localVarQueryParameter['limit'] = limit;
|
|
10109
|
+
}
|
|
10110
|
+
if (sortType !== undefined) {
|
|
10111
|
+
localVarQueryParameter['sortType'] = sortType;
|
|
10112
|
+
}
|
|
10113
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10114
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10115
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10116
|
+
return {
|
|
10117
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10118
|
+
options: localVarRequestOptions,
|
|
10119
|
+
};
|
|
10120
|
+
},
|
|
10121
|
+
/**
|
|
10122
|
+
* Query pod logs through the Loki compatibility API.
|
|
10123
|
+
* @summary Query Loki pod logs
|
|
10124
|
+
* @param {string} orgName
|
|
10125
|
+
* @param {string} clusterName
|
|
10126
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
10127
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
10128
|
+
* @param {string} [componentName]
|
|
10129
|
+
* @param {string} [instanceName]
|
|
10130
|
+
* @param {string} [filename]
|
|
10131
|
+
* @param {string} [limit]
|
|
10132
|
+
* @param {SortType} [sortType]
|
|
10133
|
+
* @param {*} [options] Override http request option.
|
|
10134
|
+
* @throws {RequiredError}
|
|
10135
|
+
*/
|
|
10136
|
+
queryLokiPodLogs: async (orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, sortType, options = {}) => {
|
|
10137
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
10138
|
+
(0, common_1.assertParamExists)('queryLokiPodLogs', 'orgName', orgName);
|
|
10139
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
10140
|
+
(0, common_1.assertParamExists)('queryLokiPodLogs', 'clusterName', clusterName);
|
|
10141
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
10142
|
+
(0, common_1.assertParamExists)('queryLokiPodLogs', 'startTime', startTime);
|
|
10143
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
10144
|
+
(0, common_1.assertParamExists)('queryLokiPodLogs', 'endTime', endTime);
|
|
10145
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/pod`
|
|
10146
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
10147
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
10148
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10149
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10150
|
+
let baseOptions;
|
|
10151
|
+
if (configuration) {
|
|
10152
|
+
baseOptions = configuration.baseOptions;
|
|
10153
|
+
}
|
|
10154
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10155
|
+
const localVarHeaderParameter = {};
|
|
10156
|
+
const localVarQueryParameter = {};
|
|
10157
|
+
// authentication BearerToken required
|
|
10158
|
+
// http bearer authentication required
|
|
10159
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10160
|
+
// authentication DigestAuth required
|
|
10161
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
10162
|
+
if (componentName !== undefined) {
|
|
10163
|
+
localVarQueryParameter['componentName'] = componentName;
|
|
10164
|
+
}
|
|
10165
|
+
if (instanceName !== undefined) {
|
|
10166
|
+
localVarQueryParameter['instanceName'] = instanceName;
|
|
10167
|
+
}
|
|
10168
|
+
if (filename !== undefined) {
|
|
10169
|
+
localVarQueryParameter['filename'] = filename;
|
|
10170
|
+
}
|
|
10171
|
+
if (startTime !== undefined) {
|
|
10172
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
10173
|
+
}
|
|
10174
|
+
if (endTime !== undefined) {
|
|
10175
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
10176
|
+
}
|
|
10177
|
+
if (limit !== undefined) {
|
|
10178
|
+
localVarQueryParameter['limit'] = limit;
|
|
10179
|
+
}
|
|
10180
|
+
if (sortType !== undefined) {
|
|
10181
|
+
localVarQueryParameter['sortType'] = sortType;
|
|
10182
|
+
}
|
|
10183
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10184
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10185
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10186
|
+
return {
|
|
10187
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10188
|
+
options: localVarRequestOptions,
|
|
10189
|
+
};
|
|
10190
|
+
},
|
|
10191
|
+
/**
|
|
10192
|
+
* Query running logs through the Loki compatibility API.
|
|
10193
|
+
* @summary Query Loki running logs
|
|
10194
|
+
* @param {string} orgName
|
|
10195
|
+
* @param {string} clusterName
|
|
10196
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
10197
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
10198
|
+
* @param {string} [componentName]
|
|
10199
|
+
* @param {string} [instanceName]
|
|
10200
|
+
* @param {string} [filename]
|
|
10201
|
+
* @param {string} [limit]
|
|
10202
|
+
* @param {string} [query]
|
|
10203
|
+
* @param {SortType} [sortType]
|
|
10204
|
+
* @param {*} [options] Override http request option.
|
|
10205
|
+
* @throws {RequiredError}
|
|
10206
|
+
*/
|
|
10207
|
+
queryLokiRunningLogs: async (orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, query, sortType, options = {}) => {
|
|
10208
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
10209
|
+
(0, common_1.assertParamExists)('queryLokiRunningLogs', 'orgName', orgName);
|
|
10210
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
10211
|
+
(0, common_1.assertParamExists)('queryLokiRunningLogs', 'clusterName', clusterName);
|
|
10212
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
10213
|
+
(0, common_1.assertParamExists)('queryLokiRunningLogs', 'startTime', startTime);
|
|
10214
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
10215
|
+
(0, common_1.assertParamExists)('queryLokiRunningLogs', 'endTime', endTime);
|
|
10216
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/running`
|
|
10217
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
10218
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
10219
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10220
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10221
|
+
let baseOptions;
|
|
10222
|
+
if (configuration) {
|
|
10223
|
+
baseOptions = configuration.baseOptions;
|
|
10224
|
+
}
|
|
10225
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10226
|
+
const localVarHeaderParameter = {};
|
|
10227
|
+
const localVarQueryParameter = {};
|
|
10228
|
+
// authentication BearerToken required
|
|
10229
|
+
// http bearer authentication required
|
|
10230
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10231
|
+
// authentication DigestAuth required
|
|
10232
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
10233
|
+
if (componentName !== undefined) {
|
|
10234
|
+
localVarQueryParameter['componentName'] = componentName;
|
|
10235
|
+
}
|
|
10236
|
+
if (instanceName !== undefined) {
|
|
10237
|
+
localVarQueryParameter['instanceName'] = instanceName;
|
|
10238
|
+
}
|
|
10239
|
+
if (filename !== undefined) {
|
|
10240
|
+
localVarQueryParameter['filename'] = filename;
|
|
10241
|
+
}
|
|
10242
|
+
if (startTime !== undefined) {
|
|
10243
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
10244
|
+
}
|
|
10245
|
+
if (endTime !== undefined) {
|
|
10246
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
10247
|
+
}
|
|
10248
|
+
if (limit !== undefined) {
|
|
10249
|
+
localVarQueryParameter['limit'] = limit;
|
|
10250
|
+
}
|
|
10251
|
+
if (query !== undefined) {
|
|
10252
|
+
localVarQueryParameter['query'] = query;
|
|
10253
|
+
}
|
|
10254
|
+
if (sortType !== undefined) {
|
|
10255
|
+
localVarQueryParameter['sortType'] = sortType;
|
|
10256
|
+
}
|
|
10257
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10258
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10259
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10260
|
+
return {
|
|
10261
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10262
|
+
options: localVarRequestOptions,
|
|
10263
|
+
};
|
|
10264
|
+
},
|
|
10265
|
+
/**
|
|
10266
|
+
* Query slow logs through the Loki compatibility API.
|
|
10267
|
+
* @summary Query Loki slow logs
|
|
10268
|
+
* @param {string} orgName
|
|
10269
|
+
* @param {string} clusterName
|
|
10270
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
10271
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
10272
|
+
* @param {string} [componentName]
|
|
10273
|
+
* @param {string} [instanceName]
|
|
10274
|
+
* @param {string} [query]
|
|
10275
|
+
* @param {string} [limit]
|
|
10276
|
+
* @param {SortType} [sortType]
|
|
10277
|
+
* @param {*} [options] Override http request option.
|
|
10278
|
+
* @throws {RequiredError}
|
|
10279
|
+
*/
|
|
10280
|
+
queryLokiSlowLogs: async (orgName, clusterName, startTime, endTime, componentName, instanceName, query, limit, sortType, options = {}) => {
|
|
9747
10281
|
// verify required parameter 'orgName' is not null or undefined
|
|
9748
|
-
(0, common_1.assertParamExists)('
|
|
10282
|
+
(0, common_1.assertParamExists)('queryLokiSlowLogs', 'orgName', orgName);
|
|
9749
10283
|
// verify required parameter 'clusterName' is not null or undefined
|
|
9750
|
-
(0, common_1.assertParamExists)('
|
|
10284
|
+
(0, common_1.assertParamExists)('queryLokiSlowLogs', 'clusterName', clusterName);
|
|
9751
10285
|
// verify required parameter 'startTime' is not null or undefined
|
|
9752
|
-
(0, common_1.assertParamExists)('
|
|
10286
|
+
(0, common_1.assertParamExists)('queryLokiSlowLogs', 'startTime', startTime);
|
|
9753
10287
|
// verify required parameter 'endTime' is not null or undefined
|
|
9754
|
-
(0, common_1.assertParamExists)('
|
|
9755
|
-
|
|
9756
|
-
(0, common_1.assertParamExists)('queryLogHits', 'step', step);
|
|
9757
|
-
// verify required parameter 'logType' is not null or undefined
|
|
9758
|
-
(0, common_1.assertParamExists)('queryLogHits', 'logType', logType);
|
|
9759
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/hits`
|
|
10288
|
+
(0, common_1.assertParamExists)('queryLokiSlowLogs', 'endTime', endTime);
|
|
10289
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/slow`
|
|
9760
10290
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
9761
10291
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
9762
10292
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -9779,12 +10309,6 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
9779
10309
|
if (endTime !== undefined) {
|
|
9780
10310
|
localVarQueryParameter['endTime'] = endTime;
|
|
9781
10311
|
}
|
|
9782
|
-
if (step !== undefined) {
|
|
9783
|
-
localVarQueryParameter['step'] = step;
|
|
9784
|
-
}
|
|
9785
|
-
if (logType !== undefined) {
|
|
9786
|
-
localVarQueryParameter['logType'] = logType;
|
|
9787
|
-
}
|
|
9788
10312
|
if (componentName !== undefined) {
|
|
9789
10313
|
localVarQueryParameter['componentName'] = componentName;
|
|
9790
10314
|
}
|
|
@@ -9794,47 +10318,11 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
9794
10318
|
if (query !== undefined) {
|
|
9795
10319
|
localVarQueryParameter['query'] = query;
|
|
9796
10320
|
}
|
|
9797
|
-
if (
|
|
9798
|
-
localVarQueryParameter['
|
|
9799
|
-
}
|
|
9800
|
-
if (maxExecutionTime !== undefined) {
|
|
9801
|
-
localVarQueryParameter['maxExecutionTime'] = maxExecutionTime;
|
|
9802
|
-
}
|
|
9803
|
-
if (minLockTime !== undefined) {
|
|
9804
|
-
localVarQueryParameter['minLockTime'] = minLockTime;
|
|
9805
|
-
}
|
|
9806
|
-
if (maxLockTime !== undefined) {
|
|
9807
|
-
localVarQueryParameter['maxLockTime'] = maxLockTime;
|
|
9808
|
-
}
|
|
9809
|
-
if (minRowsExamined !== undefined) {
|
|
9810
|
-
localVarQueryParameter['minRowsExamined'] = minRowsExamined;
|
|
9811
|
-
}
|
|
9812
|
-
if (maxRowsExamined !== undefined) {
|
|
9813
|
-
localVarQueryParameter['maxRowsExamined'] = maxRowsExamined;
|
|
9814
|
-
}
|
|
9815
|
-
if (minRowsSent !== undefined) {
|
|
9816
|
-
localVarQueryParameter['minRowsSent'] = minRowsSent;
|
|
9817
|
-
}
|
|
9818
|
-
if (maxRowsSent !== undefined) {
|
|
9819
|
-
localVarQueryParameter['maxRowsSent'] = maxRowsSent;
|
|
9820
|
-
}
|
|
9821
|
-
if (dbName !== undefined) {
|
|
9822
|
-
localVarQueryParameter['dbName'] = dbName;
|
|
9823
|
-
}
|
|
9824
|
-
if (userName !== undefined) {
|
|
9825
|
-
localVarQueryParameter['userName'] = userName;
|
|
9826
|
-
}
|
|
9827
|
-
if (clientIp !== undefined) {
|
|
9828
|
-
localVarQueryParameter['clientIp'] = clientIp;
|
|
9829
|
-
}
|
|
9830
|
-
if (appName !== undefined) {
|
|
9831
|
-
localVarQueryParameter['appName'] = appName;
|
|
9832
|
-
}
|
|
9833
|
-
if (templateId !== undefined) {
|
|
9834
|
-
localVarQueryParameter['templateId'] = templateId;
|
|
10321
|
+
if (limit !== undefined) {
|
|
10322
|
+
localVarQueryParameter['limit'] = limit;
|
|
9835
10323
|
}
|
|
9836
|
-
if (
|
|
9837
|
-
localVarQueryParameter['
|
|
10324
|
+
if (sortType !== undefined) {
|
|
10325
|
+
localVarQueryParameter['sortType'] = sortType;
|
|
9838
10326
|
}
|
|
9839
10327
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9840
10328
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -13919,6 +14407,30 @@ const SharedApiFp = function (configuration) {
|
|
|
13919
14407
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.explainSlowLogTemplate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13920
14408
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13921
14409
|
},
|
|
14410
|
+
/**
|
|
14411
|
+
* Export logs through the Loki compatibility API.
|
|
14412
|
+
* @summary Export Loki logs
|
|
14413
|
+
* @param {string} orgName
|
|
14414
|
+
* @param {string} clusterName
|
|
14415
|
+
* @param {string} logType Log type: runninglog, errorlog, slow, auditlog
|
|
14416
|
+
* @param {number} [startTime] Start time in epoch nanoseconds. If omitted, exports from the earliest available log
|
|
14417
|
+
* @param {number} [endTime] End time in epoch nanoseconds. If omitted, exports up to the latest available log
|
|
14418
|
+
* @param {string} [format] Export format: csv, raw, jsonl
|
|
14419
|
+
* @param {string} [query]
|
|
14420
|
+
* @param {string} [filename]
|
|
14421
|
+
* @param {string} [componentName]
|
|
14422
|
+
* @param {string} [instanceName]
|
|
14423
|
+
* @param {number} [maxLines] Maximum number of lines to export. Defaults to 100000 if omitted
|
|
14424
|
+
* @param {*} [options] Override http request option.
|
|
14425
|
+
* @throws {RequiredError}
|
|
14426
|
+
*/
|
|
14427
|
+
async exportLokiClusterLogs(orgName, clusterName, logType, startTime, endTime, format, query, filename, componentName, instanceName, maxLines, options) {
|
|
14428
|
+
var _a, _b, _c;
|
|
14429
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.exportLokiClusterLogs(orgName, clusterName, logType, startTime, endTime, format, query, filename, componentName, instanceName, maxLines, options);
|
|
14430
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14431
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.exportLokiClusterLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14432
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14433
|
+
},
|
|
13922
14434
|
/**
|
|
13923
14435
|
*
|
|
13924
14436
|
* @summary Export parameter template from cluster
|
|
@@ -14554,6 +15066,25 @@ const SharedApiFp = function (configuration) {
|
|
|
14554
15066
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getKafkaTopics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14555
15067
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14556
15068
|
},
|
|
15069
|
+
/**
|
|
15070
|
+
* Query slow-log statistics through the Loki compatibility API.
|
|
15071
|
+
* @summary Query Loki slow-log statistics
|
|
15072
|
+
* @param {string} orgName
|
|
15073
|
+
* @param {string} clusterName
|
|
15074
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
15075
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
15076
|
+
* @param {string} [componentName]
|
|
15077
|
+
* @param {string} [instanceName]
|
|
15078
|
+
* @param {*} [options] Override http request option.
|
|
15079
|
+
* @throws {RequiredError}
|
|
15080
|
+
*/
|
|
15081
|
+
async getLokiSlowLogStats(orgName, clusterName, startTime, endTime, componentName, instanceName, options) {
|
|
15082
|
+
var _a, _b, _c;
|
|
15083
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLokiSlowLogStats(orgName, clusterName, startTime, endTime, componentName, instanceName, options);
|
|
15084
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15085
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getLokiSlowLogStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15086
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15087
|
+
},
|
|
14557
15088
|
/**
|
|
14558
15089
|
* Get a Milvus native role and its privilege grants.
|
|
14559
15090
|
* @summary Get Milvus role
|
|
@@ -16330,6 +16861,117 @@ const SharedApiFp = function (configuration) {
|
|
|
16330
16861
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.queryLogHits']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16331
16862
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16332
16863
|
},
|
|
16864
|
+
/**
|
|
16865
|
+
* Query audit logs through the Loki compatibility API.
|
|
16866
|
+
* @summary Query Loki audit logs
|
|
16867
|
+
* @param {string} orgName
|
|
16868
|
+
* @param {string} clusterName
|
|
16869
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
16870
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
16871
|
+
* @param {string} [limit]
|
|
16872
|
+
* @param {string} [componentName]
|
|
16873
|
+
* @param {string} [instanceName]
|
|
16874
|
+
* @param {SortType} [sortType]
|
|
16875
|
+
* @param {*} [options] Override http request option.
|
|
16876
|
+
* @throws {RequiredError}
|
|
16877
|
+
*/
|
|
16878
|
+
async queryLokiAuditLogs(orgName, clusterName, startTime, endTime, limit, componentName, instanceName, sortType, options) {
|
|
16879
|
+
var _a, _b, _c;
|
|
16880
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiAuditLogs(orgName, clusterName, startTime, endTime, limit, componentName, instanceName, sortType, options);
|
|
16881
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16882
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.queryLokiAuditLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16883
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16884
|
+
},
|
|
16885
|
+
/**
|
|
16886
|
+
* Query error logs through the Loki compatibility API.
|
|
16887
|
+
* @summary Query Loki error logs
|
|
16888
|
+
* @param {string} orgName
|
|
16889
|
+
* @param {string} clusterName
|
|
16890
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
16891
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
16892
|
+
* @param {string} [componentName]
|
|
16893
|
+
* @param {string} [instanceName]
|
|
16894
|
+
* @param {string} [filename]
|
|
16895
|
+
* @param {string} [query]
|
|
16896
|
+
* @param {string} [limit]
|
|
16897
|
+
* @param {SortType} [sortType]
|
|
16898
|
+
* @param {*} [options] Override http request option.
|
|
16899
|
+
* @throws {RequiredError}
|
|
16900
|
+
*/
|
|
16901
|
+
async queryLokiErrorLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, query, limit, sortType, options) {
|
|
16902
|
+
var _a, _b, _c;
|
|
16903
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiErrorLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, query, limit, sortType, options);
|
|
16904
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16905
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.queryLokiErrorLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16906
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16907
|
+
},
|
|
16908
|
+
/**
|
|
16909
|
+
* Query pod logs through the Loki compatibility API.
|
|
16910
|
+
* @summary Query Loki pod logs
|
|
16911
|
+
* @param {string} orgName
|
|
16912
|
+
* @param {string} clusterName
|
|
16913
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
16914
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
16915
|
+
* @param {string} [componentName]
|
|
16916
|
+
* @param {string} [instanceName]
|
|
16917
|
+
* @param {string} [filename]
|
|
16918
|
+
* @param {string} [limit]
|
|
16919
|
+
* @param {SortType} [sortType]
|
|
16920
|
+
* @param {*} [options] Override http request option.
|
|
16921
|
+
* @throws {RequiredError}
|
|
16922
|
+
*/
|
|
16923
|
+
async queryLokiPodLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, sortType, options) {
|
|
16924
|
+
var _a, _b, _c;
|
|
16925
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiPodLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, sortType, options);
|
|
16926
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16927
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.queryLokiPodLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16928
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16929
|
+
},
|
|
16930
|
+
/**
|
|
16931
|
+
* Query running logs through the Loki compatibility API.
|
|
16932
|
+
* @summary Query Loki running logs
|
|
16933
|
+
* @param {string} orgName
|
|
16934
|
+
* @param {string} clusterName
|
|
16935
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
16936
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
16937
|
+
* @param {string} [componentName]
|
|
16938
|
+
* @param {string} [instanceName]
|
|
16939
|
+
* @param {string} [filename]
|
|
16940
|
+
* @param {string} [limit]
|
|
16941
|
+
* @param {string} [query]
|
|
16942
|
+
* @param {SortType} [sortType]
|
|
16943
|
+
* @param {*} [options] Override http request option.
|
|
16944
|
+
* @throws {RequiredError}
|
|
16945
|
+
*/
|
|
16946
|
+
async queryLokiRunningLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, query, sortType, options) {
|
|
16947
|
+
var _a, _b, _c;
|
|
16948
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiRunningLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, query, sortType, options);
|
|
16949
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16950
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.queryLokiRunningLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16951
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16952
|
+
},
|
|
16953
|
+
/**
|
|
16954
|
+
* Query slow logs through the Loki compatibility API.
|
|
16955
|
+
* @summary Query Loki slow logs
|
|
16956
|
+
* @param {string} orgName
|
|
16957
|
+
* @param {string} clusterName
|
|
16958
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
16959
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
16960
|
+
* @param {string} [componentName]
|
|
16961
|
+
* @param {string} [instanceName]
|
|
16962
|
+
* @param {string} [query]
|
|
16963
|
+
* @param {string} [limit]
|
|
16964
|
+
* @param {SortType} [sortType]
|
|
16965
|
+
* @param {*} [options] Override http request option.
|
|
16966
|
+
* @throws {RequiredError}
|
|
16967
|
+
*/
|
|
16968
|
+
async queryLokiSlowLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, query, limit, sortType, options) {
|
|
16969
|
+
var _a, _b, _c;
|
|
16970
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiSlowLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, query, limit, sortType, options);
|
|
16971
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16972
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.queryLokiSlowLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16973
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16974
|
+
},
|
|
16333
16975
|
/**
|
|
16334
16976
|
* Query pod logs of a cluster
|
|
16335
16977
|
* @summary Query cluster pod logs
|
|
@@ -18097,6 +18739,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
18097
18739
|
explainSlowLogTemplate(requestParameters, options) {
|
|
18098
18740
|
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));
|
|
18099
18741
|
},
|
|
18742
|
+
/**
|
|
18743
|
+
* Export logs through the Loki compatibility API.
|
|
18744
|
+
* @summary Export Loki logs
|
|
18745
|
+
* @param {SharedApiExportLokiClusterLogsRequest} requestParameters Request parameters.
|
|
18746
|
+
* @param {*} [options] Override http request option.
|
|
18747
|
+
* @throws {RequiredError}
|
|
18748
|
+
*/
|
|
18749
|
+
exportLokiClusterLogs(requestParameters, options) {
|
|
18750
|
+
return localVarFp.exportLokiClusterLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.logType, requestParameters.startTime, requestParameters.endTime, requestParameters.format, requestParameters.query, requestParameters.filename, requestParameters.componentName, requestParameters.instanceName, requestParameters.maxLines, options).then((request) => request(axios, basePath));
|
|
18751
|
+
},
|
|
18100
18752
|
/**
|
|
18101
18753
|
*
|
|
18102
18754
|
* @summary Export parameter template from cluster
|
|
@@ -18487,6 +19139,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
18487
19139
|
getKafkaTopics(requestParameters, options) {
|
|
18488
19140
|
return localVarFp.getKafkaTopics(requestParameters.orgName, requestParameters.clusterName, requestParameters.nameFilter, requestParameters.onlyNames, options).then((request) => request(axios, basePath));
|
|
18489
19141
|
},
|
|
19142
|
+
/**
|
|
19143
|
+
* Query slow-log statistics through the Loki compatibility API.
|
|
19144
|
+
* @summary Query Loki slow-log statistics
|
|
19145
|
+
* @param {SharedApiGetLokiSlowLogStatsRequest} requestParameters Request parameters.
|
|
19146
|
+
* @param {*} [options] Override http request option.
|
|
19147
|
+
* @throws {RequiredError}
|
|
19148
|
+
*/
|
|
19149
|
+
getLokiSlowLogStats(requestParameters, options) {
|
|
19150
|
+
return localVarFp.getLokiSlowLogStats(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, options).then((request) => request(axios, basePath));
|
|
19151
|
+
},
|
|
18490
19152
|
/**
|
|
18491
19153
|
* Get a Milvus native role and its privilege grants.
|
|
18492
19154
|
* @summary Get Milvus role
|
|
@@ -19553,6 +20215,56 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
19553
20215
|
queryLogHits(requestParameters, options) {
|
|
19554
20216
|
return localVarFp.queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, options).then((request) => request(axios, basePath));
|
|
19555
20217
|
},
|
|
20218
|
+
/**
|
|
20219
|
+
* Query audit logs through the Loki compatibility API.
|
|
20220
|
+
* @summary Query Loki audit logs
|
|
20221
|
+
* @param {SharedApiQueryLokiAuditLogsRequest} requestParameters Request parameters.
|
|
20222
|
+
* @param {*} [options] Override http request option.
|
|
20223
|
+
* @throws {RequiredError}
|
|
20224
|
+
*/
|
|
20225
|
+
queryLokiAuditLogs(requestParameters, options) {
|
|
20226
|
+
return localVarFp.queryLokiAuditLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.limit, requestParameters.componentName, requestParameters.instanceName, requestParameters.sortType, options).then((request) => request(axios, basePath));
|
|
20227
|
+
},
|
|
20228
|
+
/**
|
|
20229
|
+
* Query error logs through the Loki compatibility API.
|
|
20230
|
+
* @summary Query Loki error logs
|
|
20231
|
+
* @param {SharedApiQueryLokiErrorLogsRequest} requestParameters Request parameters.
|
|
20232
|
+
* @param {*} [options] Override http request option.
|
|
20233
|
+
* @throws {RequiredError}
|
|
20234
|
+
*/
|
|
20235
|
+
queryLokiErrorLogs(requestParameters, options) {
|
|
20236
|
+
return localVarFp.queryLokiErrorLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.filename, requestParameters.query, requestParameters.limit, requestParameters.sortType, options).then((request) => request(axios, basePath));
|
|
20237
|
+
},
|
|
20238
|
+
/**
|
|
20239
|
+
* Query pod logs through the Loki compatibility API.
|
|
20240
|
+
* @summary Query Loki pod logs
|
|
20241
|
+
* @param {SharedApiQueryLokiPodLogsRequest} requestParameters Request parameters.
|
|
20242
|
+
* @param {*} [options] Override http request option.
|
|
20243
|
+
* @throws {RequiredError}
|
|
20244
|
+
*/
|
|
20245
|
+
queryLokiPodLogs(requestParameters, options) {
|
|
20246
|
+
return localVarFp.queryLokiPodLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.filename, requestParameters.limit, requestParameters.sortType, options).then((request) => request(axios, basePath));
|
|
20247
|
+
},
|
|
20248
|
+
/**
|
|
20249
|
+
* Query running logs through the Loki compatibility API.
|
|
20250
|
+
* @summary Query Loki running logs
|
|
20251
|
+
* @param {SharedApiQueryLokiRunningLogsRequest} requestParameters Request parameters.
|
|
20252
|
+
* @param {*} [options] Override http request option.
|
|
20253
|
+
* @throws {RequiredError}
|
|
20254
|
+
*/
|
|
20255
|
+
queryLokiRunningLogs(requestParameters, options) {
|
|
20256
|
+
return localVarFp.queryLokiRunningLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.filename, requestParameters.limit, requestParameters.query, requestParameters.sortType, options).then((request) => request(axios, basePath));
|
|
20257
|
+
},
|
|
20258
|
+
/**
|
|
20259
|
+
* Query slow logs through the Loki compatibility API.
|
|
20260
|
+
* @summary Query Loki slow logs
|
|
20261
|
+
* @param {SharedApiQueryLokiSlowLogsRequest} requestParameters Request parameters.
|
|
20262
|
+
* @param {*} [options] Override http request option.
|
|
20263
|
+
* @throws {RequiredError}
|
|
20264
|
+
*/
|
|
20265
|
+
queryLokiSlowLogs(requestParameters, options) {
|
|
20266
|
+
return localVarFp.queryLokiSlowLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.limit, requestParameters.sortType, options).then((request) => request(axios, basePath));
|
|
20267
|
+
},
|
|
19556
20268
|
/**
|
|
19557
20269
|
* Query pod logs of a cluster
|
|
19558
20270
|
* @summary Query cluster pod logs
|
|
@@ -20955,6 +21667,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
20955
21667
|
explainSlowLogTemplate(requestParameters, options) {
|
|
20956
21668
|
return (0, exports.SharedApiFp)(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));
|
|
20957
21669
|
}
|
|
21670
|
+
/**
|
|
21671
|
+
* Export logs through the Loki compatibility API.
|
|
21672
|
+
* @summary Export Loki logs
|
|
21673
|
+
* @param {SharedApiExportLokiClusterLogsRequest} requestParameters Request parameters.
|
|
21674
|
+
* @param {*} [options] Override http request option.
|
|
21675
|
+
* @throws {RequiredError}
|
|
21676
|
+
* @memberof SharedApi
|
|
21677
|
+
*/
|
|
21678
|
+
exportLokiClusterLogs(requestParameters, options) {
|
|
21679
|
+
return (0, exports.SharedApiFp)(this.configuration).exportLokiClusterLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.logType, requestParameters.startTime, requestParameters.endTime, requestParameters.format, requestParameters.query, requestParameters.filename, requestParameters.componentName, requestParameters.instanceName, requestParameters.maxLines, options).then((request) => request(this.axios, this.basePath));
|
|
21680
|
+
}
|
|
20958
21681
|
/**
|
|
20959
21682
|
*
|
|
20960
21683
|
* @summary Export parameter template from cluster
|
|
@@ -21384,6 +22107,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
21384
22107
|
getKafkaTopics(requestParameters, options) {
|
|
21385
22108
|
return (0, exports.SharedApiFp)(this.configuration).getKafkaTopics(requestParameters.orgName, requestParameters.clusterName, requestParameters.nameFilter, requestParameters.onlyNames, options).then((request) => request(this.axios, this.basePath));
|
|
21386
22109
|
}
|
|
22110
|
+
/**
|
|
22111
|
+
* Query slow-log statistics through the Loki compatibility API.
|
|
22112
|
+
* @summary Query Loki slow-log statistics
|
|
22113
|
+
* @param {SharedApiGetLokiSlowLogStatsRequest} requestParameters Request parameters.
|
|
22114
|
+
* @param {*} [options] Override http request option.
|
|
22115
|
+
* @throws {RequiredError}
|
|
22116
|
+
* @memberof SharedApi
|
|
22117
|
+
*/
|
|
22118
|
+
getLokiSlowLogStats(requestParameters, options) {
|
|
22119
|
+
return (0, exports.SharedApiFp)(this.configuration).getLokiSlowLogStats(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, options).then((request) => request(this.axios, this.basePath));
|
|
22120
|
+
}
|
|
21387
22121
|
/**
|
|
21388
22122
|
* Get a Milvus native role and its privilege grants.
|
|
21389
22123
|
* @summary Get Milvus role
|
|
@@ -22557,6 +23291,61 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
22557
23291
|
queryLogHits(requestParameters, options) {
|
|
22558
23292
|
return (0, exports.SharedApiFp)(this.configuration).queryLogHits(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.step, requestParameters.logType, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, options).then((request) => request(this.axios, this.basePath));
|
|
22559
23293
|
}
|
|
23294
|
+
/**
|
|
23295
|
+
* Query audit logs through the Loki compatibility API.
|
|
23296
|
+
* @summary Query Loki audit logs
|
|
23297
|
+
* @param {SharedApiQueryLokiAuditLogsRequest} requestParameters Request parameters.
|
|
23298
|
+
* @param {*} [options] Override http request option.
|
|
23299
|
+
* @throws {RequiredError}
|
|
23300
|
+
* @memberof SharedApi
|
|
23301
|
+
*/
|
|
23302
|
+
queryLokiAuditLogs(requestParameters, options) {
|
|
23303
|
+
return (0, exports.SharedApiFp)(this.configuration).queryLokiAuditLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.limit, requestParameters.componentName, requestParameters.instanceName, requestParameters.sortType, options).then((request) => request(this.axios, this.basePath));
|
|
23304
|
+
}
|
|
23305
|
+
/**
|
|
23306
|
+
* Query error logs through the Loki compatibility API.
|
|
23307
|
+
* @summary Query Loki error logs
|
|
23308
|
+
* @param {SharedApiQueryLokiErrorLogsRequest} requestParameters Request parameters.
|
|
23309
|
+
* @param {*} [options] Override http request option.
|
|
23310
|
+
* @throws {RequiredError}
|
|
23311
|
+
* @memberof SharedApi
|
|
23312
|
+
*/
|
|
23313
|
+
queryLokiErrorLogs(requestParameters, options) {
|
|
23314
|
+
return (0, exports.SharedApiFp)(this.configuration).queryLokiErrorLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.filename, requestParameters.query, requestParameters.limit, requestParameters.sortType, options).then((request) => request(this.axios, this.basePath));
|
|
23315
|
+
}
|
|
23316
|
+
/**
|
|
23317
|
+
* Query pod logs through the Loki compatibility API.
|
|
23318
|
+
* @summary Query Loki pod logs
|
|
23319
|
+
* @param {SharedApiQueryLokiPodLogsRequest} requestParameters Request parameters.
|
|
23320
|
+
* @param {*} [options] Override http request option.
|
|
23321
|
+
* @throws {RequiredError}
|
|
23322
|
+
* @memberof SharedApi
|
|
23323
|
+
*/
|
|
23324
|
+
queryLokiPodLogs(requestParameters, options) {
|
|
23325
|
+
return (0, exports.SharedApiFp)(this.configuration).queryLokiPodLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.filename, requestParameters.limit, requestParameters.sortType, options).then((request) => request(this.axios, this.basePath));
|
|
23326
|
+
}
|
|
23327
|
+
/**
|
|
23328
|
+
* Query running logs through the Loki compatibility API.
|
|
23329
|
+
* @summary Query Loki running logs
|
|
23330
|
+
* @param {SharedApiQueryLokiRunningLogsRequest} requestParameters Request parameters.
|
|
23331
|
+
* @param {*} [options] Override http request option.
|
|
23332
|
+
* @throws {RequiredError}
|
|
23333
|
+
* @memberof SharedApi
|
|
23334
|
+
*/
|
|
23335
|
+
queryLokiRunningLogs(requestParameters, options) {
|
|
23336
|
+
return (0, exports.SharedApiFp)(this.configuration).queryLokiRunningLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.filename, requestParameters.limit, requestParameters.query, requestParameters.sortType, options).then((request) => request(this.axios, this.basePath));
|
|
23337
|
+
}
|
|
23338
|
+
/**
|
|
23339
|
+
* Query slow logs through the Loki compatibility API.
|
|
23340
|
+
* @summary Query Loki slow logs
|
|
23341
|
+
* @param {SharedApiQueryLokiSlowLogsRequest} requestParameters Request parameters.
|
|
23342
|
+
* @param {*} [options] Override http request option.
|
|
23343
|
+
* @throws {RequiredError}
|
|
23344
|
+
* @memberof SharedApi
|
|
23345
|
+
*/
|
|
23346
|
+
queryLokiSlowLogs(requestParameters, options) {
|
|
23347
|
+
return (0, exports.SharedApiFp)(this.configuration).queryLokiSlowLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, requestParameters.query, requestParameters.limit, requestParameters.sortType, options).then((request) => request(this.axios, this.basePath));
|
|
23348
|
+
}
|
|
22560
23349
|
/**
|
|
22561
23350
|
* Query pod logs of a cluster
|
|
22562
23351
|
* @summary Query cluster pod logs
|