kb-cloud-client-typescript 2.3.0-alpha.227 → 2.3.0-alpha.228

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.
Files changed (61) hide show
  1. package/dist/adminapi/api.d.ts +1 -0
  2. package/dist/adminapi/api.d.ts.map +1 -1
  3. package/dist/adminapi/api.js +1 -0
  4. package/dist/adminapi/api.js.map +1 -1
  5. package/dist/adminapi/apis/cluster-loki-log-api.d.ts +885 -0
  6. package/dist/adminapi/apis/cluster-loki-log-api.d.ts.map +1 -0
  7. package/dist/adminapi/apis/cluster-loki-log-api.js +853 -0
  8. package/dist/adminapi/apis/cluster-loki-log-api.js.map +1 -0
  9. package/dist/adminapi/apis/shared-api.d.ts +848 -15
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +845 -56
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/environment.d.ts +7 -0
  14. package/dist/adminapi/models/environment.d.ts.map +1 -1
  15. package/dist/adminapi/models/index.d.ts +1 -0
  16. package/dist/adminapi/models/index.d.ts.map +1 -1
  17. package/dist/adminapi/models/index.js +1 -0
  18. package/dist/adminapi/models/index.js.map +1 -1
  19. package/dist/adminapi/models/log-backend-type.d.ts +22 -0
  20. package/dist/adminapi/models/log-backend-type.d.ts.map +1 -0
  21. package/dist/adminapi/models/log-backend-type.js +26 -0
  22. package/dist/adminapi/models/log-backend-type.js.map +1 -0
  23. package/dist/openapi/api.d.ts +1 -0
  24. package/dist/openapi/api.d.ts.map +1 -1
  25. package/dist/openapi/api.js +1 -0
  26. package/dist/openapi/api.js.map +1 -1
  27. package/dist/openapi/apis/cluster-loki-log-api.d.ts +885 -0
  28. package/dist/openapi/apis/cluster-loki-log-api.d.ts.map +1 -0
  29. package/dist/openapi/apis/cluster-loki-log-api.js +853 -0
  30. package/dist/openapi/apis/cluster-loki-log-api.js.map +1 -0
  31. package/dist/openapi/apis/shared-api.d.ts +844 -11
  32. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  33. package/dist/openapi/apis/shared-api.js +845 -56
  34. package/dist/openapi/apis/shared-api.js.map +1 -1
  35. package/dist/openapi/models/environment.d.ts +7 -0
  36. package/dist/openapi/models/environment.d.ts.map +1 -1
  37. package/dist/openapi/models/index.d.ts +1 -0
  38. package/dist/openapi/models/index.d.ts.map +1 -1
  39. package/dist/openapi/models/index.js +1 -0
  40. package/dist/openapi/models/index.js.map +1 -1
  41. package/dist/openapi/models/log-backend-type.d.ts +22 -0
  42. package/dist/openapi/models/log-backend-type.d.ts.map +1 -0
  43. package/dist/openapi/models/log-backend-type.js +26 -0
  44. package/dist/openapi/models/log-backend-type.js.map +1 -0
  45. package/package.json +1 -1
  46. package/src/adminapi/.openapi-generator/FILES +2 -0
  47. package/src/adminapi/api.ts +1 -0
  48. package/src/adminapi/apis/cluster-loki-log-api.ts +1525 -0
  49. package/src/adminapi/apis/shared-api.ts +1620 -173
  50. package/src/adminapi/models/environment.ts +9 -0
  51. package/src/adminapi/models/index.ts +1 -0
  52. package/src/adminapi/models/log-backend-type.ts +31 -0
  53. package/src/adminapi.yaml +309 -0
  54. package/src/openapi/.openapi-generator/FILES +2 -0
  55. package/src/openapi/api.ts +1 -0
  56. package/src/openapi/apis/cluster-loki-log-api.ts +1525 -0
  57. package/src/openapi/apis/shared-api.ts +1620 -173
  58. package/src/openapi/models/environment.ts +9 -0
  59. package/src/openapi/models/index.ts +1 -0
  60. package/src/openapi/models/log-backend-type.ts +31 -0
  61. package/src/openapi.yaml +309 -0
@@ -4326,6 +4326,98 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
4326
4326
 
4327
4327
 
4328
4328
 
