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
|
@@ -3512,6 +3512,82 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
3512
3512
|
options: localVarRequestOptions,
|
|
3513
3513
|
};
|
|
3514
3514
|
},
|
|
3515
|
+
/**
|
|
3516
|
+
* Export logs through the Loki compatibility API.
|
|
3517
|
+
* @summary Export Loki logs
|
|
3518
|
+
* @param {string} orgName
|
|
3519
|
+
* @param {string} clusterName
|
|
3520
|
+
* @param {string} logType Log type: runninglog, errorlog, slow, auditlog
|
|
3521
|
+
* @param {number} [startTime] Start time in epoch nanoseconds. If omitted, exports from the earliest available log
|
|
3522
|
+
* @param {number} [endTime] End time in epoch nanoseconds. If omitted, exports up to the latest available log
|
|
3523
|
+
* @param {string} [format] Export format: csv, raw, jsonl
|
|
3524
|
+
* @param {string} [query]
|
|
3525
|
+
* @param {string} [filename]
|
|
3526
|
+
* @param {string} [componentName]
|
|
3527
|
+
* @param {string} [instanceName]
|
|
3528
|
+
* @param {number} [maxLines] Maximum number of lines to export. Defaults to 100000 if omitted
|
|
3529
|
+
* @param {*} [options] Override http request option.
|
|
3530
|
+
* @throws {RequiredError}
|
|
3531
|
+
*/
|
|
3532
|
+
exportLokiClusterLogs: async (orgName, clusterName, logType, startTime, endTime, format, query, filename, componentName, instanceName, maxLines, options = {}) => {
|
|
3533
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
3534
|
+
(0, common_1.assertParamExists)('exportLokiClusterLogs', 'orgName', orgName);
|
|
3535
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
3536
|
+
(0, common_1.assertParamExists)('exportLokiClusterLogs', 'clusterName', clusterName);
|
|
3537
|
+
// verify required parameter 'logType' is not null or undefined
|
|
3538
|
+
(0, common_1.assertParamExists)('exportLokiClusterLogs', 'logType', logType);
|
|
3539
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/export`
|
|
3540
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3541
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
3542
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3543
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3544
|
+
let baseOptions;
|
|
3545
|
+
if (configuration) {
|
|
3546
|
+
baseOptions = configuration.baseOptions;
|
|
3547
|
+
}
|
|
3548
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3549
|
+
const localVarHeaderParameter = {};
|
|
3550
|
+
const localVarQueryParameter = {};
|
|
3551
|
+
// authentication BearerToken required
|
|
3552
|
+
// http bearer authentication required
|
|
3553
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3554
|
+
// authentication DigestAuth required
|
|
3555
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
3556
|
+
if (logType !== undefined) {
|
|
3557
|
+
localVarQueryParameter['logType'] = logType;
|
|
3558
|
+
}
|
|
3559
|
+
if (startTime !== undefined) {
|
|
3560
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
3561
|
+
}
|
|
3562
|
+
if (endTime !== undefined) {
|
|
3563
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
3564
|
+
}
|
|
3565
|
+
if (format !== undefined) {
|
|
3566
|
+
localVarQueryParameter['format'] = format;
|
|
3567
|
+
}
|
|
3568
|
+
if (query !== undefined) {
|
|
3569
|
+
localVarQueryParameter['query'] = query;
|
|
3570
|
+
}
|
|
3571
|
+
if (filename !== undefined) {
|
|
3572
|
+
localVarQueryParameter['filename'] = filename;
|
|
3573
|
+
}
|
|
3574
|
+
if (componentName !== undefined) {
|
|
3575
|
+
localVarQueryParameter['componentName'] = componentName;
|
|
3576
|
+
}
|
|
3577
|
+
if (instanceName !== undefined) {
|
|
3578
|
+
localVarQueryParameter['instanceName'] = instanceName;
|
|
3579
|
+
}
|
|
3580
|
+
if (maxLines !== undefined) {
|
|
3581
|
+
localVarQueryParameter['maxLines'] = maxLines;
|
|
3582
|
+
}
|
|
3583
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3584
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3585
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3586
|
+
return {
|
|
3587
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3588
|
+
options: localVarRequestOptions,
|
|
3589
|
+
};
|
|
3590
|
+
},
|
|
3515
3591
|
/**
|
|
3516
3592
|
*
|
|
3517
3593
|
* @summary Export parameter template from cluster
|
|
@@ -5228,6 +5304,64 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
5228
5304
|
options: localVarRequestOptions,
|
|
5229
5305
|
};
|
|
5230
5306
|
},
|
|
5307
|
+
/**
|
|
5308
|
+
* Query slow-log statistics through the Loki compatibility API.
|
|
5309
|
+
* @summary Query Loki slow-log statistics
|
|
5310
|
+
* @param {string} orgName
|
|
5311
|
+
* @param {string} clusterName
|
|
5312
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
5313
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
5314
|
+
* @param {string} [componentName]
|
|
5315
|
+
* @param {string} [instanceName]
|
|
5316
|
+
* @param {*} [options] Override http request option.
|
|
5317
|
+
* @throws {RequiredError}
|
|
5318
|
+
*/
|
|
5319
|
+
getLokiSlowLogStats: async (orgName, clusterName, startTime, endTime, componentName, instanceName, options = {}) => {
|
|
5320
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
5321
|
+
(0, common_1.assertParamExists)('getLokiSlowLogStats', 'orgName', orgName);
|
|
5322
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
5323
|
+
(0, common_1.assertParamExists)('getLokiSlowLogStats', 'clusterName', clusterName);
|
|
5324
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
5325
|
+
(0, common_1.assertParamExists)('getLokiSlowLogStats', 'startTime', startTime);
|
|
5326
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
5327
|
+
(0, common_1.assertParamExists)('getLokiSlowLogStats', 'endTime', endTime);
|
|
5328
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/slow/stats`
|
|
5329
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
5330
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
5331
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5332
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5333
|
+
let baseOptions;
|
|
5334
|
+
if (configuration) {
|
|
5335
|
+
baseOptions = configuration.baseOptions;
|
|
5336
|
+
}
|
|
5337
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5338
|
+
const localVarHeaderParameter = {};
|
|
5339
|
+
const localVarQueryParameter = {};
|
|
5340
|
+
// authentication BearerToken required
|
|
5341
|
+
// http bearer authentication required
|
|
5342
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5343
|
+
// authentication DigestAuth required
|
|
5344
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5345
|
+
if (startTime !== undefined) {
|
|
5346
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
5347
|
+
}
|
|
5348
|
+
if (endTime !== undefined) {
|
|
5349
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
5350
|
+
}
|
|
5351
|
+
if (componentName !== undefined) {
|
|
5352
|
+
localVarQueryParameter['componentName'] = componentName;
|
|
5353
|
+
}
|
|
5354
|
+
if (instanceName !== undefined) {
|
|
5355
|
+
localVarQueryParameter['instanceName'] = instanceName;
|
|
5356
|
+
}
|
|
5357
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5358
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5359
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5360
|
+
return {
|
|
5361
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5362
|
+
options: localVarRequestOptions,
|
|
5363
|
+
};
|
|
5364
|
+
},
|
|
5231
5365
|
/**
|
|
5232
5366
|
* Get a Milvus native role and its privilege grants.
|
|
5233
5367
|
* @summary Get Milvus role
|
|
@@ -9704,20 +9838,416 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
9704
9838
|
* @param {*} [options] Override http request option.
|
|
9705
9839
|
* @throws {RequiredError}
|
|
9706
9840
|
*/
|
|
9707
|
-
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 = {}) => {
|
|
9841
|
+
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 = {}) => {
|
|
9842
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
9843
|
+
(0, common_1.assertParamExists)('queryLogHits', 'orgName', orgName);
|
|
9844
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
9845
|
+
(0, common_1.assertParamExists)('queryLogHits', 'clusterName', clusterName);
|
|
9846
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
9847
|
+
(0, common_1.assertParamExists)('queryLogHits', 'startTime', startTime);
|
|
9848
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
9849
|
+
(0, common_1.assertParamExists)('queryLogHits', 'endTime', endTime);
|
|
9850
|
+
// verify required parameter 'step' is not null or undefined
|
|
9851
|
+
(0, common_1.assertParamExists)('queryLogHits', 'step', step);
|
|
9852
|
+
// verify required parameter 'logType' is not null or undefined
|
|
9853
|
+
(0, common_1.assertParamExists)('queryLogHits', 'logType', logType);
|
|
9854
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/hits`
|
|
9855
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
9856
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
9857
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9858
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9859
|
+
let baseOptions;
|
|
9860
|
+
if (configuration) {
|
|
9861
|
+
baseOptions = configuration.baseOptions;
|
|
9862
|
+
}
|
|
9863
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
9864
|
+
const localVarHeaderParameter = {};
|
|
9865
|
+
const localVarQueryParameter = {};
|
|
9866
|
+
// authentication BearerToken required
|
|
9867
|
+
// http bearer authentication required
|
|
9868
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
9869
|
+
// authentication DigestAuth required
|
|
9870
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
9871
|
+
if (startTime !== undefined) {
|
|
9872
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
9873
|
+
}
|
|
9874
|
+
if (endTime !== undefined) {
|
|
9875
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
9876
|
+
}
|
|
9877
|
+
if (step !== undefined) {
|
|
9878
|
+
localVarQueryParameter['step'] = step;
|
|
9879
|
+
}
|
|
9880
|
+
if (logType !== undefined) {
|
|
9881
|
+
localVarQueryParameter['logType'] = logType;
|
|
9882
|
+
}
|
|
9883
|
+
if (componentName !== undefined) {
|
|
9884
|
+
localVarQueryParameter['componentName'] = componentName;
|
|
9885
|
+
}
|
|
9886
|
+
if (instanceName !== undefined) {
|
|
9887
|
+
localVarQueryParameter['instanceName'] = instanceName;
|
|
9888
|
+
}
|
|
9889
|
+
if (query !== undefined) {
|
|
9890
|
+
localVarQueryParameter['query'] = query;
|
|
9891
|
+
}
|
|
9892
|
+
if (minExecutionTime !== undefined) {
|
|
9893
|
+
localVarQueryParameter['minExecutionTime'] = minExecutionTime;
|
|
9894
|
+
}
|
|
9895
|
+
if (maxExecutionTime !== undefined) {
|
|
9896
|
+
localVarQueryParameter['maxExecutionTime'] = maxExecutionTime;
|
|
9897
|
+
}
|
|
9898
|
+
if (minLockTime !== undefined) {
|
|
9899
|
+
localVarQueryParameter['minLockTime'] = minLockTime;
|
|
9900
|
+
}
|
|
9901
|
+
if (maxLockTime !== undefined) {
|
|
9902
|
+
localVarQueryParameter['maxLockTime'] = maxLockTime;
|
|
9903
|
+
}
|
|
9904
|
+
if (minRowsExamined !== undefined) {
|
|
9905
|
+
localVarQueryParameter['minRowsExamined'] = minRowsExamined;
|
|
9906
|
+
}
|
|
9907
|
+
if (maxRowsExamined !== undefined) {
|
|
9908
|
+
localVarQueryParameter['maxRowsExamined'] = maxRowsExamined;
|
|
9909
|
+
}
|
|
9910
|
+
if (minRowsSent !== undefined) {
|
|
9911
|
+
localVarQueryParameter['minRowsSent'] = minRowsSent;
|
|
9912
|
+
}
|
|
9913
|
+
if (maxRowsSent !== undefined) {
|
|
9914
|
+
localVarQueryParameter['maxRowsSent'] = maxRowsSent;
|
|
9915
|
+
}
|
|
9916
|
+
if (dbName !== undefined) {
|
|
9917
|
+
localVarQueryParameter['dbName'] = dbName;
|
|
9918
|
+
}
|
|
9919
|
+
if (userName !== undefined) {
|
|
9920
|
+
localVarQueryParameter['userName'] = userName;
|
|
9921
|
+
}
|
|
9922
|
+
if (clientIp !== undefined) {
|
|
9923
|
+
localVarQueryParameter['clientIp'] = clientIp;
|
|
9924
|
+
}
|
|
9925
|
+
if (appName !== undefined) {
|
|
9926
|
+
localVarQueryParameter['appName'] = appName;
|
|
9927
|
+
}
|
|
9928
|
+
if (templateId !== undefined) {
|
|
9929
|
+
localVarQueryParameter['templateId'] = templateId;
|
|
9930
|
+
}
|
|
9931
|
+
if (unclassifiedOnly !== undefined) {
|
|
9932
|
+
localVarQueryParameter['unclassifiedOnly'] = unclassifiedOnly;
|
|
9933
|
+
}
|
|
9934
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9935
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9936
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9937
|
+
return {
|
|
9938
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9939
|
+
options: localVarRequestOptions,
|
|
9940
|
+
};
|
|
9941
|
+
},
|
|
9942
|
+
/**
|
|
9943
|
+
* Query audit logs through the Loki compatibility API.
|
|
9944
|
+
* @summary Query Loki audit logs
|
|
9945
|
+
* @param {string} orgName
|
|
9946
|
+
* @param {string} clusterName
|
|
9947
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
9948
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
9949
|
+
* @param {string} [limit]
|
|
9950
|
+
* @param {string} [componentName]
|
|
9951
|
+
* @param {string} [instanceName]
|
|
9952
|
+
* @param {SortType} [sortType]
|
|
9953
|
+
* @param {*} [options] Override http request option.
|
|
9954
|
+
* @throws {RequiredError}
|
|
9955
|
+
*/
|
|
9956
|
+
queryLokiAuditLogs: async (orgName, clusterName, startTime, endTime, limit, componentName, instanceName, sortType, options = {}) => {
|
|
9957
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
9958
|
+
(0, common_1.assertParamExists)('queryLokiAuditLogs', 'orgName', orgName);
|
|
9959
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
9960
|
+
(0, common_1.assertParamExists)('queryLokiAuditLogs', 'clusterName', clusterName);
|
|
9961
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
9962
|
+
(0, common_1.assertParamExists)('queryLokiAuditLogs', 'startTime', startTime);
|
|
9963
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
9964
|
+
(0, common_1.assertParamExists)('queryLokiAuditLogs', 'endTime', endTime);
|
|
9965
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/audit`
|
|
9966
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
9967
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
9968
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9969
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9970
|
+
let baseOptions;
|
|
9971
|
+
if (configuration) {
|
|
9972
|
+
baseOptions = configuration.baseOptions;
|
|
9973
|
+
}
|
|
9974
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
9975
|
+
const localVarHeaderParameter = {};
|
|
9976
|
+
const localVarQueryParameter = {};
|
|
9977
|
+
// authentication BearerToken required
|
|
9978
|
+
// http bearer authentication required
|
|
9979
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
9980
|
+
// authentication DigestAuth required
|
|
9981
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
9982
|
+
if (startTime !== undefined) {
|
|
9983
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
9984
|
+
}
|
|
9985
|
+
if (endTime !== undefined) {
|
|
9986
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
9987
|
+
}
|
|
9988
|
+
if (limit !== undefined) {
|
|
9989
|
+
localVarQueryParameter['limit'] = limit;
|
|
9990
|
+
}
|
|
9991
|
+
if (componentName !== undefined) {
|
|
9992
|
+
localVarQueryParameter['componentName'] = componentName;
|
|
9993
|
+
}
|
|
9994
|
+
if (instanceName !== undefined) {
|
|
9995
|
+
localVarQueryParameter['instanceName'] = instanceName;
|
|
9996
|
+
}
|
|
9997
|
+
if (sortType !== undefined) {
|
|
9998
|
+
localVarQueryParameter['sortType'] = sortType;
|
|
9999
|
+
}
|
|
10000
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10001
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10002
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10003
|
+
return {
|
|
10004
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10005
|
+
options: localVarRequestOptions,
|
|
10006
|
+
};
|
|
10007
|
+
},
|
|
10008
|
+
/**
|
|
10009
|
+
* Query error logs through the Loki compatibility API.
|
|
10010
|
+
* @summary Query Loki error logs
|
|
10011
|
+
* @param {string} orgName
|
|
10012
|
+
* @param {string} clusterName
|
|
10013
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
10014
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
10015
|
+
* @param {string} [componentName]
|
|
10016
|
+
* @param {string} [instanceName]
|
|
10017
|
+
* @param {string} [filename]
|
|
10018
|
+
* @param {string} [query]
|
|
10019
|
+
* @param {string} [limit]
|
|
10020
|
+
* @param {SortType} [sortType]
|
|
10021
|
+
* @param {*} [options] Override http request option.
|
|
10022
|
+
* @throws {RequiredError}
|
|
10023
|
+
*/
|
|
10024
|
+
queryLokiErrorLogs: async (orgName, clusterName, startTime, endTime, componentName, instanceName, filename, query, limit, sortType, options = {}) => {
|
|
10025
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
10026
|
+
(0, common_1.assertParamExists)('queryLokiErrorLogs', 'orgName', orgName);
|
|
10027
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
10028
|
+
(0, common_1.assertParamExists)('queryLokiErrorLogs', 'clusterName', clusterName);
|
|
10029
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
10030
|
+
(0, common_1.assertParamExists)('queryLokiErrorLogs', 'startTime', startTime);
|
|
10031
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
10032
|
+
(0, common_1.assertParamExists)('queryLokiErrorLogs', 'endTime', endTime);
|
|
10033
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/error`
|
|
10034
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
10035
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
10036
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10037
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10038
|
+
let baseOptions;
|
|
10039
|
+
if (configuration) {
|
|
10040
|
+
baseOptions = configuration.baseOptions;
|
|
10041
|
+
}
|
|
10042
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10043
|
+
const localVarHeaderParameter = {};
|
|
10044
|
+
const localVarQueryParameter = {};
|
|
10045
|
+
// authentication BearerToken required
|
|
10046
|
+
// http bearer authentication required
|
|
10047
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10048
|
+
// authentication DigestAuth required
|
|
10049
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
10050
|
+
if (componentName !== undefined) {
|
|
10051
|
+
localVarQueryParameter['componentName'] = componentName;
|
|
10052
|
+
}
|
|
10053
|
+
if (instanceName !== undefined) {
|
|
10054
|
+
localVarQueryParameter['instanceName'] = instanceName;
|
|
10055
|
+
}
|
|
10056
|
+
if (filename !== undefined) {
|
|
10057
|
+
localVarQueryParameter['filename'] = filename;
|
|
10058
|
+
}
|
|
10059
|
+
if (startTime !== undefined) {
|
|
10060
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
10061
|
+
}
|
|
10062
|
+
if (endTime !== undefined) {
|
|
10063
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
10064
|
+
}
|
|
10065
|
+
if (query !== undefined) {
|
|
10066
|
+
localVarQueryParameter['query'] = query;
|
|
10067
|
+
}
|
|
10068
|
+
if (limit !== undefined) {
|
|
10069
|
+
localVarQueryParameter['limit'] = limit;
|
|
10070
|
+
}
|
|
10071
|
+
if (sortType !== undefined) {
|
|
10072
|
+
localVarQueryParameter['sortType'] = sortType;
|
|
10073
|
+
}
|
|
10074
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10075
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10076
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10077
|
+
return {
|
|
10078
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10079
|
+
options: localVarRequestOptions,
|
|
10080
|
+
};
|
|
10081
|
+
},
|
|
10082
|
+
/**
|
|
10083
|
+
* Query pod logs through the Loki compatibility API.
|
|
10084
|
+
* @summary Query Loki pod logs
|
|
10085
|
+
* @param {string} orgName
|
|
10086
|
+
* @param {string} clusterName
|
|
10087
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
10088
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
10089
|
+
* @param {string} [componentName]
|
|
10090
|
+
* @param {string} [instanceName]
|
|
10091
|
+
* @param {string} [filename]
|
|
10092
|
+
* @param {string} [limit]
|
|
10093
|
+
* @param {SortType} [sortType]
|
|
10094
|
+
* @param {*} [options] Override http request option.
|
|
10095
|
+
* @throws {RequiredError}
|
|
10096
|
+
*/
|
|
10097
|
+
queryLokiPodLogs: async (orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, sortType, options = {}) => {
|
|
10098
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
10099
|
+
(0, common_1.assertParamExists)('queryLokiPodLogs', 'orgName', orgName);
|
|
10100
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
10101
|
+
(0, common_1.assertParamExists)('queryLokiPodLogs', 'clusterName', clusterName);
|
|
10102
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
10103
|
+
(0, common_1.assertParamExists)('queryLokiPodLogs', 'startTime', startTime);
|
|
10104
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
10105
|
+
(0, common_1.assertParamExists)('queryLokiPodLogs', 'endTime', endTime);
|
|
10106
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/pod`
|
|
10107
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
10108
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
10109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10110
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10111
|
+
let baseOptions;
|
|
10112
|
+
if (configuration) {
|
|
10113
|
+
baseOptions = configuration.baseOptions;
|
|
10114
|
+
}
|
|
10115
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10116
|
+
const localVarHeaderParameter = {};
|
|
10117
|
+
const localVarQueryParameter = {};
|
|
10118
|
+
// authentication BearerToken required
|
|
10119
|
+
// http bearer authentication required
|
|
10120
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10121
|
+
// authentication DigestAuth required
|
|
10122
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
10123
|
+
if (componentName !== undefined) {
|
|
10124
|
+
localVarQueryParameter['componentName'] = componentName;
|
|
10125
|
+
}
|
|
10126
|
+
if (instanceName !== undefined) {
|
|
10127
|
+
localVarQueryParameter['instanceName'] = instanceName;
|
|
10128
|
+
}
|
|
10129
|
+
if (filename !== undefined) {
|
|
10130
|
+
localVarQueryParameter['filename'] = filename;
|
|
10131
|
+
}
|
|
10132
|
+
if (startTime !== undefined) {
|
|
10133
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
10134
|
+
}
|
|
10135
|
+
if (endTime !== undefined) {
|
|
10136
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
10137
|
+
}
|
|
10138
|
+
if (limit !== undefined) {
|
|
10139
|
+
localVarQueryParameter['limit'] = limit;
|
|
10140
|
+
}
|
|
10141
|
+
if (sortType !== undefined) {
|
|
10142
|
+
localVarQueryParameter['sortType'] = sortType;
|
|
10143
|
+
}
|
|
10144
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10145
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10146
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10147
|
+
return {
|
|
10148
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10149
|
+
options: localVarRequestOptions,
|
|
10150
|
+
};
|
|
10151
|
+
},
|
|
10152
|
+
/**
|
|
10153
|
+
* Query running logs through the Loki compatibility API.
|
|
10154
|
+
* @summary Query Loki running logs
|
|
10155
|
+
* @param {string} orgName
|
|
10156
|
+
* @param {string} clusterName
|
|
10157
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
10158
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
10159
|
+
* @param {string} [componentName]
|
|
10160
|
+
* @param {string} [instanceName]
|
|
10161
|
+
* @param {string} [filename]
|
|
10162
|
+
* @param {string} [limit]
|
|
10163
|
+
* @param {string} [query]
|
|
10164
|
+
* @param {SortType} [sortType]
|
|
10165
|
+
* @param {*} [options] Override http request option.
|
|
10166
|
+
* @throws {RequiredError}
|
|
10167
|
+
*/
|
|
10168
|
+
queryLokiRunningLogs: async (orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, query, sortType, options = {}) => {
|
|
10169
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
10170
|
+
(0, common_1.assertParamExists)('queryLokiRunningLogs', 'orgName', orgName);
|
|
10171
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
10172
|
+
(0, common_1.assertParamExists)('queryLokiRunningLogs', 'clusterName', clusterName);
|
|
10173
|
+
// verify required parameter 'startTime' is not null or undefined
|
|
10174
|
+
(0, common_1.assertParamExists)('queryLokiRunningLogs', 'startTime', startTime);
|
|
10175
|
+
// verify required parameter 'endTime' is not null or undefined
|
|
10176
|
+
(0, common_1.assertParamExists)('queryLokiRunningLogs', 'endTime', endTime);
|
|
10177
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/running`
|
|
10178
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
10179
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
10180
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10181
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10182
|
+
let baseOptions;
|
|
10183
|
+
if (configuration) {
|
|
10184
|
+
baseOptions = configuration.baseOptions;
|
|
10185
|
+
}
|
|
10186
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10187
|
+
const localVarHeaderParameter = {};
|
|
10188
|
+
const localVarQueryParameter = {};
|
|
10189
|
+
// authentication BearerToken required
|
|
10190
|
+
// http bearer authentication required
|
|
10191
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
10192
|
+
// authentication DigestAuth required
|
|
10193
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
10194
|
+
if (componentName !== undefined) {
|
|
10195
|
+
localVarQueryParameter['componentName'] = componentName;
|
|
10196
|
+
}
|
|
10197
|
+
if (instanceName !== undefined) {
|
|
10198
|
+
localVarQueryParameter['instanceName'] = instanceName;
|
|
10199
|
+
}
|
|
10200
|
+
if (filename !== undefined) {
|
|
10201
|
+
localVarQueryParameter['filename'] = filename;
|
|
10202
|
+
}
|
|
10203
|
+
if (startTime !== undefined) {
|
|
10204
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
10205
|
+
}
|
|
10206
|
+
if (endTime !== undefined) {
|
|
10207
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
10208
|
+
}
|
|
10209
|
+
if (limit !== undefined) {
|
|
10210
|
+
localVarQueryParameter['limit'] = limit;
|
|
10211
|
+
}
|
|
10212
|
+
if (query !== undefined) {
|
|
10213
|
+
localVarQueryParameter['query'] = query;
|
|
10214
|
+
}
|
|
10215
|
+
if (sortType !== undefined) {
|
|
10216
|
+
localVarQueryParameter['sortType'] = sortType;
|
|
10217
|
+
}
|
|
10218
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10219
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10220
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10221
|
+
return {
|
|
10222
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10223
|
+
options: localVarRequestOptions,
|
|
10224
|
+
};
|
|
10225
|
+
},
|
|
10226
|
+
/**
|
|
10227
|
+
* Query slow logs through the Loki compatibility API.
|
|
10228
|
+
* @summary Query Loki slow logs
|
|
10229
|
+
* @param {string} orgName
|
|
10230
|
+
* @param {string} clusterName
|
|
10231
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
10232
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
10233
|
+
* @param {string} [componentName]
|
|
10234
|
+
* @param {string} [instanceName]
|
|
10235
|
+
* @param {string} [query]
|
|
10236
|
+
* @param {string} [limit]
|
|
10237
|
+
* @param {SortType} [sortType]
|
|
10238
|
+
* @param {*} [options] Override http request option.
|
|
10239
|
+
* @throws {RequiredError}
|
|
10240
|
+
*/
|
|
10241
|
+
queryLokiSlowLogs: async (orgName, clusterName, startTime, endTime, componentName, instanceName, query, limit, sortType, options = {}) => {
|
|
9708
10242
|
// verify required parameter 'orgName' is not null or undefined
|
|
9709
|
-
(0, common_1.assertParamExists)('
|
|
10243
|
+
(0, common_1.assertParamExists)('queryLokiSlowLogs', 'orgName', orgName);
|
|
9710
10244
|
// verify required parameter 'clusterName' is not null or undefined
|
|
9711
|
-
(0, common_1.assertParamExists)('
|
|
10245
|
+
(0, common_1.assertParamExists)('queryLokiSlowLogs', 'clusterName', clusterName);
|
|
9712
10246
|
// verify required parameter 'startTime' is not null or undefined
|
|
9713
|
-
(0, common_1.assertParamExists)('
|
|
10247
|
+
(0, common_1.assertParamExists)('queryLokiSlowLogs', 'startTime', startTime);
|
|
9714
10248
|
// verify required parameter 'endTime' is not null or undefined
|
|
9715
|
-
(0, common_1.assertParamExists)('
|
|
9716
|
-
|
|
9717
|
-
(0, common_1.assertParamExists)('queryLogHits', 'step', step);
|
|
9718
|
-
// verify required parameter 'logType' is not null or undefined
|
|
9719
|
-
(0, common_1.assertParamExists)('queryLogHits', 'logType', logType);
|
|
9720
|
-
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/hits`
|
|
10249
|
+
(0, common_1.assertParamExists)('queryLokiSlowLogs', 'endTime', endTime);
|
|
10250
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/slow`
|
|
9721
10251
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
9722
10252
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
9723
10253
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -9740,12 +10270,6 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
9740
10270
|
if (endTime !== undefined) {
|
|
9741
10271
|
localVarQueryParameter['endTime'] = endTime;
|
|
9742
10272
|
}
|
|
9743
|
-
if (step !== undefined) {
|
|
9744
|
-
localVarQueryParameter['step'] = step;
|
|
9745
|
-
}
|
|
9746
|
-
if (logType !== undefined) {
|
|
9747
|
-
localVarQueryParameter['logType'] = logType;
|
|
9748
|
-
}
|
|
9749
10273
|
if (componentName !== undefined) {
|
|
9750
10274
|
localVarQueryParameter['componentName'] = componentName;
|
|
9751
10275
|
}
|
|
@@ -9755,47 +10279,11 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
9755
10279
|
if (query !== undefined) {
|
|
9756
10280
|
localVarQueryParameter['query'] = query;
|
|
9757
10281
|
}
|
|
9758
|
-
if (
|
|
9759
|
-
localVarQueryParameter['
|
|
9760
|
-
}
|
|
9761
|
-
if (maxExecutionTime !== undefined) {
|
|
9762
|
-
localVarQueryParameter['maxExecutionTime'] = maxExecutionTime;
|
|
9763
|
-
}
|
|
9764
|
-
if (minLockTime !== undefined) {
|
|
9765
|
-
localVarQueryParameter['minLockTime'] = minLockTime;
|
|
9766
|
-
}
|
|
9767
|
-
if (maxLockTime !== undefined) {
|
|
9768
|
-
localVarQueryParameter['maxLockTime'] = maxLockTime;
|
|
9769
|
-
}
|
|
9770
|
-
if (minRowsExamined !== undefined) {
|
|
9771
|
-
localVarQueryParameter['minRowsExamined'] = minRowsExamined;
|
|
9772
|
-
}
|
|
9773
|
-
if (maxRowsExamined !== undefined) {
|
|
9774
|
-
localVarQueryParameter['maxRowsExamined'] = maxRowsExamined;
|
|
9775
|
-
}
|
|
9776
|
-
if (minRowsSent !== undefined) {
|
|
9777
|
-
localVarQueryParameter['minRowsSent'] = minRowsSent;
|
|
9778
|
-
}
|
|
9779
|
-
if (maxRowsSent !== undefined) {
|
|
9780
|
-
localVarQueryParameter['maxRowsSent'] = maxRowsSent;
|
|
9781
|
-
}
|
|
9782
|
-
if (dbName !== undefined) {
|
|
9783
|
-
localVarQueryParameter['dbName'] = dbName;
|
|
9784
|
-
}
|
|
9785
|
-
if (userName !== undefined) {
|
|
9786
|
-
localVarQueryParameter['userName'] = userName;
|
|
9787
|
-
}
|
|
9788
|
-
if (clientIp !== undefined) {
|
|
9789
|
-
localVarQueryParameter['clientIp'] = clientIp;
|
|
9790
|
-
}
|
|
9791
|
-
if (appName !== undefined) {
|
|
9792
|
-
localVarQueryParameter['appName'] = appName;
|
|
9793
|
-
}
|
|
9794
|
-
if (templateId !== undefined) {
|
|
9795
|
-
localVarQueryParameter['templateId'] = templateId;
|
|
10282
|
+
if (limit !== undefined) {
|
|
10283
|
+
localVarQueryParameter['limit'] = limit;
|
|
9796
10284
|
}
|
|
9797
|
-
if (
|
|
9798
|
-
localVarQueryParameter['
|
|
10285
|
+
if (sortType !== undefined) {
|
|
10286
|
+
localVarQueryParameter['sortType'] = sortType;
|
|
9799
10287
|
}
|
|
9800
10288
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9801
10289
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -14054,6 +14542,30 @@ const SharedApiFp = function (configuration) {
|
|
|
14054
14542
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.exportClusterLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14055
14543
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14056
14544
|
},
|
|
14545
|
+
/**
|
|
14546
|
+
* Export logs through the Loki compatibility API.
|
|
14547
|
+
* @summary Export Loki logs
|
|
14548
|
+
* @param {string} orgName
|
|
14549
|
+
* @param {string} clusterName
|
|
14550
|
+
* @param {string} logType Log type: runninglog, errorlog, slow, auditlog
|
|
14551
|
+
* @param {number} [startTime] Start time in epoch nanoseconds. If omitted, exports from the earliest available log
|
|
14552
|
+
* @param {number} [endTime] End time in epoch nanoseconds. If omitted, exports up to the latest available log
|
|
14553
|
+
* @param {string} [format] Export format: csv, raw, jsonl
|
|
14554
|
+
* @param {string} [query]
|
|
14555
|
+
* @param {string} [filename]
|
|
14556
|
+
* @param {string} [componentName]
|
|
14557
|
+
* @param {string} [instanceName]
|
|
14558
|
+
* @param {number} [maxLines] Maximum number of lines to export. Defaults to 100000 if omitted
|
|
14559
|
+
* @param {*} [options] Override http request option.
|
|
14560
|
+
* @throws {RequiredError}
|
|
14561
|
+
*/
|
|
14562
|
+
async exportLokiClusterLogs(orgName, clusterName, logType, startTime, endTime, format, query, filename, componentName, instanceName, maxLines, options) {
|
|
14563
|
+
var _a, _b, _c;
|
|
14564
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.exportLokiClusterLogs(orgName, clusterName, logType, startTime, endTime, format, query, filename, componentName, instanceName, maxLines, options);
|
|
14565
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14566
|
+
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;
|
|
14567
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14568
|
+
},
|
|
14057
14569
|
/**
|
|
14058
14570
|
*
|
|
14059
14571
|
* @summary Export parameter template from cluster
|
|
@@ -14701,6 +15213,25 @@ const SharedApiFp = function (configuration) {
|
|
|
14701
15213
|
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;
|
|
14702
15214
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14703
15215
|
},
|
|
15216
|
+
/**
|
|
15217
|
+
* Query slow-log statistics through the Loki compatibility API.
|
|
15218
|
+
* @summary Query Loki slow-log statistics
|
|
15219
|
+
* @param {string} orgName
|
|
15220
|
+
* @param {string} clusterName
|
|
15221
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
15222
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
15223
|
+
* @param {string} [componentName]
|
|
15224
|
+
* @param {string} [instanceName]
|
|
15225
|
+
* @param {*} [options] Override http request option.
|
|
15226
|
+
* @throws {RequiredError}
|
|
15227
|
+
*/
|
|
15228
|
+
async getLokiSlowLogStats(orgName, clusterName, startTime, endTime, componentName, instanceName, options) {
|
|
15229
|
+
var _a, _b, _c;
|
|
15230
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getLokiSlowLogStats(orgName, clusterName, startTime, endTime, componentName, instanceName, options);
|
|
15231
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15232
|
+
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;
|
|
15233
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15234
|
+
},
|
|
14704
15235
|
/**
|
|
14705
15236
|
* Get a Milvus native role and its privilege grants.
|
|
14706
15237
|
* @summary Get Milvus role
|
|
@@ -16376,6 +16907,117 @@ const SharedApiFp = function (configuration) {
|
|
|
16376
16907
|
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;
|
|
16377
16908
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16378
16909
|
},
|
|
16910
|
+
/**
|
|
16911
|
+
* Query audit logs through the Loki compatibility API.
|
|
16912
|
+
* @summary Query Loki audit logs
|
|
16913
|
+
* @param {string} orgName
|
|
16914
|
+
* @param {string} clusterName
|
|
16915
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
16916
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
16917
|
+
* @param {string} [limit]
|
|
16918
|
+
* @param {string} [componentName]
|
|
16919
|
+
* @param {string} [instanceName]
|
|
16920
|
+
* @param {SortType} [sortType]
|
|
16921
|
+
* @param {*} [options] Override http request option.
|
|
16922
|
+
* @throws {RequiredError}
|
|
16923
|
+
*/
|
|
16924
|
+
async queryLokiAuditLogs(orgName, clusterName, startTime, endTime, limit, componentName, instanceName, sortType, options) {
|
|
16925
|
+
var _a, _b, _c;
|
|
16926
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiAuditLogs(orgName, clusterName, startTime, endTime, limit, componentName, instanceName, sortType, options);
|
|
16927
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16928
|
+
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;
|
|
16929
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16930
|
+
},
|
|
16931
|
+
/**
|
|
16932
|
+
* Query error logs through the Loki compatibility API.
|
|
16933
|
+
* @summary Query Loki error logs
|
|
16934
|
+
* @param {string} orgName
|
|
16935
|
+
* @param {string} clusterName
|
|
16936
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
16937
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
16938
|
+
* @param {string} [componentName]
|
|
16939
|
+
* @param {string} [instanceName]
|
|
16940
|
+
* @param {string} [filename]
|
|
16941
|
+
* @param {string} [query]
|
|
16942
|
+
* @param {string} [limit]
|
|
16943
|
+
* @param {SortType} [sortType]
|
|
16944
|
+
* @param {*} [options] Override http request option.
|
|
16945
|
+
* @throws {RequiredError}
|
|
16946
|
+
*/
|
|
16947
|
+
async queryLokiErrorLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, query, limit, sortType, options) {
|
|
16948
|
+
var _a, _b, _c;
|
|
16949
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiErrorLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, query, limit, sortType, options);
|
|
16950
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16951
|
+
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;
|
|
16952
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16953
|
+
},
|
|
16954
|
+
/**
|
|
16955
|
+
* Query pod logs through the Loki compatibility API.
|
|
16956
|
+
* @summary Query Loki pod logs
|
|
16957
|
+
* @param {string} orgName
|
|
16958
|
+
* @param {string} clusterName
|
|
16959
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
16960
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
16961
|
+
* @param {string} [componentName]
|
|
16962
|
+
* @param {string} [instanceName]
|
|
16963
|
+
* @param {string} [filename]
|
|
16964
|
+
* @param {string} [limit]
|
|
16965
|
+
* @param {SortType} [sortType]
|
|
16966
|
+
* @param {*} [options] Override http request option.
|
|
16967
|
+
* @throws {RequiredError}
|
|
16968
|
+
*/
|
|
16969
|
+
async queryLokiPodLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, sortType, options) {
|
|
16970
|
+
var _a, _b, _c;
|
|
16971
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiPodLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, sortType, options);
|
|
16972
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16973
|
+
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;
|
|
16974
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16975
|
+
},
|
|
16976
|
+
/**
|
|
16977
|
+
* Query running logs through the Loki compatibility API.
|
|
16978
|
+
* @summary Query Loki running logs
|
|
16979
|
+
* @param {string} orgName
|
|
16980
|
+
* @param {string} clusterName
|
|
16981
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
16982
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
16983
|
+
* @param {string} [componentName]
|
|
16984
|
+
* @param {string} [instanceName]
|
|
16985
|
+
* @param {string} [filename]
|
|
16986
|
+
* @param {string} [limit]
|
|
16987
|
+
* @param {string} [query]
|
|
16988
|
+
* @param {SortType} [sortType]
|
|
16989
|
+
* @param {*} [options] Override http request option.
|
|
16990
|
+
* @throws {RequiredError}
|
|
16991
|
+
*/
|
|
16992
|
+
async queryLokiRunningLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, query, sortType, options) {
|
|
16993
|
+
var _a, _b, _c;
|
|
16994
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiRunningLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, query, sortType, options);
|
|
16995
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16996
|
+
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;
|
|
16997
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16998
|
+
},
|
|
16999
|
+
/**
|
|
17000
|
+
* Query slow logs through the Loki compatibility API.
|
|
17001
|
+
* @summary Query Loki slow logs
|
|
17002
|
+
* @param {string} orgName
|
|
17003
|
+
* @param {string} clusterName
|
|
17004
|
+
* @param {string} startTime Start time in epoch nanoseconds.
|
|
17005
|
+
* @param {string} endTime End time in epoch nanoseconds.
|
|
17006
|
+
* @param {string} [componentName]
|
|
17007
|
+
* @param {string} [instanceName]
|
|
17008
|
+
* @param {string} [query]
|
|
17009
|
+
* @param {string} [limit]
|
|
17010
|
+
* @param {SortType} [sortType]
|
|
17011
|
+
* @param {*} [options] Override http request option.
|
|
17012
|
+
* @throws {RequiredError}
|
|
17013
|
+
*/
|
|
17014
|
+
async queryLokiSlowLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, query, limit, sortType, options) {
|
|
17015
|
+
var _a, _b, _c;
|
|
17016
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiSlowLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, query, limit, sortType, options);
|
|
17017
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17018
|
+
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;
|
|
17019
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17020
|
+
},
|
|
16379
17021
|
/**
|
|
16380
17022
|
* Query pod logs of a cluster
|
|
16381
17023
|
* @summary Query cluster pod logs
|
|
@@ -18201,6 +18843,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
18201
18843
|
exportClusterLogs(requestParameters, options) {
|
|
18202
18844
|
return localVarFp.exportClusterLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.logType, requestParameters.startTime, requestParameters.endTime, requestParameters.format, requestParameters.query, requestParameters.filename, requestParameters.componentName, requestParameters.instanceName, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, requestParameters.maxLines, options).then((request) => request(axios, basePath));
|
|
18203
18845
|
},
|
|
18846
|
+
/**
|
|
18847
|
+
* Export logs through the Loki compatibility API.
|
|
18848
|
+
* @summary Export Loki logs
|
|
18849
|
+
* @param {SharedApiExportLokiClusterLogsRequest} requestParameters Request parameters.
|
|
18850
|
+
* @param {*} [options] Override http request option.
|
|
18851
|
+
* @throws {RequiredError}
|
|
18852
|
+
*/
|
|
18853
|
+
exportLokiClusterLogs(requestParameters, options) {
|
|
18854
|
+
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));
|
|
18855
|
+
},
|
|
18204
18856
|
/**
|
|
18205
18857
|
*
|
|
18206
18858
|
* @summary Export parameter template from cluster
|
|
@@ -18600,6 +19252,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
18600
19252
|
getKafkaTopics(requestParameters, options) {
|
|
18601
19253
|
return localVarFp.getKafkaTopics(requestParameters.orgName, requestParameters.clusterName, requestParameters.nameFilter, requestParameters.onlyNames, options).then((request) => request(axios, basePath));
|
|
18602
19254
|
},
|
|
19255
|
+
/**
|
|
19256
|
+
* Query slow-log statistics through the Loki compatibility API.
|
|
19257
|
+
* @summary Query Loki slow-log statistics
|
|
19258
|
+
* @param {SharedApiGetLokiSlowLogStatsRequest} requestParameters Request parameters.
|
|
19259
|
+
* @param {*} [options] Override http request option.
|
|
19260
|
+
* @throws {RequiredError}
|
|
19261
|
+
*/
|
|
19262
|
+
getLokiSlowLogStats(requestParameters, options) {
|
|
19263
|
+
return localVarFp.getLokiSlowLogStats(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, options).then((request) => request(axios, basePath));
|
|
19264
|
+
},
|
|
18603
19265
|
/**
|
|
18604
19266
|
* Get a Milvus native role and its privilege grants.
|
|
18605
19267
|
* @summary Get Milvus role
|
|
@@ -19598,6 +20260,56 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
19598
20260
|
queryLogHits(requestParameters, options) {
|
|
19599
20261
|
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));
|
|
19600
20262
|
},
|
|
20263
|
+
/**
|
|
20264
|
+
* Query audit logs through the Loki compatibility API.
|
|
20265
|
+
* @summary Query Loki audit logs
|
|
20266
|
+
* @param {SharedApiQueryLokiAuditLogsRequest} requestParameters Request parameters.
|
|
20267
|
+
* @param {*} [options] Override http request option.
|
|
20268
|
+
* @throws {RequiredError}
|
|
20269
|
+
*/
|
|
20270
|
+
queryLokiAuditLogs(requestParameters, options) {
|
|
20271
|
+
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));
|
|
20272
|
+
},
|
|
20273
|
+
/**
|
|
20274
|
+
* Query error logs through the Loki compatibility API.
|
|
20275
|
+
* @summary Query Loki error logs
|
|
20276
|
+
* @param {SharedApiQueryLokiErrorLogsRequest} requestParameters Request parameters.
|
|
20277
|
+
* @param {*} [options] Override http request option.
|
|
20278
|
+
* @throws {RequiredError}
|
|
20279
|
+
*/
|
|
20280
|
+
queryLokiErrorLogs(requestParameters, options) {
|
|
20281
|
+
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));
|
|
20282
|
+
},
|
|
20283
|
+
/**
|
|
20284
|
+
* Query pod logs through the Loki compatibility API.
|
|
20285
|
+
* @summary Query Loki pod logs
|
|
20286
|
+
* @param {SharedApiQueryLokiPodLogsRequest} requestParameters Request parameters.
|
|
20287
|
+
* @param {*} [options] Override http request option.
|
|
20288
|
+
* @throws {RequiredError}
|
|
20289
|
+
*/
|
|
20290
|
+
queryLokiPodLogs(requestParameters, options) {
|
|
20291
|
+
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));
|
|
20292
|
+
},
|
|
20293
|
+
/**
|
|
20294
|
+
* Query running logs through the Loki compatibility API.
|
|
20295
|
+
* @summary Query Loki running logs
|
|
20296
|
+
* @param {SharedApiQueryLokiRunningLogsRequest} requestParameters Request parameters.
|
|
20297
|
+
* @param {*} [options] Override http request option.
|
|
20298
|
+
* @throws {RequiredError}
|
|
20299
|
+
*/
|
|
20300
|
+
queryLokiRunningLogs(requestParameters, options) {
|
|
20301
|
+
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));
|
|
20302
|
+
},
|
|
20303
|
+
/**
|
|
20304
|
+
* Query slow logs through the Loki compatibility API.
|
|
20305
|
+
* @summary Query Loki slow logs
|
|
20306
|
+
* @param {SharedApiQueryLokiSlowLogsRequest} requestParameters Request parameters.
|
|
20307
|
+
* @param {*} [options] Override http request option.
|
|
20308
|
+
* @throws {RequiredError}
|
|
20309
|
+
*/
|
|
20310
|
+
queryLokiSlowLogs(requestParameters, options) {
|
|
20311
|
+
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));
|
|
20312
|
+
},
|
|
19601
20313
|
/**
|
|
19602
20314
|
* Query pod logs of a cluster
|
|
19603
20315
|
* @summary Query cluster pod logs
|
|
@@ -21042,6 +21754,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
21042
21754
|
exportClusterLogs(requestParameters, options) {
|
|
21043
21755
|
return (0, exports.SharedApiFp)(this.configuration).exportClusterLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.logType, requestParameters.startTime, requestParameters.endTime, requestParameters.format, requestParameters.query, requestParameters.filename, requestParameters.componentName, requestParameters.instanceName, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, requestParameters.maxLines, options).then((request) => request(this.axios, this.basePath));
|
|
21044
21756
|
}
|
|
21757
|
+
/**
|
|
21758
|
+
* Export logs through the Loki compatibility API.
|
|
21759
|
+
* @summary Export Loki logs
|
|
21760
|
+
* @param {SharedApiExportLokiClusterLogsRequest} requestParameters Request parameters.
|
|
21761
|
+
* @param {*} [options] Override http request option.
|
|
21762
|
+
* @throws {RequiredError}
|
|
21763
|
+
* @memberof SharedApi
|
|
21764
|
+
*/
|
|
21765
|
+
exportLokiClusterLogs(requestParameters, options) {
|
|
21766
|
+
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));
|
|
21767
|
+
}
|
|
21045
21768
|
/**
|
|
21046
21769
|
*
|
|
21047
21770
|
* @summary Export parameter template from cluster
|
|
@@ -21481,6 +22204,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
21481
22204
|
getKafkaTopics(requestParameters, options) {
|
|
21482
22205
|
return (0, exports.SharedApiFp)(this.configuration).getKafkaTopics(requestParameters.orgName, requestParameters.clusterName, requestParameters.nameFilter, requestParameters.onlyNames, options).then((request) => request(this.axios, this.basePath));
|
|
21483
22206
|
}
|
|
22207
|
+
/**
|
|
22208
|
+
* Query slow-log statistics through the Loki compatibility API.
|
|
22209
|
+
* @summary Query Loki slow-log statistics
|
|
22210
|
+
* @param {SharedApiGetLokiSlowLogStatsRequest} requestParameters Request parameters.
|
|
22211
|
+
* @param {*} [options] Override http request option.
|
|
22212
|
+
* @throws {RequiredError}
|
|
22213
|
+
* @memberof SharedApi
|
|
22214
|
+
*/
|
|
22215
|
+
getLokiSlowLogStats(requestParameters, options) {
|
|
22216
|
+
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));
|
|
22217
|
+
}
|
|
21484
22218
|
/**
|
|
21485
22219
|
* Get a Milvus native role and its privilege grants.
|
|
21486
22220
|
* @summary Get Milvus role
|
|
@@ -22579,6 +23313,61 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
22579
23313
|
queryLogHits(requestParameters, options) {
|
|
22580
23314
|
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));
|
|
22581
23315
|
}
|
|
23316
|
+
/**
|
|
23317
|
+
* Query audit logs through the Loki compatibility API.
|
|
23318
|
+
* @summary Query Loki audit logs
|
|
23319
|
+
* @param {SharedApiQueryLokiAuditLogsRequest} requestParameters Request parameters.
|
|
23320
|
+
* @param {*} [options] Override http request option.
|
|
23321
|
+
* @throws {RequiredError}
|
|
23322
|
+
* @memberof SharedApi
|
|
23323
|
+
*/
|
|
23324
|
+
queryLokiAuditLogs(requestParameters, options) {
|
|
23325
|
+
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));
|
|
23326
|
+
}
|
|
23327
|
+
/**
|
|
23328
|
+
* Query error logs through the Loki compatibility API.
|
|
23329
|
+
* @summary Query Loki error logs
|
|
23330
|
+
* @param {SharedApiQueryLokiErrorLogsRequest} requestParameters Request parameters.
|
|
23331
|
+
* @param {*} [options] Override http request option.
|
|
23332
|
+
* @throws {RequiredError}
|
|
23333
|
+
* @memberof SharedApi
|
|
23334
|
+
*/
|
|
23335
|
+
queryLokiErrorLogs(requestParameters, options) {
|
|
23336
|
+
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));
|
|
23337
|
+
}
|
|
23338
|
+
/**
|
|
23339
|
+
* Query pod logs through the Loki compatibility API.
|
|
23340
|
+
* @summary Query Loki pod logs
|
|
23341
|
+
* @param {SharedApiQueryLokiPodLogsRequest} requestParameters Request parameters.
|
|
23342
|
+
* @param {*} [options] Override http request option.
|
|
23343
|
+
* @throws {RequiredError}
|
|
23344
|
+
* @memberof SharedApi
|
|
23345
|
+
*/
|
|
23346
|
+
queryLokiPodLogs(requestParameters, options) {
|
|
23347
|
+
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));
|
|
23348
|
+
}
|
|
23349
|
+
/**
|
|
23350
|
+
* Query running logs through the Loki compatibility API.
|
|
23351
|
+
* @summary Query Loki running logs
|
|
23352
|
+
* @param {SharedApiQueryLokiRunningLogsRequest} requestParameters Request parameters.
|
|
23353
|
+
* @param {*} [options] Override http request option.
|
|
23354
|
+
* @throws {RequiredError}
|
|
23355
|
+
* @memberof SharedApi
|
|
23356
|
+
*/
|
|
23357
|
+
queryLokiRunningLogs(requestParameters, options) {
|
|
23358
|
+
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));
|
|
23359
|
+
}
|
|
23360
|
+
/**
|
|
23361
|
+
* Query slow logs through the Loki compatibility API.
|
|
23362
|
+
* @summary Query Loki slow logs
|
|
23363
|
+
* @param {SharedApiQueryLokiSlowLogsRequest} requestParameters Request parameters.
|
|
23364
|
+
* @param {*} [options] Override http request option.
|
|
23365
|
+
* @throws {RequiredError}
|
|
23366
|
+
* @memberof SharedApi
|
|
23367
|
+
*/
|
|
23368
|
+
queryLokiSlowLogs(requestParameters, options) {
|
|
23369
|
+
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));
|
|
23370
|
+
}
|
|
22582
23371
|
/**
|
|
22583
23372
|
* Query pod logs of a cluster
|
|
22584
23373
|
* @summary Query cluster pod logs
|