4329
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4330
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4331
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4332
+
4333
+ return {
4334
+ url: toPathString(localVarUrlObj),
4335
+ options: localVarRequestOptions,
4336
+ };
4337
+ },
4338
+ /**
4339
+ * Export logs through the Loki compatibility API.
4340
+ * @summary Export Loki logs
4341
+ * @param {string} orgName
4342
+ * @param {string} clusterName
4343
+ * @param {string} logType Log type: runninglog, errorlog, slow, auditlog
4344
+ * @param {number} [startTime] Start time in epoch nanoseconds. If omitted, exports from the earliest available log
4345
+ * @param {number} [endTime] End time in epoch nanoseconds. If omitted, exports up to the latest available log
4346
+ * @param {string} [format] Export format: csv, raw, jsonl
4347
+ * @param {string} [query]
4348
+ * @param {string} [filename]
4349
+ * @param {string} [componentName]
4350
+ * @param {string} [instanceName]
4351
+ * @param {number} [maxLines] Maximum number of lines to export. Defaults to 100000 if omitted
4352
+ * @param {*} [options] Override http request option.
4353
+ * @throws {RequiredError}
4354
+ */
4355
+ exportLokiClusterLogs: async (orgName: string, clusterName: string, logType: string, startTime?: number, endTime?: number, format?: string, query?: string, filename?: string, componentName?: string, instanceName?: string, maxLines?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4356
+ // verify required parameter 'orgName' is not null or undefined
4357
+ assertParamExists('exportLokiClusterLogs', 'orgName', orgName)
4358
+ // verify required parameter 'clusterName' is not null or undefined
4359
+ assertParamExists('exportLokiClusterLogs', 'clusterName', clusterName)
4360
+ // verify required parameter 'logType' is not null or undefined
4361
+ assertParamExists('exportLokiClusterLogs', 'logType', logType)
4362
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/export`
4363
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
4364
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
4365
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4366
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4367
+ let baseOptions;
4368
+ if (configuration) {
4369
+ baseOptions = configuration.baseOptions;
4370
+ }
4371
+
4372
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4373
+ const localVarHeaderParameter = {} as any;
4374
+ const localVarQueryParameter = {} as any;
4375
+
4376
+ // authentication BearerToken required
4377
+ // http bearer authentication required
4378
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4379
+
4380
+ // authentication DigestAuth required
4381
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4382
+
4383
+ if (logType !== undefined) {
4384
+ localVarQueryParameter['logType'] = logType;
4385
+ }
4386
+
4387
+ if (startTime !== undefined) {
4388
+ localVarQueryParameter['startTime'] = startTime;
4389
+ }
4390
+
4391
+ if (endTime !== undefined) {
4392
+ localVarQueryParameter['endTime'] = endTime;
4393
+ }
4394
+
4395
+ if (format !== undefined) {
4396
+ localVarQueryParameter['format'] = format;
4397
+ }
4398
+
4399
+ if (query !== undefined) {
4400
+ localVarQueryParameter['query'] = query;
4401
+ }
4402
+
4403
+ if (filename !== undefined) {
4404
+ localVarQueryParameter['filename'] = filename;
4405
+ }
4406
+
4407
+ if (componentName !== undefined) {
4408
+ localVarQueryParameter['componentName'] = componentName;
4409
+ }
4410
+
4411
+ if (instanceName !== undefined) {
4412
+ localVarQueryParameter['instanceName'] = instanceName;
4413
+ }
4414
+
4415
+ if (maxLines !== undefined) {
4416
+ localVarQueryParameter['maxLines'] = maxLines;
4417
+ }
4418
+
4419
+
4420
+
4329
4421
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4330
4422
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4331
4423
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -6327,25 +6419,29 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
6327
6419
  };
6328
6420
  },
6329
6421
  /**
6330
- * Get a Milvus native role and its privilege grants.
6331
- * @summary Get Milvus role
6332
- * @param {string} orgName name of the Org
6333
- * @param {string} clusterName name of the Cluster
6334
- * @param {string} roleName name of the Milvus role
6422
+ * Query slow-log statistics through the Loki compatibility API.
6423
+ * @summary Query Loki slow-log statistics
6424
+ * @param {string} orgName
6425
+ * @param {string} clusterName
6426
+ * @param {string} startTime Start time in epoch nanoseconds.
6427
+ * @param {string} endTime End time in epoch nanoseconds.
6428
+ * @param {string} [componentName]
6429
+ * @param {string} [instanceName]
6335
6430
  * @param {*} [options] Override http request option.
6336
6431
  * @throws {RequiredError}
6337
6432
  */
6338
- getMilvusRole: async (orgName: string, clusterName: string, roleName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6433
+ getLokiSlowLogStats: async (orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6339
6434
  // verify required parameter 'orgName' is not null or undefined
6340
- assertParamExists('getMilvusRole', 'orgName', orgName)
6435
+ assertParamExists('getLokiSlowLogStats', 'orgName', orgName)
6341
6436
  // verify required parameter 'clusterName' is not null or undefined
6342
- assertParamExists('getMilvusRole', 'clusterName', clusterName)
6343
- // verify required parameter 'roleName' is not null or undefined
6344
- assertParamExists('getMilvusRole', 'roleName', roleName)
6345
- const localVarPath = `/admin/v1/data/milvus/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
6437
+ assertParamExists('getLokiSlowLogStats', 'clusterName', clusterName)
6438
+ // verify required parameter 'startTime' is not null or undefined
6439
+ assertParamExists('getLokiSlowLogStats', 'startTime', startTime)
6440
+ // verify required parameter 'endTime' is not null or undefined
6441
+ assertParamExists('getLokiSlowLogStats', 'endTime', endTime)
6442
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/slow/stats`
6346
6443
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6347
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
6348
- .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
6444
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
6349
6445
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6350
6446
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6351
6447
  let baseOptions;
@@ -6364,158 +6460,22 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
6364
6460
  // authentication DigestAuth required
6365
6461
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6366
6462
 
6367
-
6368
-
6369
- setSearchParams(localVarUrlObj, localVarQueryParameter);
6370
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6371
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6372
-
6373
- return {
6374
- url: toPathString(localVarUrlObj),
6375
- options: localVarRequestOptions,
6376
- };
6377
- },
6378
- /**
6379
- *
6380
- * @summary get the detail object info
6381
- * @param {string} orgName name of the Org
6382
- * @param {string} clusterName name of the cluster
6383
- * @param {string} id id of the datasource
6384
- * @param {string} schema schema or database name
6385
- * @param {string} type object type
6386
- * @param {string} objectName object name
6387
- * @param {string} [database] database name, used by engines such as MSSQL when reading object metadata inside a schema
6388
- * @param {*} [options] Override http request option.
6389
- * @throws {RequiredError}
6390
- */
6391
- getObjectInfo: async (orgName: string, clusterName: string, id: string, schema: string, type: string, objectName: string, database?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6392
- // verify required parameter 'orgName' is not null or undefined
6393
- assertParamExists('getObjectInfo', 'orgName', orgName)
6394
- // verify required parameter 'clusterName' is not null or undefined
6395
- assertParamExists('getObjectInfo', 'clusterName', clusterName)
6396
- // verify required parameter 'id' is not null or undefined
6397
- assertParamExists('getObjectInfo', 'id', id)
6398
- // verify required parameter 'schema' is not null or undefined
6399
- assertParamExists('getObjectInfo', 'schema', schema)
6400
- // verify required parameter 'type' is not null or undefined
6401
- assertParamExists('getObjectInfo', 'type', type)
6402
- // verify required parameter 'objectName' is not null or undefined
6403
- assertParamExists('getObjectInfo', 'objectName', objectName)
6404
- const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/{schema}/{type}/{objectName}`
6405
- .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6406
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
6407
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
6408
- .replace(`{${"schema"}}`, encodeURIComponent(String(schema)))
6409
- .replace(`{${"type"}}`, encodeURIComponent(String(type)))
6410
- .replace(`{${"objectName"}}`, encodeURIComponent(String(objectName)));
6411
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
6412
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6413
- let baseOptions;
6414
- if (configuration) {
6415
- baseOptions = configuration.baseOptions;
6463
+ if (startTime !== undefined) {
6464
+ localVarQueryParameter['startTime'] = startTime;
6416
6465
  }
6417
6466
 
6418
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6419
- const localVarHeaderParameter = {} as any;
6420
- const localVarQueryParameter = {} as any;
6421
-
6422
- // authentication BearerToken required
6423
- // http bearer authentication required
6424
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
6425
-
6426
- // authentication DigestAuth required
6427
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6428
-
6429
- if (database !== undefined) {
6430
- localVarQueryParameter['database'] = database;
6467
+ if (endTime !== undefined) {
6468
+ localVarQueryParameter['endTime'] = endTime;
6431
6469
  }
6432
6470
 
6433
-
6434
-
6435
- setSearchParams(localVarUrlObj, localVarQueryParameter);
6436
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6437
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6438
-
6439
- return {
6440
- url: toPathString(localVarUrlObj),
6441
- options: localVarRequestOptions,
6442
- };
6443
- },
6444
- /**
6445
- *
6446
- * @summary Get a parameter of an organization
6447
- * @param {string} orgName The name of the organization
6448
- * @param {string} parameterName The name of the parameter
6449
- * @param {*} [options] Override http request option.
6450
- * @throws {RequiredError}
6451
- */
6452
- getOrgParameter: async (orgName: string, parameterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6453
- // verify required parameter 'orgName' is not null or undefined
6454
- assertParamExists('getOrgParameter', 'orgName', orgName)
6455
- // verify required parameter 'parameterName' is not null or undefined
6456
- assertParamExists('getOrgParameter', 'parameterName', parameterName)
6457
- const localVarPath = `/admin/v1/organizations/{orgName}/parameters/{parameterName}`
6458
- .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6459
- .replace(`{${"parameterName"}}`, encodeURIComponent(String(parameterName)));
6460
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
6461
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6462
- let baseOptions;
6463
- if (configuration) {
6464
- baseOptions = configuration.baseOptions;
6471
+ if (componentName !== undefined) {
6472
+ localVarQueryParameter['componentName'] = componentName;
6465
6473
  }
6466
6474
 
6467
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6468
- const localVarHeaderParameter = {} as any;
6469
- const localVarQueryParameter = {} as any;
6470
-
6471
- // authentication BearerToken required
6472
- // http bearer authentication required
6473
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
6474
-
6475
- // authentication DigestAuth required
6476
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6477
-
6478
-
6479
-
6480
- setSearchParams(localVarUrlObj, localVarQueryParameter);
6481
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6482
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6483
-
6484
- return {
6485
- url: toPathString(localVarUrlObj),
6486
- options: localVarRequestOptions,
6487
- };
6488
- },
6489
- /**
6490
- *
6491
- * @summary get platformParameter by name
6492
- * @param {string} platformParameterName name of the platformParameter
6493
- * @param {*} [options] Override http request option.
6494
- * @throws {RequiredError}
6495
- */
6496
- getPlatformParameter: async (platformParameterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6497
- // verify required parameter 'platformParameterName' is not null or undefined
6498
- assertParamExists('getPlatformParameter', 'platformParameterName', platformParameterName)
6499
- const localVarPath = `/admin/v1/platformParameters/{platformParameterName}`
6500
- .replace(`{${"platformParameterName"}}`, encodeURIComponent(String(platformParameterName)));
6501
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
6502
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6503
- let baseOptions;
6504
- if (configuration) {
6505
- baseOptions = configuration.baseOptions;
6475
+ if (instanceName !== undefined) {
6476
+ localVarQueryParameter['instanceName'] = instanceName;
6506
6477
  }
6507
6478
 
6508
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6509
- const localVarHeaderParameter = {} as any;
6510
- const localVarQueryParameter = {} as any;
6511
-
6512
- // authentication BearerToken required
6513
- // http bearer authentication required
6514
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
6515
-
6516
- // authentication DigestAuth required
6517
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6518
-
6519
6479
 
6520
6480
 
6521
6481
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -6528,21 +6488,222 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
6528
6488
  };
6529
6489
  },
6530
6490
  /**
6531
- *
6532
- * @summary Get cluster in the Recycle Bin of the Org
6491
+ * Get a Milvus native role and its privilege grants.
6492
+ * @summary Get Milvus role
6533
6493
  * @param {string} orgName name of the Org
6534
- * @param {string} clusterName name of the cluster
6494
+ * @param {string} clusterName name of the Cluster
6495
+ * @param {string} roleName name of the Milvus role
6535
6496
  * @param {*} [options] Override http request option.
6536
6497
  * @throws {RequiredError}
6537
6498
  */
6538
- getRecycleBinCluster: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6499
+ getMilvusRole: async (orgName: string, clusterName: string, roleName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6539
6500
  // verify required parameter 'orgName' is not null or undefined
6540
- assertParamExists('getRecycleBinCluster', 'orgName', orgName)
6501
+ assertParamExists('getMilvusRole', 'orgName', orgName)
6541
6502
  // verify required parameter 'clusterName' is not null or undefined
6542
- assertParamExists('getRecycleBinCluster', 'clusterName', clusterName)
6543
- const localVarPath = `/admin/v1/organizations/{orgName}/recycleBin/clusters/{clusterName}`
6503
+ assertParamExists('getMilvusRole', 'clusterName', clusterName)
6504
+ // verify required parameter 'roleName' is not null or undefined
6505
+ assertParamExists('getMilvusRole', 'roleName', roleName)
6506
+ const localVarPath = `/admin/v1/data/milvus/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
6544
6507
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6545
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
6508
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
6509
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
6510
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6511
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6512
+ let baseOptions;
6513
+ if (configuration) {
6514
+ baseOptions = configuration.baseOptions;
6515
+ }
6516
+
6517
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6518
+ const localVarHeaderParameter = {} as any;
6519
+ const localVarQueryParameter = {} as any;
6520
+
6521
+ // authentication BearerToken required
6522
+ // http bearer authentication required
6523
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6524
+
6525
+ // authentication DigestAuth required
6526
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6527
+
6528
+
6529
+
6530
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6531
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6532
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6533
+
6534
+ return {
6535
+ url: toPathString(localVarUrlObj),
6536
+ options: localVarRequestOptions,
6537
+ };
6538
+ },
6539
+ /**
6540
+ *
6541
+ * @summary get the detail object info
6542
+ * @param {string} orgName name of the Org
6543
+ * @param {string} clusterName name of the cluster
6544
+ * @param {string} id id of the datasource
6545
+ * @param {string} schema schema or database name
6546
+ * @param {string} type object type
6547
+ * @param {string} objectName object name
6548
+ * @param {string} [database] database name, used by engines such as MSSQL when reading object metadata inside a schema
6549
+ * @param {*} [options] Override http request option.
6550
+ * @throws {RequiredError}
6551
+ */
6552
+ getObjectInfo: async (orgName: string, clusterName: string, id: string, schema: string, type: string, objectName: string, database?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6553
+ // verify required parameter 'orgName' is not null or undefined
6554
+ assertParamExists('getObjectInfo', 'orgName', orgName)
6555
+ // verify required parameter 'clusterName' is not null or undefined
6556
+ assertParamExists('getObjectInfo', 'clusterName', clusterName)
6557
+ // verify required parameter 'id' is not null or undefined
6558
+ assertParamExists('getObjectInfo', 'id', id)
6559
+ // verify required parameter 'schema' is not null or undefined
6560
+ assertParamExists('getObjectInfo', 'schema', schema)
6561
+ // verify required parameter 'type' is not null or undefined
6562
+ assertParamExists('getObjectInfo', 'type', type)
6563
+ // verify required parameter 'objectName' is not null or undefined
6564
+ assertParamExists('getObjectInfo', 'objectName', objectName)
6565
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/{schema}/{type}/{objectName}`
6566
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6567
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
6568
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
6569
+ .replace(`{${"schema"}}`, encodeURIComponent(String(schema)))
6570
+ .replace(`{${"type"}}`, encodeURIComponent(String(type)))
6571
+ .replace(`{${"objectName"}}`, encodeURIComponent(String(objectName)));
6572
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6573
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6574
+ let baseOptions;
6575
+ if (configuration) {
6576
+ baseOptions = configuration.baseOptions;
6577
+ }
6578
+
6579
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6580
+ const localVarHeaderParameter = {} as any;
6581
+ const localVarQueryParameter = {} as any;
6582
+
6583
+ // authentication BearerToken required
6584
+ // http bearer authentication required
6585
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6586
+
6587
+ // authentication DigestAuth required
6588
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6589
+
6590
+ if (database !== undefined) {
6591
+ localVarQueryParameter['database'] = database;
6592
+ }
6593
+
6594
+
6595
+
6596
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6597
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6598
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6599
+
6600
+ return {
6601
+ url: toPathString(localVarUrlObj),
6602
+ options: localVarRequestOptions,
6603
+ };
6604
+ },
6605
+ /**
6606
+ *
6607
+ * @summary Get a parameter of an organization
6608
+ * @param {string} orgName The name of the organization
6609
+ * @param {string} parameterName The name of the parameter
6610
+ * @param {*} [options] Override http request option.
6611
+ * @throws {RequiredError}
6612
+ */
6613
+ getOrgParameter: async (orgName: string, parameterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6614
+ // verify required parameter 'orgName' is not null or undefined
6615
+ assertParamExists('getOrgParameter', 'orgName', orgName)
6616
+ // verify required parameter 'parameterName' is not null or undefined
6617
+ assertParamExists('getOrgParameter', 'parameterName', parameterName)
6618
+ const localVarPath = `/admin/v1/organizations/{orgName}/parameters/{parameterName}`
6619
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6620
+ .replace(`{${"parameterName"}}`, encodeURIComponent(String(parameterName)));
6621
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6622
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6623
+ let baseOptions;
6624
+ if (configuration) {
6625
+ baseOptions = configuration.baseOptions;
6626
+ }
6627
+
6628
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6629
+ const localVarHeaderParameter = {} as any;
6630
+ const localVarQueryParameter = {} as any;
6631
+
6632
+ // authentication BearerToken required
6633
+ // http bearer authentication required
6634
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6635
+
6636
+ // authentication DigestAuth required
6637
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6638
+
6639
+
6640
+
6641
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6642
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6643
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6644
+
6645
+ return {
6646
+ url: toPathString(localVarUrlObj),
6647
+ options: localVarRequestOptions,
6648
+ };
6649
+ },
6650
+ /**
6651
+ *
6652
+ * @summary get platformParameter by name
6653
+ * @param {string} platformParameterName name of the platformParameter
6654
+ * @param {*} [options] Override http request option.
6655
+ * @throws {RequiredError}
6656
+ */
6657
+ getPlatformParameter: async (platformParameterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6658
+ // verify required parameter 'platformParameterName' is not null or undefined
6659
+ assertParamExists('getPlatformParameter', 'platformParameterName', platformParameterName)
6660
+ const localVarPath = `/admin/v1/platformParameters/{platformParameterName}`
6661
+ .replace(`{${"platformParameterName"}}`, encodeURIComponent(String(platformParameterName)));
6662
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6663
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6664
+ let baseOptions;
6665
+ if (configuration) {
6666
+ baseOptions = configuration.baseOptions;
6667
+ }
6668
+
6669
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6670
+ const localVarHeaderParameter = {} as any;
6671
+ const localVarQueryParameter = {} as any;
6672
+
6673
+ // authentication BearerToken required
6674
+ // http bearer authentication required
6675
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6676
+
6677
+ // authentication DigestAuth required
6678
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6679
+
6680
+
6681
+
6682
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6683
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6684
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6685
+
6686
+ return {
6687
+ url: toPathString(localVarUrlObj),
6688
+ options: localVarRequestOptions,
6689
+ };
6690
+ },
6691
+ /**
6692
+ *
6693
+ * @summary Get cluster in the Recycle Bin of the Org
6694
+ * @param {string} orgName name of the Org
6695
+ * @param {string} clusterName name of the cluster
6696
+ * @param {*} [options] Override http request option.
6697
+ * @throws {RequiredError}
6698
+ */
6699
+ getRecycleBinCluster: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6700
+ // verify required parameter 'orgName' is not null or undefined
6701
+ assertParamExists('getRecycleBinCluster', 'orgName', orgName)
6702
+ // verify required parameter 'clusterName' is not null or undefined
6703
+ assertParamExists('getRecycleBinCluster', 'clusterName', clusterName)
6704
+ const localVarPath = `/admin/v1/organizations/{orgName}/recycleBin/clusters/{clusterName}`
6705
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6706
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
6546
6707
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6547
6708
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6548
6709
  let baseOptions;
@@ -12067,8 +12228,87 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
12067
12228
  };
12068
12229
  },
12069
12230
  /**
12070
- * Query pod logs of a cluster
12071
- * @summary Query cluster pod logs
12231
+ * Query audit logs through the Loki compatibility API.
12232
+ * @summary Query Loki audit logs
12233
+ * @param {string} orgName
12234
+ * @param {string} clusterName
12235
+ * @param {string} startTime Start time in epoch nanoseconds.
12236
+ * @param {string} endTime End time in epoch nanoseconds.
12237
+ * @param {string} [limit]
12238
+ * @param {string} [componentName]
12239
+ * @param {string} [instanceName]
12240
+ * @param {SortType} [sortType]
12241
+ * @param {*} [options] Override http request option.
12242
+ * @throws {RequiredError}
12243
+ */
12244
+ queryLokiAuditLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, limit?: string, componentName?: string, instanceName?: string, sortType?: SortType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12245
+ // verify required parameter 'orgName' is not null or undefined
12246
+ assertParamExists('queryLokiAuditLogs', 'orgName', orgName)
12247
+ // verify required parameter 'clusterName' is not null or undefined
12248
+ assertParamExists('queryLokiAuditLogs', 'clusterName', clusterName)
12249
+ // verify required parameter 'startTime' is not null or undefined
12250
+ assertParamExists('queryLokiAuditLogs', 'startTime', startTime)
12251
+ // verify required parameter 'endTime' is not null or undefined
12252
+ assertParamExists('queryLokiAuditLogs', 'endTime', endTime)
12253
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/audit`
12254
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
12255
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
12256
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12257
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12258
+ let baseOptions;
12259
+ if (configuration) {
12260
+ baseOptions = configuration.baseOptions;
12261
+ }
12262
+
12263
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12264
+ const localVarHeaderParameter = {} as any;
12265
+ const localVarQueryParameter = {} as any;
12266
+
12267
+ // authentication BearerToken required
12268
+ // http bearer authentication required
12269
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12270
+
12271
+ // authentication DigestAuth required
12272
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
12273
+
12274
+ if (startTime !== undefined) {
12275
+ localVarQueryParameter['startTime'] = startTime;
12276
+ }
12277
+
12278
+ if (endTime !== undefined) {
12279
+ localVarQueryParameter['endTime'] = endTime;
12280
+ }
12281
+
12282
+ if (limit !== undefined) {
12283
+ localVarQueryParameter['limit'] = limit;
12284
+ }
12285
+
12286
+ if (componentName !== undefined) {
12287
+ localVarQueryParameter['componentName'] = componentName;
12288
+ }
12289
+
12290
+ if (instanceName !== undefined) {
12291
+ localVarQueryParameter['instanceName'] = instanceName;
12292
+ }
12293
+
12294
+ if (sortType !== undefined) {
12295
+ localVarQueryParameter['sortType'] = sortType;
12296
+ }
12297
+
12298
+
12299
+
12300
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12301
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12302
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12303
+
12304
+ return {
12305
+ url: toPathString(localVarUrlObj),
12306
+ options: localVarRequestOptions,
12307
+ };
12308
+ },
12309
+ /**
12310
+ * Query error logs through the Loki compatibility API.
12311
+ * @summary Query Loki error logs
12072
12312
  * @param {string} orgName
12073
12313
  * @param {string} clusterName
12074
12314
  * @param {string} startTime Start time in epoch nanoseconds.
@@ -12076,21 +12316,367 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
12076
12316
  * @param {string} [componentName]
12077
12317
  * @param {string} [instanceName]
12078
12318
  * @param {string} [filename]
12319
+ * @param {string} [query]
12079
12320
  * @param {string} [limit]
12080
12321
  * @param {SortType} [sortType]
12081
12322
  * @param {*} [options] Override http request option.
12082
12323
  * @throws {RequiredError}
12083
12324
  */
12084
- queryPodLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, filename?: string, limit?: string, sortType?: SortType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12325
+ queryLokiErrorLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, filename?: string, query?: string, limit?: string, sortType?: SortType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12085
12326
  // verify required parameter 'orgName' is not null or undefined
12086
- assertParamExists('queryPodLogs', 'orgName', orgName)
12327
+ assertParamExists('queryLokiErrorLogs', 'orgName', orgName)
12087
12328
  // verify required parameter 'clusterName' is not null or undefined
12088
- assertParamExists('queryPodLogs', 'clusterName', clusterName)
12329
+ assertParamExists('queryLokiErrorLogs', 'clusterName', clusterName)
12089
12330
  // verify required parameter 'startTime' is not null or undefined
12090
- assertParamExists('queryPodLogs', 'startTime', startTime)
12331
+ assertParamExists('queryLokiErrorLogs', 'startTime', startTime)
12091
12332
  // verify required parameter 'endTime' is not null or undefined
12092
- assertParamExists('queryPodLogs', 'endTime', endTime)
12093
- const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/pod`
12333
+ assertParamExists('queryLokiErrorLogs', 'endTime', endTime)
12334
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/error`
12335
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
12336
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
12337
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12338
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12339
+ let baseOptions;
12340
+ if (configuration) {
12341
+ baseOptions = configuration.baseOptions;
12342
+ }
12343
+
12344
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12345
+ const localVarHeaderParameter = {} as any;
12346
+ const localVarQueryParameter = {} as any;
12347
+
12348
+ // authentication BearerToken required
12349
+ // http bearer authentication required
12350
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12351
+
12352
+ // authentication DigestAuth required
12353
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
12354
+
12355
+ if (componentName !== undefined) {
12356
+ localVarQueryParameter['componentName'] = componentName;
12357
+ }
12358
+
12359
+ if (instanceName !== undefined) {
12360
+ localVarQueryParameter['instanceName'] = instanceName;
12361
+ }
12362
+
12363
+ if (filename !== undefined) {
12364
+ localVarQueryParameter['filename'] = filename;
12365
+ }
12366
+
12367
+ if (startTime !== undefined) {
12368
+ localVarQueryParameter['startTime'] = startTime;
12369
+ }
12370
+
12371
+ if (endTime !== undefined) {
12372
+ localVarQueryParameter['endTime'] = endTime;
12373
+ }
12374
+
12375
+ if (query !== undefined) {
12376
+ localVarQueryParameter['query'] = query;
12377
+ }
12378
+
12379
+ if (limit !== undefined) {
12380
+ localVarQueryParameter['limit'] = limit;
12381
+ }
12382
+
12383
+ if (sortType !== undefined) {
12384
+ localVarQueryParameter['sortType'] = sortType;
12385
+ }
12386
+
12387
+
12388
+
12389
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12390
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12391
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12392
+
12393
+ return {
12394
+ url: toPathString(localVarUrlObj),
12395
+ options: localVarRequestOptions,
12396
+ };
12397
+ },
12398
+ /**
12399
+ * Query pod logs through the Loki compatibility API.
12400
+ * @summary Query Loki pod logs
12401
+ * @param {string} orgName
12402
+ * @param {string} clusterName
12403
+ * @param {string} startTime Start time in epoch nanoseconds.
12404
+ * @param {string} endTime End time in epoch nanoseconds.
12405
+ * @param {string} [componentName]
12406
+ * @param {string} [instanceName]
12407
+ * @param {string} [filename]
12408
+ * @param {string} [limit]
12409
+ * @param {SortType} [sortType]
12410
+ * @param {*} [options] Override http request option.
12411
+ * @throws {RequiredError}
12412
+ */
12413
+ queryLokiPodLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, filename?: string, limit?: string, sortType?: SortType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12414
+ // verify required parameter 'orgName' is not null or undefined
12415
+ assertParamExists('queryLokiPodLogs', 'orgName', orgName)
12416
+ // verify required parameter 'clusterName' is not null or undefined
12417
+ assertParamExists('queryLokiPodLogs', 'clusterName', clusterName)
12418
+ // verify required parameter 'startTime' is not null or undefined
12419
+ assertParamExists('queryLokiPodLogs', 'startTime', startTime)
12420
+ // verify required parameter 'endTime' is not null or undefined
12421
+ assertParamExists('queryLokiPodLogs', 'endTime', endTime)
12422
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/pod`
12423
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
12424
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
12425
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12426
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12427
+ let baseOptions;
12428
+ if (configuration) {
12429
+ baseOptions = configuration.baseOptions;
12430
+ }
12431
+
12432
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12433
+ const localVarHeaderParameter = {} as any;
12434
+ const localVarQueryParameter = {} as any;
12435
+
12436
+ // authentication BearerToken required
12437
+ // http bearer authentication required
12438
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12439
+
12440
+ // authentication DigestAuth required
12441
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
12442
+
12443
+ if (componentName !== undefined) {
12444
+ localVarQueryParameter['componentName'] = componentName;
12445
+ }
12446
+
12447
+ if (instanceName !== undefined) {
12448
+ localVarQueryParameter['instanceName'] = instanceName;
12449
+ }
12450
+
12451
+ if (filename !== undefined) {
12452
+ localVarQueryParameter['filename'] = filename;
12453
+ }
12454
+
12455
+ if (startTime !== undefined) {
12456
+ localVarQueryParameter['startTime'] = startTime;
12457
+ }
12458
+
12459
+ if (endTime !== undefined) {
12460
+ localVarQueryParameter['endTime'] = endTime;
12461
+ }
12462
+
12463
+ if (limit !== undefined) {
12464
+ localVarQueryParameter['limit'] = limit;
12465
+ }
12466
+
12467
+ if (sortType !== undefined) {
12468
+ localVarQueryParameter['sortType'] = sortType;
12469
+ }
12470
+
12471
+
12472
+
12473
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12474
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12475
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12476
+
12477
+ return {
12478
+ url: toPathString(localVarUrlObj),
12479
+ options: localVarRequestOptions,
12480
+ };
12481
+ },
12482
+ /**
12483
+ * Query running logs through the Loki compatibility API.
12484
+ * @summary Query Loki running logs
12485
+ * @param {string} orgName
12486
+ * @param {string} clusterName
12487
+ * @param {string} startTime Start time in epoch nanoseconds.
12488
+ * @param {string} endTime End time in epoch nanoseconds.
12489
+ * @param {string} [componentName]
12490
+ * @param {string} [instanceName]
12491
+ * @param {string} [filename]
12492
+ * @param {string} [limit]
12493
+ * @param {string} [query]
12494
+ * @param {SortType} [sortType]
12495
+ * @param {*} [options] Override http request option.
12496
+ * @throws {RequiredError}
12497
+ */
12498
+ queryLokiRunningLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, filename?: string, limit?: string, query?: string, sortType?: SortType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12499
+ // verify required parameter 'orgName' is not null or undefined
12500
+ assertParamExists('queryLokiRunningLogs', 'orgName', orgName)
12501
+ // verify required parameter 'clusterName' is not null or undefined
12502
+ assertParamExists('queryLokiRunningLogs', 'clusterName', clusterName)
12503
+ // verify required parameter 'startTime' is not null or undefined
12504
+ assertParamExists('queryLokiRunningLogs', 'startTime', startTime)
12505
+ // verify required parameter 'endTime' is not null or undefined
12506
+ assertParamExists('queryLokiRunningLogs', 'endTime', endTime)
12507
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/running`
12508
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
12509
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
12510
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12511
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12512
+ let baseOptions;
12513
+ if (configuration) {
12514
+ baseOptions = configuration.baseOptions;
12515
+ }
12516
+
12517
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12518
+ const localVarHeaderParameter = {} as any;
12519
+ const localVarQueryParameter = {} as any;
12520
+
12521
+ // authentication BearerToken required
12522
+ // http bearer authentication required
12523
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12524
+
12525
+ // authentication DigestAuth required
12526
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
12527
+
12528
+ if (componentName !== undefined) {
12529
+ localVarQueryParameter['componentName'] = componentName;
12530
+ }
12531
+
12532
+ if (instanceName !== undefined) {
12533
+ localVarQueryParameter['instanceName'] = instanceName;
12534
+ }
12535
+
12536
+ if (filename !== undefined) {
12537
+ localVarQueryParameter['filename'] = filename;
12538
+ }
12539
+
12540
+ if (startTime !== undefined) {
12541
+ localVarQueryParameter['startTime'] = startTime;
12542
+ }
12543
+
12544
+ if (endTime !== undefined) {
12545
+ localVarQueryParameter['endTime'] = endTime;
12546
+ }
12547
+
12548
+ if (limit !== undefined) {
12549
+ localVarQueryParameter['limit'] = limit;
12550
+ }
12551
+
12552
+ if (query !== undefined) {
12553
+ localVarQueryParameter['query'] = query;
12554
+ }
12555
+
12556
+ if (sortType !== undefined) {
12557
+ localVarQueryParameter['sortType'] = sortType;
12558
+ }
12559
+
12560
+
12561
+
12562
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12563
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12564
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12565
+
12566
+ return {
12567
+ url: toPathString(localVarUrlObj),
12568
+ options: localVarRequestOptions,
12569
+ };
12570
+ },
12571
+ /**
12572
+ * Query slow logs through the Loki compatibility API.
12573
+ * @summary Query Loki slow logs
12574
+ * @param {string} orgName
12575
+ * @param {string} clusterName
12576
+ * @param {string} startTime Start time in epoch nanoseconds.
12577
+ * @param {string} endTime End time in epoch nanoseconds.
12578
+ * @param {string} [componentName]
12579
+ * @param {string} [instanceName]
12580
+ * @param {string} [query]
12581
+ * @param {string} [limit]
12582
+ * @param {SortType} [sortType]
12583
+ * @param {*} [options] Override http request option.
12584
+ * @throws {RequiredError}
12585
+ */
12586
+ queryLokiSlowLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, query?: string, limit?: string, sortType?: SortType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12587
+ // verify required parameter 'orgName' is not null or undefined
12588
+ assertParamExists('queryLokiSlowLogs', 'orgName', orgName)
12589
+ // verify required parameter 'clusterName' is not null or undefined
12590
+ assertParamExists('queryLokiSlowLogs', 'clusterName', clusterName)
12591
+ // verify required parameter 'startTime' is not null or undefined
12592
+ assertParamExists('queryLokiSlowLogs', 'startTime', startTime)
12593
+ // verify required parameter 'endTime' is not null or undefined
12594
+ assertParamExists('queryLokiSlowLogs', 'endTime', endTime)
12595
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/slow`
12596
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
12597
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
12598
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12599
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12600
+ let baseOptions;
12601
+ if (configuration) {
12602
+ baseOptions = configuration.baseOptions;
12603
+ }
12604
+
12605
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12606
+ const localVarHeaderParameter = {} as any;
12607
+ const localVarQueryParameter = {} as any;
12608
+
12609
+ // authentication BearerToken required
12610
+ // http bearer authentication required
12611
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12612
+
12613
+ // authentication DigestAuth required
12614
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
12615
+
12616
+ if (startTime !== undefined) {
12617
+ localVarQueryParameter['startTime'] = startTime;
12618
+ }
12619
+
12620
+ if (endTime !== undefined) {
12621
+ localVarQueryParameter['endTime'] = endTime;
12622
+ }
12623
+
12624
+ if (componentName !== undefined) {
12625
+ localVarQueryParameter['componentName'] = componentName;
12626
+ }
12627
+
12628
+ if (instanceName !== undefined) {
12629
+ localVarQueryParameter['instanceName'] = instanceName;
12630
+ }
12631
+
12632
+ if (query !== undefined) {
12633
+ localVarQueryParameter['query'] = query;
12634
+ }
12635
+
12636
+ if (limit !== undefined) {
12637
+ localVarQueryParameter['limit'] = limit;
12638
+ }
12639
+
12640
+ if (sortType !== undefined) {
12641
+ localVarQueryParameter['sortType'] = sortType;
12642
+ }
12643
+
12644
+
12645
+
12646
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12647
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12648
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12649
+
12650
+ return {
12651
+ url: toPathString(localVarUrlObj),
12652
+ options: localVarRequestOptions,
12653
+ };
12654
+ },
12655
+ /**
12656
+ * Query pod logs of a cluster
12657
+ * @summary Query cluster pod logs
12658
+ * @param {string} orgName
12659
+ * @param {string} clusterName
12660
+ * @param {string} startTime Start time in epoch nanoseconds.
12661
+ * @param {string} endTime End time in epoch nanoseconds.
12662
+ * @param {string} [componentName]
12663
+ * @param {string} [instanceName]
12664
+ * @param {string} [filename]
12665
+ * @param {string} [limit]
12666
+ * @param {SortType} [sortType]
12667
+ * @param {*} [options] Override http request option.
12668
+ * @throws {RequiredError}
12669
+ */
12670
+ queryPodLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, filename?: string, limit?: string, sortType?: SortType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12671
+ // verify required parameter 'orgName' is not null or undefined
12672
+ assertParamExists('queryPodLogs', 'orgName', orgName)
12673
+ // verify required parameter 'clusterName' is not null or undefined
12674
+ assertParamExists('queryPodLogs', 'clusterName', clusterName)
12675
+ // verify required parameter 'startTime' is not null or undefined
12676
+ assertParamExists('queryPodLogs', 'startTime', startTime)
12677
+ // verify required parameter 'endTime' is not null or undefined
12678
+ assertParamExists('queryPodLogs', 'endTime', endTime)
12679
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/logs/pod`
12094
12680
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
12095
12681
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
12096
12682
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -16594,6 +17180,29 @@ export const SharedApiFp = function(configuration?: Configuration) {
16594
17180
  const localVarOperationServerBasePath = operationServerMap['SharedApi.explainSlowLogTemplate']?.[localVarOperationServerIndex]?.url;
16595
17181
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16596
17182
  },
17183
+ /**
17184
+ * Export logs through the Loki compatibility API.
17185
+ * @summary Export Loki logs
17186
+ * @param {string} orgName
17187
+ * @param {string} clusterName
17188
+ * @param {string} logType Log type: runninglog, errorlog, slow, auditlog
17189
+ * @param {number} [startTime] Start time in epoch nanoseconds. If omitted, exports from the earliest available log
17190
+ * @param {number} [endTime] End time in epoch nanoseconds. If omitted, exports up to the latest available log
17191
+ * @param {string} [format] Export format: csv, raw, jsonl
17192
+ * @param {string} [query]
17193
+ * @param {string} [filename]
17194
+ * @param {string} [componentName]
17195
+ * @param {string} [instanceName]
17196
+ * @param {number} [maxLines] Maximum number of lines to export. Defaults to 100000 if omitted
17197
+ * @param {*} [options] Override http request option.
17198
+ * @throws {RequiredError}
17199
+ */
17200
+ async exportLokiClusterLogs(orgName: string, clusterName: string, logType: string, startTime?: number, endTime?: number, format?: string, query?: string, filename?: string, componentName?: string, instanceName?: string, maxLines?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
17201
+ const localVarAxiosArgs = await localVarAxiosParamCreator.exportLokiClusterLogs(orgName, clusterName, logType, startTime, endTime, format, query, filename, componentName, instanceName, maxLines, options);
17202
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17203
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.exportLokiClusterLogs']?.[localVarOperationServerIndex]?.url;
17204
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17205
+ },
16597
17206
  /**
16598
17207
  *
16599
17208
  * @summary Export parameter template from cluster
@@ -17190,6 +17799,24 @@ export const SharedApiFp = function(configuration?: Configuration) {
17190
17799
  const localVarOperationServerBasePath = operationServerMap['SharedApi.getKafkaTopics']?.[localVarOperationServerIndex]?.url;
17191
17800
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17192
17801
  },
17802
+ /**
17803
+ * Query slow-log statistics through the Loki compatibility API.
17804
+ * @summary Query Loki slow-log statistics
17805
+ * @param {string} orgName
17806
+ * @param {string} clusterName
17807
+ * @param {string} startTime Start time in epoch nanoseconds.
17808
+ * @param {string} endTime End time in epoch nanoseconds.
17809
+ * @param {string} [componentName]
17810
+ * @param {string} [instanceName]
17811
+ * @param {*} [options] Override http request option.
17812
+ * @throws {RequiredError}
17813
+ */
17814
+ async getLokiSlowLogStats(orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterSlowLogStats>> {
17815
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLokiSlowLogStats(orgName, clusterName, startTime, endTime, componentName, instanceName, options);
17816
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17817
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.getLokiSlowLogStats']?.[localVarOperationServerIndex]?.url;
17818
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17819
+ },
17193
17820
  /**
17194
17821
  * Get a Milvus native role and its privilege grants.
17195
17822
  * @summary Get Milvus role
@@ -18859,6 +19486,112 @@ export const SharedApiFp = function(configuration?: Configuration) {
18859
19486
  const localVarOperationServerBasePath = operationServerMap['SharedApi.queryLogHits']?.[localVarOperationServerIndex]?.url;
18860
19487
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18861
19488
  },
19489
+ /**
19490
+ * Query audit logs through the Loki compatibility API.
19491
+ * @summary Query Loki audit logs
19492
+ * @param {string} orgName
19493
+ * @param {string} clusterName
19494
+ * @param {string} startTime Start time in epoch nanoseconds.
19495
+ * @param {string} endTime End time in epoch nanoseconds.
19496
+ * @param {string} [limit]
19497
+ * @param {string} [componentName]
19498
+ * @param {string} [instanceName]
19499
+ * @param {SortType} [sortType]
19500
+ * @param {*} [options] Override http request option.
19501
+ * @throws {RequiredError}
19502
+ */
19503
+ async queryLokiAuditLogs(orgName: string, clusterName: string, startTime: string, endTime: string, limit?: string, componentName?: string, instanceName?: string, sortType?: SortType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterExecutionLog>> {
19504
+ const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiAuditLogs(orgName, clusterName, startTime, endTime, limit, componentName, instanceName, sortType, options);
19505
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19506
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.queryLokiAuditLogs']?.[localVarOperationServerIndex]?.url;
19507
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19508
+ },
19509
+ /**
19510
+ * Query error logs through the Loki compatibility API.
19511
+ * @summary Query Loki error logs
19512
+ * @param {string} orgName
19513
+ * @param {string} clusterName
19514
+ * @param {string} startTime Start time in epoch nanoseconds.
19515
+ * @param {string} endTime End time in epoch nanoseconds.
19516
+ * @param {string} [componentName]
19517
+ * @param {string} [instanceName]
19518
+ * @param {string} [filename]
19519
+ * @param {string} [query]
19520
+ * @param {string} [limit]
19521
+ * @param {SortType} [sortType]
19522
+ * @param {*} [options] Override http request option.
19523
+ * @throws {RequiredError}
19524
+ */
19525
+ async queryLokiErrorLogs(orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, filename?: string, query?: string, limit?: string, sortType?: SortType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterRawLogResponse>> {
19526
+ const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiErrorLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, query, limit, sortType, options);
19527
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19528
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.queryLokiErrorLogs']?.[localVarOperationServerIndex]?.url;
19529
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19530
+ },
19531
+ /**
19532
+ * Query pod logs through the Loki compatibility API.
19533
+ * @summary Query Loki pod logs
19534
+ * @param {string} orgName
19535
+ * @param {string} clusterName
19536
+ * @param {string} startTime Start time in epoch nanoseconds.
19537
+ * @param {string} endTime End time in epoch nanoseconds.
19538
+ * @param {string} [componentName]
19539
+ * @param {string} [instanceName]
19540
+ * @param {string} [filename]
19541
+ * @param {string} [limit]
19542
+ * @param {SortType} [sortType]
19543
+ * @param {*} [options] Override http request option.
19544
+ * @throws {RequiredError}
19545
+ */
19546
+ async queryLokiPodLogs(orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, filename?: string, limit?: string, sortType?: SortType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterRawLogResponse>> {
19547
+ const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiPodLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, sortType, options);
19548
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19549
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.queryLokiPodLogs']?.[localVarOperationServerIndex]?.url;
19550
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19551
+ },
19552
+ /**
19553
+ * Query running logs through the Loki compatibility API.
19554
+ * @summary Query Loki running logs
19555
+ * @param {string} orgName
19556
+ * @param {string} clusterName
19557
+ * @param {string} startTime Start time in epoch nanoseconds.
19558
+ * @param {string} endTime End time in epoch nanoseconds.
19559
+ * @param {string} [componentName]
19560
+ * @param {string} [instanceName]
19561
+ * @param {string} [filename]
19562
+ * @param {string} [limit]
19563
+ * @param {string} [query]
19564
+ * @param {SortType} [sortType]
19565
+ * @param {*} [options] Override http request option.
19566
+ * @throws {RequiredError}
19567
+ */
19568
+ async queryLokiRunningLogs(orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, filename?: string, limit?: string, query?: string, sortType?: SortType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterRawLogResponse>> {
19569
+ const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiRunningLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, query, sortType, options);
19570
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19571
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.queryLokiRunningLogs']?.[localVarOperationServerIndex]?.url;
19572
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19573
+ },
19574
+ /**
19575
+ * Query slow logs through the Loki compatibility API.
19576
+ * @summary Query Loki slow logs
19577
+ * @param {string} orgName
19578
+ * @param {string} clusterName
19579
+ * @param {string} startTime Start time in epoch nanoseconds.
19580
+ * @param {string} endTime End time in epoch nanoseconds.
19581
+ * @param {string} [componentName]
19582
+ * @param {string} [instanceName]
19583
+ * @param {string} [query]
19584
+ * @param {string} [limit]
19585
+ * @param {SortType} [sortType]
19586
+ * @param {*} [options] Override http request option.
19587
+ * @throws {RequiredError}
19588
+ */
19589
+ async queryLokiSlowLogs(orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, query?: string, limit?: string, sortType?: SortType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterExecutionLog>> {
19590
+ const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiSlowLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, query, limit, sortType, options);
19591
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19592
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.queryLokiSlowLogs']?.[localVarOperationServerIndex]?.url;
19593
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19594
+ },
18862
19595
  /**
18863
19596
  * Query pod logs of a cluster
18864
19597
  * @summary Query cluster pod logs
@@ -20568,6 +21301,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
20568
21301
  explainSlowLogTemplate(requestParameters: SharedApiExplainSlowLogTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterSlowLogExplainResponse> {
20569
21302
  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));
20570
21303
  },
21304
+ /**
21305
+ * Export logs through the Loki compatibility API.
21306
+ * @summary Export Loki logs
21307
+ * @param {SharedApiExportLokiClusterLogsRequest} requestParameters Request parameters.
21308
+ * @param {*} [options] Override http request option.
21309
+ * @throws {RequiredError}
21310
+ */
21311
+ exportLokiClusterLogs(requestParameters: SharedApiExportLokiClusterLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
21312
+ 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));
21313
+ },
20571
21314
  /**
20572
21315
  *
20573
21316
  * @summary Export parameter template from cluster
@@ -20958,6 +21701,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
20958
21701
  getKafkaTopics(requestParameters: SharedApiGetKafkaTopicsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Topic>> {
20959
21702
  return localVarFp.getKafkaTopics(requestParameters.orgName, requestParameters.clusterName, requestParameters.nameFilter, requestParameters.onlyNames, options).then((request) => request(axios, basePath));
20960
21703
  },
21704
+ /**
21705
+ * Query slow-log statistics through the Loki compatibility API.
21706
+ * @summary Query Loki slow-log statistics
21707
+ * @param {SharedApiGetLokiSlowLogStatsRequest} requestParameters Request parameters.
21708
+ * @param {*} [options] Override http request option.
21709
+ * @throws {RequiredError}
21710
+ */
21711
+ getLokiSlowLogStats(requestParameters: SharedApiGetLokiSlowLogStatsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterSlowLogStats> {
21712
+ return localVarFp.getLokiSlowLogStats(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, options).then((request) => request(axios, basePath));
21713
+ },
20961
21714
  /**
20962
21715
  * Get a Milvus native role and its privilege grants.
20963
21716
  * @summary Get Milvus role
@@ -22024,6 +22777,56 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
22024
22777
  queryLogHits(requestParameters: SharedApiQueryLogHitsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterLogHitsResponse> {
22025
22778
  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));
22026
22779
  },
22780
+ /**
22781
+ * Query audit logs through the Loki compatibility API.
22782
+ * @summary Query Loki audit logs
22783
+ * @param {SharedApiQueryLokiAuditLogsRequest} requestParameters Request parameters.
22784
+ * @param {*} [options] Override http request option.
22785
+ * @throws {RequiredError}
22786
+ */
22787
+ queryLokiAuditLogs(requestParameters: SharedApiQueryLokiAuditLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLog> {
22788
+ 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));
22789
+ },
22790
+ /**
22791
+ * Query error logs through the Loki compatibility API.
22792
+ * @summary Query Loki error logs
22793
+ * @param {SharedApiQueryLokiErrorLogsRequest} requestParameters Request parameters.
22794
+ * @param {*} [options] Override http request option.
22795
+ * @throws {RequiredError}
22796
+ */
22797
+ queryLokiErrorLogs(requestParameters: SharedApiQueryLokiErrorLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRawLogResponse> {
22798
+ 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));
22799
+ },
22800
+ /**
22801
+ * Query pod logs through the Loki compatibility API.
22802
+ * @summary Query Loki pod logs
22803
+ * @param {SharedApiQueryLokiPodLogsRequest} requestParameters Request parameters.
22804
+ * @param {*} [options] Override http request option.
22805
+ * @throws {RequiredError}
22806
+ */
22807
+ queryLokiPodLogs(requestParameters: SharedApiQueryLokiPodLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRawLogResponse> {
22808
+ 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));
22809
+ },
22810
+ /**
22811
+ * Query running logs through the Loki compatibility API.
22812
+ * @summary Query Loki running logs
22813
+ * @param {SharedApiQueryLokiRunningLogsRequest} requestParameters Request parameters.
22814
+ * @param {*} [options] Override http request option.
22815
+ * @throws {RequiredError}
22816
+ */
22817
+ queryLokiRunningLogs(requestParameters: SharedApiQueryLokiRunningLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRawLogResponse> {
22818
+ 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));
22819
+ },
22820
+ /**
22821
+ * Query slow logs through the Loki compatibility API.
22822
+ * @summary Query Loki slow logs
22823
+ * @param {SharedApiQueryLokiSlowLogsRequest} requestParameters Request parameters.
22824
+ * @param {*} [options] Override http request option.
22825
+ * @throws {RequiredError}
22826
+ */
22827
+ queryLokiSlowLogs(requestParameters: SharedApiQueryLokiSlowLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLog> {
22828
+ 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));
22829
+ },
22027
22830
  /**
22028
22831
  * Query pod logs of a cluster
22029
22832
  * @summary Query cluster pod logs
@@ -23351,6 +24154,16 @@ export interface SharedApiInterface {
23351
24154
  */
23352
24155
  explainSlowLogTemplate(requestParameters: SharedApiExplainSlowLogTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterSlowLogExplainResponse>;
23353
24156
 
24157
+ /**
24158
+ * Export logs through the Loki compatibility API.
24159
+ * @summary Export Loki logs
24160
+ * @param {SharedApiExportLokiClusterLogsRequest} requestParameters Request parameters.
24161
+ * @param {*} [options] Override http request option.
24162
+ * @throws {RequiredError}
24163
+ * @memberof SharedApiInterface
24164
+ */
24165
+ exportLokiClusterLogs(requestParameters: SharedApiExportLokiClusterLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
24166
+
23354
24167
  /**
23355
24168
  *
23356
24169
  * @summary Export parameter template from cluster
@@ -23741,6 +24554,16 @@ export interface SharedApiInterface {
23741
24554
  */
23742
24555
  getKafkaTopics(requestParameters: SharedApiGetKafkaTopicsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Topic>>;
23743
24556
 
24557
+ /**
24558
+ * Query slow-log statistics through the Loki compatibility API.
24559
+ * @summary Query Loki slow-log statistics
24560
+ * @param {SharedApiGetLokiSlowLogStatsRequest} requestParameters Request parameters.
24561
+ * @param {*} [options] Override http request option.
24562
+ * @throws {RequiredError}
24563
+ * @memberof SharedApiInterface
24564
+ */
24565
+ getLokiSlowLogStats(requestParameters: SharedApiGetLokiSlowLogStatsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterSlowLogStats>;
24566
+
23744
24567
  /**
23745
24568
  * Get a Milvus native role and its privilege grants.
23746
24569
  * @summary Get Milvus role
@@ -24807,6 +25630,56 @@ export interface SharedApiInterface {
24807
25630
  */
24808
25631
  queryLogHits(requestParameters: SharedApiQueryLogHitsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterLogHitsResponse>;
24809
25632
 
25633
+ /**
25634
+ * Query audit logs through the Loki compatibility API.
25635
+ * @summary Query Loki audit logs
25636
+ * @param {SharedApiQueryLokiAuditLogsRequest} requestParameters Request parameters.
25637
+ * @param {*} [options] Override http request option.
25638
+ * @throws {RequiredError}
25639
+ * @memberof SharedApiInterface
25640
+ */
25641
+ queryLokiAuditLogs(requestParameters: SharedApiQueryLokiAuditLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLog>;
25642
+
25643
+ /**
25644
+ * Query error logs through the Loki compatibility API.
25645
+ * @summary Query Loki error logs
25646
+ * @param {SharedApiQueryLokiErrorLogsRequest} requestParameters Request parameters.
25647
+ * @param {*} [options] Override http request option.
25648
+ * @throws {RequiredError}
25649
+ * @memberof SharedApiInterface
25650
+ */
25651
+ queryLokiErrorLogs(requestParameters: SharedApiQueryLokiErrorLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRawLogResponse>;
25652
+
25653
+ /**
25654
+ * Query pod logs through the Loki compatibility API.
25655
+ * @summary Query Loki pod logs
25656
+ * @param {SharedApiQueryLokiPodLogsRequest} requestParameters Request parameters.
25657
+ * @param {*} [options] Override http request option.
25658
+ * @throws {RequiredError}
25659
+ * @memberof SharedApiInterface
25660
+ */
25661
+ queryLokiPodLogs(requestParameters: SharedApiQueryLokiPodLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRawLogResponse>;
25662
+
25663
+ /**
25664
+ * Query running logs through the Loki compatibility API.
25665
+ * @summary Query Loki running logs
25666
+ * @param {SharedApiQueryLokiRunningLogsRequest} requestParameters Request parameters.
25667
+ * @param {*} [options] Override http request option.
25668
+ * @throws {RequiredError}
25669
+ * @memberof SharedApiInterface
25670
+ */
25671
+ queryLokiRunningLogs(requestParameters: SharedApiQueryLokiRunningLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRawLogResponse>;
25672
+
25673
+ /**
25674
+ * Query slow logs through the Loki compatibility API.
25675
+ * @summary Query Loki slow logs
25676
+ * @param {SharedApiQueryLokiSlowLogsRequest} requestParameters Request parameters.
25677
+ * @param {*} [options] Override http request option.
25678
+ * @throws {RequiredError}
25679
+ * @memberof SharedApiInterface
25680
+ */
25681
+ queryLokiSlowLogs(requestParameters: SharedApiQueryLokiSlowLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLog>;
25682
+
24810
25683
  /**
24811
25684
  * Query pod logs of a cluster
24812
25685
  * @summary Query cluster pod logs
@@ -27697,6 +28570,90 @@ export interface SharedApiExplainSlowLogTemplateRequest {
27697
28570
  readonly appName?: string
27698
28571
  }
27699
28572
 
28573
+ /**
28574
+ * Request parameters for exportLokiClusterLogs operation in SharedApi.
28575
+ * @export
28576
+ * @interface SharedApiExportLokiClusterLogsRequest
28577
+ */
28578
+ export interface SharedApiExportLokiClusterLogsRequest {
28579
+ /**
28580
+ *
28581
+ * @type {string}
28582
+ * @memberof SharedApiExportLokiClusterLogs
28583
+ */
28584
+ readonly orgName: string
28585
+
28586
+ /**
28587
+ *
28588
+ * @type {string}
28589
+ * @memberof SharedApiExportLokiClusterLogs
28590
+ */
28591
+ readonly clusterName: string
28592
+
28593
+ /**
28594
+ * Log type: runninglog, errorlog, slow, auditlog
28595
+ * @type {string}
28596
+ * @memberof SharedApiExportLokiClusterLogs
28597
+ */
28598
+ readonly logType: string
28599
+
28600
+ /**
28601
+ * Start time in epoch nanoseconds. If omitted, exports from the earliest available log
28602
+ * @type {number}
28603
+ * @memberof SharedApiExportLokiClusterLogs
28604
+ */
28605
+ readonly startTime?: number
28606
+
28607
+ /**
28608
+ * End time in epoch nanoseconds. If omitted, exports up to the latest available log
28609
+ * @type {number}
28610
+ * @memberof SharedApiExportLokiClusterLogs
28611
+ */
28612
+ readonly endTime?: number
28613
+
28614
+ /**
28615
+ * Export format: csv, raw, jsonl
28616
+ * @type {string}
28617
+ * @memberof SharedApiExportLokiClusterLogs
28618
+ */
28619
+ readonly format?: string
28620
+
28621
+ /**
28622
+ *
28623
+ * @type {string}
28624
+ * @memberof SharedApiExportLokiClusterLogs
28625
+ */
28626
+ readonly query?: string
28627
+
28628
+ /**
28629
+ *
28630
+ * @type {string}
28631
+ * @memberof SharedApiExportLokiClusterLogs
28632
+ */
28633
+ readonly filename?: string
28634
+
28635
+ /**
28636
+ *
28637
+ * @type {string}
28638
+ * @memberof SharedApiExportLokiClusterLogs
28639
+ */
28640
+ readonly componentName?: string
28641
+
28642
+ /**
28643
+ *
28644
+ * @type {string}
28645
+ * @memberof SharedApiExportLokiClusterLogs
28646
+ */
28647
+ readonly instanceName?: string
28648
+
28649
+ /**
28650
+ * Maximum number of lines to export. Defaults to 100000 if omitted
28651
+ * @type {number}
28652
+ * @memberof SharedApiExportLokiClusterLogs
28653
+ */
28654
+ readonly maxLines?: number
28655
+ }
28656
+
27700
28657
  /**
27701
28658
  * Request parameters for exportParameterTemplateFromCluster operation in SharedApi.
27702
28659
  * @export
@@ -28866,6 +29823,55 @@ export interface SharedApiGetKafkaTopicsRequest {
28866
29823
  readonly onlyNames?: boolean
28867
29824
  }
28868
29825
 
29826
+ /**
29827
+ * Request parameters for getLokiSlowLogStats operation in SharedApi.
29828
+ * @export
29829
+ * @interface SharedApiGetLokiSlowLogStatsRequest
29830
+ */
29831
+ export interface SharedApiGetLokiSlowLogStatsRequest {
29832
+ /**
29833
+ *
29834
+ * @type {string}
29835
+ * @memberof SharedApiGetLokiSlowLogStats
29836
+ */
29837
+ readonly orgName: string
29838
+
29839
+ /**
29840
+ *
29841
+ * @type {string}
29842
+ * @memberof SharedApiGetLokiSlowLogStats
29843
+ */
29844
+ readonly clusterName: string
29845
+
29846
+ /**
29847
+ * Start time in epoch nanoseconds.
29848
+ * @type {string}
29849
+ * @memberof SharedApiGetLokiSlowLogStats
29850
+ */
29851
+ readonly startTime: string
29852
+
29853
+ /**
29854
+ * End time in epoch nanoseconds.
29855
+ * @type {string}
29856
+ * @memberof SharedApiGetLokiSlowLogStats
29857
+ */
29858
+ readonly endTime: string
29859
+
29860
+ /**
29861
+ *
29862
+ * @type {string}
29863
+ * @memberof SharedApiGetLokiSlowLogStats
29864
+ */
29865
+ readonly componentName?: string
29866
+
29867
+ /**
29868
+ *
29869
+ * @type {string}
29870
+ * @memberof SharedApiGetLokiSlowLogStats
29871
+ */
29872
+ readonly instanceName?: string
29873
+ }
29874
+
28869
29875
  /**
28870
29876
  * Request parameters for getMilvusRole operation in SharedApi.
28871
29877
  * @export
@@ -32268,6 +33274,363 @@ export interface SharedApiQueryLogHitsRequest {
32268
33274
  readonly unclassifiedOnly?: boolean
32269
33275
  }
32270
33276
 
33277
+ /**
33278
+ * Request parameters for queryLokiAuditLogs operation in SharedApi.
33279
+ * @export
33280
+ * @interface SharedApiQueryLokiAuditLogsRequest
33281
+ */
33282
+ export interface SharedApiQueryLokiAuditLogsRequest {
33283
+ /**
33284
+ *
33285
+ * @type {string}
33286
+ * @memberof SharedApiQueryLokiAuditLogs
33287
+ */
33288
+ readonly orgName: string
33289
+
33290
+ /**
33291
+ *
33292
+ * @type {string}
33293
+ * @memberof SharedApiQueryLokiAuditLogs
33294
+ */
33295
+ readonly clusterName: string
33296
+
33297
+ /**
33298
+ * Start time in epoch nanoseconds.
33299
+ * @type {string}
33300
+ * @memberof SharedApiQueryLokiAuditLogs
33301
+ */
33302
+ readonly startTime: string
33303
+
33304
+ /**
33305
+ * End time in epoch nanoseconds.
33306
+ * @type {string}
33307
+ * @memberof SharedApiQueryLokiAuditLogs
33308
+ */
33309
+ readonly endTime: string
33310
+
33311
+ /**
33312
+ *
33313
+ * @type {string}
33314
+ * @memberof SharedApiQueryLokiAuditLogs
33315
+ */
33316
+ readonly limit?: string
33317
+
33318
+ /**
33319
+ *
33320
+ * @type {string}
33321
+ * @memberof SharedApiQueryLokiAuditLogs
33322
+ */
33323
+ readonly componentName?: string
33324
+
33325
+ /**
33326
+ *
33327
+ * @type {string}
33328
+ * @memberof SharedApiQueryLokiAuditLogs
33329
+ */
33330
+ readonly instanceName?: string
33331
+
33332
+ /**
33333
+ *
33334
+ * @type {SortType}
33335
+ * @memberof SharedApiQueryLokiAuditLogs
33336
+ */
33337
+ readonly sortType?: SortType
33338
+ }
33339
+
33340
+ /**
33341
+ * Request parameters for queryLokiErrorLogs operation in SharedApi.
33342
+ * @export
33343
+ * @interface SharedApiQueryLokiErrorLogsRequest
33344
+ */
33345
+ export interface SharedApiQueryLokiErrorLogsRequest {
33346
+ /**
33347
+ *
33348
+ * @type {string}
33349
+ * @memberof SharedApiQueryLokiErrorLogs
33350
+ */
33351
+ readonly orgName: string
33352
+
33353
+ /**
33354
+ *
33355
+ * @type {string}
33356
+ * @memberof SharedApiQueryLokiErrorLogs
33357
+ */
33358
+ readonly clusterName: string
33359
+
33360
+ /**
33361
+ * Start time in epoch nanoseconds.
33362
+ * @type {string}
33363
+ * @memberof SharedApiQueryLokiErrorLogs
33364
+ */
33365
+ readonly startTime: string
33366
+
33367
+ /**
33368
+ * End time in epoch nanoseconds.
33369
+ * @type {string}
33370
+ * @memberof SharedApiQueryLokiErrorLogs
33371
+ */
33372
+ readonly endTime: string
33373
+
33374
+ /**
33375
+ *
33376
+ * @type {string}
33377
+ * @memberof SharedApiQueryLokiErrorLogs
33378
+ */
33379
+ readonly componentName?: string
33380
+
33381
+ /**
33382
+ *
33383
+ * @type {string}
33384
+ * @memberof SharedApiQueryLokiErrorLogs
33385
+ */
33386
+ readonly instanceName?: string
33387
+
33388
+ /**
33389
+ *
33390
+ * @type {string}
33391
+ * @memberof SharedApiQueryLokiErrorLogs
33392
+ */
33393
+ readonly filename?: string
33394
+
33395
+ /**
33396
+ *
33397
+ * @type {string}
33398
+ * @memberof SharedApiQueryLokiErrorLogs
33399
+ */
33400
+ readonly query?: string
33401
+
33402
+ /**
33403
+ *
33404
+ * @type {string}
33405
+ * @memberof SharedApiQueryLokiErrorLogs
33406
+ */
33407
+ readonly limit?: string
33408
+
33409
+ /**
33410
+ *
33411
+ * @type {SortType}
33412
+ * @memberof SharedApiQueryLokiErrorLogs
33413
+ */
33414
+ readonly sortType?: SortType
33415
+ }
33416
+
33417
+ /**
33418
+ * Request parameters for queryLokiPodLogs operation in SharedApi.
33419
+ * @export
33420
+ * @interface SharedApiQueryLokiPodLogsRequest
33421
+ */
33422
+ export interface SharedApiQueryLokiPodLogsRequest {
33423
+ /**
33424
+ *
33425
+ * @type {string}
33426
+ * @memberof SharedApiQueryLokiPodLogs
33427
+ */
33428
+ readonly orgName: string
33429
+
33430
+ /**
33431
+ *
33432
+ * @type {string}
33433
+ * @memberof SharedApiQueryLokiPodLogs
33434
+ */
33435
+ readonly clusterName: string
33436
+
33437
+ /**
33438
+ * Start time in epoch nanoseconds.
33439
+ * @type {string}
33440
+ * @memberof SharedApiQueryLokiPodLogs
33441
+ */
33442
+ readonly startTime: string
33443
+
33444
+ /**
33445
+ * End time in epoch nanoseconds.
33446
+ * @type {string}
33447
+ * @memberof SharedApiQueryLokiPodLogs
33448
+ */
33449
+ readonly endTime: string
33450
+
33451
+ /**
33452
+ *
33453
+ * @type {string}
33454
+ * @memberof SharedApiQueryLokiPodLogs
33455
+ */
33456
+ readonly componentName?: string
33457
+
33458
+ /**
33459
+ *
33460
+ * @type {string}
33461
+ * @memberof SharedApiQueryLokiPodLogs
33462
+ */
33463
+ readonly instanceName?: string
33464
+
33465
+ /**
33466
+ *
33467
+ * @type {string}
33468
+ * @memberof SharedApiQueryLokiPodLogs
33469
+ */
33470
+ readonly filename?: string
33471
+
33472
+ /**
33473
+ *
33474
+ * @type {string}
33475
+ * @memberof SharedApiQueryLokiPodLogs
33476
+ */
33477
+ readonly limit?: string
33478
+
33479
+ /**
33480
+ *
33481
+ * @type {SortType}
33482
+ * @memberof SharedApiQueryLokiPodLogs
33483
+ */
33484
+ readonly sortType?: SortType
33485
+ }
33486
+
33487
+ /**
33488
+ * Request parameters for queryLokiRunningLogs operation in SharedApi.
33489
+ * @export
33490
+ * @interface SharedApiQueryLokiRunningLogsRequest
33491
+ */
33492
+ export interface SharedApiQueryLokiRunningLogsRequest {
33493
+ /**
33494
+ *
33495
+ * @type {string}
33496
+ * @memberof SharedApiQueryLokiRunningLogs
33497
+ */
33498
+ readonly orgName: string
33499
+
33500
+ /**
33501
+ *
33502
+ * @type {string}
33503
+ * @memberof SharedApiQueryLokiRunningLogs
33504
+ */
33505
+ readonly clusterName: string
33506
+
33507
+ /**
33508
+ * Start time in epoch nanoseconds.
33509
+ * @type {string}
33510
+ * @memberof SharedApiQueryLokiRunningLogs
33511
+ */
33512
+ readonly startTime: string
33513
+
33514
+ /**
33515
+ * End time in epoch nanoseconds.
33516
+ * @type {string}
33517
+ * @memberof SharedApiQueryLokiRunningLogs
33518
+ */
33519
+ readonly endTime: string
33520
+
33521
+ /**
33522
+ *
33523
+ * @type {string}
33524
+ * @memberof SharedApiQueryLokiRunningLogs
33525
+ */
33526
+ readonly componentName?: string
33527
+
33528
+ /**
33529
+ *
33530
+ * @type {string}
33531
+ * @memberof SharedApiQueryLokiRunningLogs
33532
+ */
33533
+ readonly instanceName?: string
33534
+
33535
+ /**
33536
+ *
33537
+ * @type {string}
33538
+ * @memberof SharedApiQueryLokiRunningLogs
33539
+ */
33540
+ readonly filename?: string
33541
+
33542
+ /**
33543
+ *
33544
+ * @type {string}
33545
+ * @memberof SharedApiQueryLokiRunningLogs
33546
+ */
33547
+ readonly limit?: string
33548
+
33549
+ /**
33550
+ *
33551
+ * @type {string}
33552
+ * @memberof SharedApiQueryLokiRunningLogs
33553
+ */
33554
+ readonly query?: string
33555
+
33556
+ /**
33557
+ *
33558
+ * @type {SortType}
33559
+ * @memberof SharedApiQueryLokiRunningLogs
33560
+ */
33561
+ readonly sortType?: SortType
33562
+ }
33563
+
33564
+ /**
33565
+ * Request parameters for queryLokiSlowLogs operation in SharedApi.
33566
+ * @export
33567
+ * @interface SharedApiQueryLokiSlowLogsRequest
33568
+ */
33569
+ export interface SharedApiQueryLokiSlowLogsRequest {
33570
+ /**
33571
+ *
33572
+ * @type {string}
33573
+ * @memberof SharedApiQueryLokiSlowLogs
33574
+ */
33575
+ readonly orgName: string
33576
+
33577
+ /**
33578
+ *
33579
+ * @type {string}
33580
+ * @memberof SharedApiQueryLokiSlowLogs
33581
+ */
33582
+ readonly clusterName: string
33583
+
33584
+ /**
33585
+ * Start time in epoch nanoseconds.
33586
+ * @type {string}
33587
+ * @memberof SharedApiQueryLokiSlowLogs
33588
+ */
33589
+ readonly startTime: string
33590
+
33591
+ /**
33592
+ * End time in epoch nanoseconds.
33593
+ * @type {string}
33594
+ * @memberof SharedApiQueryLokiSlowLogs
33595
+ */
33596
+ readonly endTime: string
33597
+
33598
+ /**
33599
+ *
33600
+ * @type {string}
33601
+ * @memberof SharedApiQueryLokiSlowLogs
33602
+ */
33603
+ readonly componentName?: string
33604
+
33605
+ /**
33606
+ *
33607
+ * @type {string}
33608
+ * @memberof SharedApiQueryLokiSlowLogs
33609
+ */
33610
+ readonly instanceName?: string
33611
+
33612
+ /**
33613
+ *
33614
+ * @type {string}
33615
+ * @memberof SharedApiQueryLokiSlowLogs
33616
+ */
33617
+ readonly query?: string
33618
+
33619
+ /**
33620
+ *
33621
+ * @type {string}
33622
+ * @memberof SharedApiQueryLokiSlowLogs
33623
+ */
33624
+ readonly limit?: string
33625
+
33626
+ /**
33627
+ *
33628
+ * @type {SortType}
33629
+ * @memberof SharedApiQueryLokiSlowLogs
33630
+ */
33631
+ readonly sortType?: SortType
33632
+ }
33633
+
32271
33634
  /**
32272
33635
  * Request parameters for queryPodLogs operation in SharedApi.
32273
33636
  * @export
@@ -35410,6 +36773,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
35410
36773
  return 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));
35411
36774
  }
35412
36775
 
36776
+ /**
36777
+ * Export logs through the Loki compatibility API.
36778
+ * @summary Export Loki logs
36779
+ * @param {SharedApiExportLokiClusterLogsRequest} requestParameters Request parameters.
36780
+ * @param {*} [options] Override http request option.
36781
+ * @throws {RequiredError}
36782
+ * @memberof SharedApi
36783
+ */
36784
+ public exportLokiClusterLogs(requestParameters: SharedApiExportLokiClusterLogsRequest, options?: RawAxiosRequestConfig) {
36785
+ return 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));
36786
+ }
36787
+
35413
36788
  /**
35414
36789
  *
35415
36790
  * @summary Export parameter template from cluster
@@ -35878,6 +37253,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
35878
37253
  return SharedApiFp(this.configuration).getKafkaTopics(requestParameters.orgName, requestParameters.clusterName, requestParameters.nameFilter, requestParameters.onlyNames, options).then((request) => request(this.axios, this.basePath));
35879
37254
  }
35880
37255
 
37256
+ /**
37257
+ * Query slow-log statistics through the Loki compatibility API.
37258
+ * @summary Query Loki slow-log statistics
37259
+ * @param {SharedApiGetLokiSlowLogStatsRequest} requestParameters Request parameters.
37260
+ * @param {*} [options] Override http request option.
37261
+ * @throws {RequiredError}
37262
+ * @memberof SharedApi
37263
+ */
37264
+ public getLokiSlowLogStats(requestParameters: SharedApiGetLokiSlowLogStatsRequest, options?: RawAxiosRequestConfig) {
37265
+ return SharedApiFp(this.configuration).getLokiSlowLogStats(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, options).then((request) => request(this.axios, this.basePath));
37266
+ }
37267
+
35881
37268
  /**
35882
37269
  * Get a Milvus native role and its privilege grants.
35883
37270
  * @summary Get Milvus role
@@ -37158,6 +38545,66 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
37158
38545
  return 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));
37159
38546
  }
37160
38547
 
38548
+ /**
38549
+ * Query audit logs through the Loki compatibility API.
38550
+ * @summary Query Loki audit logs
38551
+ * @param {SharedApiQueryLokiAuditLogsRequest} requestParameters Request parameters.
38552
+ * @param {*} [options] Override http request option.
38553
+ * @throws {RequiredError}
38554
+ * @memberof SharedApi
38555
+ */
38556
+ public queryLokiAuditLogs(requestParameters: SharedApiQueryLokiAuditLogsRequest, options?: RawAxiosRequestConfig) {
38557
+ return 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));
38558
+ }
38559
+
38560
+ /**
38561
+ * Query error logs through the Loki compatibility API.
38562
+ * @summary Query Loki error logs
38563
+ * @param {SharedApiQueryLokiErrorLogsRequest} requestParameters Request parameters.
38564
+ * @param {*} [options] Override http request option.
38565
+ * @throws {RequiredError}
38566
+ * @memberof SharedApi
38567
+ */
38568
+ public queryLokiErrorLogs(requestParameters: SharedApiQueryLokiErrorLogsRequest, options?: RawAxiosRequestConfig) {
38569
+ return 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));
38570
+ }
38571
+
38572
+ /**
38573
+ * Query pod logs through the Loki compatibility API.
38574
+ * @summary Query Loki pod logs
38575
+ * @param {SharedApiQueryLokiPodLogsRequest} requestParameters Request parameters.
38576
+ * @param {*} [options] Override http request option.
38577
+ * @throws {RequiredError}
38578
+ * @memberof SharedApi
38579
+ */
38580
+ public queryLokiPodLogs(requestParameters: SharedApiQueryLokiPodLogsRequest, options?: RawAxiosRequestConfig) {
38581
+ return 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));
38582
+ }
38583
+
38584
+ /**
38585
+ * Query running logs through the Loki compatibility API.
38586
+ * @summary Query Loki running logs
38587
+ * @param {SharedApiQueryLokiRunningLogsRequest} requestParameters Request parameters.
38588
+ * @param {*} [options] Override http request option.
38589
+ * @throws {RequiredError}
38590
+ * @memberof SharedApi
38591
+ */
38592
+ public queryLokiRunningLogs(requestParameters: SharedApiQueryLokiRunningLogsRequest, options?: RawAxiosRequestConfig) {
38593
+ return 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));
38594
+ }
38595
+
38596
+ /**
38597
+ * Query slow logs through the Loki compatibility API.
38598
+ * @summary Query Loki slow logs
38599
+ * @param {SharedApiQueryLokiSlowLogsRequest} requestParameters Request parameters.
38600
+ * @param {*} [options] Override http request option.
38601
+ * @throws {RequiredError}
38602
+ * @memberof SharedApi
38603
+ */
38604
+ public queryLokiSlowLogs(requestParameters: SharedApiQueryLokiSlowLogsRequest, options?: RawAxiosRequestConfig) {
38605
+ return 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));
38606
+ }
38607
+
37161
38608
  /**
37162
38609
  * Query pod logs of a cluster
37163
38610
  * @summary Query cluster pod logs