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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -4528,6 +4528,98 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
4528
4528
 
4529
4529
 
4530
4530
 
4531
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4532
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4533
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4534
+
4535
+ return {
4536
+ url: toPathString(localVarUrlObj),
4537
+ options: localVarRequestOptions,
4538
+ };
4539
+ },
4540
+ /**
4541
+ * Export logs through the Loki compatibility API.
4542
+ * @summary Export Loki logs
4543
+ * @param {string} orgName
4544
+ * @param {string} clusterName
4545
+ * @param {string} logType Log type: runninglog, errorlog, slow, auditlog
4546
+ * @param {number} [startTime] Start time in epoch nanoseconds. If omitted, exports from the earliest available log
4547
+ * @param {number} [endTime] End time in epoch nanoseconds. If omitted, exports up to the latest available log
4548
+ * @param {string} [format] Export format: csv, raw, jsonl
4549
+ * @param {string} [query]
4550
+ * @param {string} [filename]
4551
+ * @param {string} [componentName]
4552
+ * @param {string} [instanceName]
4553
+ * @param {number} [maxLines] Maximum number of lines to export. Defaults to 100000 if omitted
4554
+ * @param {*} [options] Override http request option.
4555
+ * @throws {RequiredError}
4556
+ */
4557
+ 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> => {
4558
+ // verify required parameter 'orgName' is not null or undefined
4559
+ assertParamExists('exportLokiClusterLogs', 'orgName', orgName)
4560
+ // verify required parameter 'clusterName' is not null or undefined
4561
+ assertParamExists('exportLokiClusterLogs', 'clusterName', clusterName)
4562
+ // verify required parameter 'logType' is not null or undefined
4563
+ assertParamExists('exportLokiClusterLogs', 'logType', logType)
4564
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/export`
4565
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
4566
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
4567
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4568
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4569
+ let baseOptions;
4570
+ if (configuration) {
4571
+ baseOptions = configuration.baseOptions;
4572
+ }
4573
+
4574
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4575
+ const localVarHeaderParameter = {} as any;
4576
+ const localVarQueryParameter = {} as any;
4577
+
4578
+ // authentication BearerToken required
4579
+ // http bearer authentication required
4580
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4581
+
4582
+ // authentication DigestAuth required
4583
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4584
+
4585
+ if (logType !== undefined) {
4586
+ localVarQueryParameter['logType'] = logType;
4587
+ }
4588
+
4589
+ if (startTime !== undefined) {
4590
+ localVarQueryParameter['startTime'] = startTime;
4591
+ }
4592
+
4593
+ if (endTime !== undefined) {
4594
+ localVarQueryParameter['endTime'] = endTime;
4595
+ }
4596
+
4597
+ if (format !== undefined) {
4598
+ localVarQueryParameter['format'] = format;
4599
+ }
4600
+
4601
+ if (query !== undefined) {
4602
+ localVarQueryParameter['query'] = query;
4603
+ }
4604
+
4605
+ if (filename !== undefined) {
4606
+ localVarQueryParameter['filename'] = filename;
4607
+ }
4608
+
4609
+ if (componentName !== undefined) {
4610
+ localVarQueryParameter['componentName'] = componentName;
4611
+ }
4612
+
4613
+ if (instanceName !== undefined) {
4614
+ localVarQueryParameter['instanceName'] = instanceName;
4615
+ }
4616
+
4617
+ if (maxLines !== undefined) {
4618
+ localVarQueryParameter['maxLines'] = maxLines;
4619
+ }
4620
+
4621
+
4622
+
4531
4623
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4532
4624
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4533
4625
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -6563,25 +6655,29 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
6563
6655
  };
6564
6656
  },
6565
6657
  /**
6566
- * Get a Milvus native role and its privilege grants.
6567
- * @summary Get Milvus role
6568
- * @param {string} orgName name of the Org
6569
- * @param {string} clusterName name of the Cluster
6570
- * @param {string} roleName name of the Milvus role
6658
+ * Query slow-log statistics through the Loki compatibility API.
6659
+ * @summary Query Loki slow-log statistics
6660
+ * @param {string} orgName
6661
+ * @param {string} clusterName
6662
+ * @param {string} startTime Start time in epoch nanoseconds.
6663
+ * @param {string} endTime End time in epoch nanoseconds.
6664
+ * @param {string} [componentName]
6665
+ * @param {string} [instanceName]
6571
6666
  * @param {*} [options] Override http request option.
6572
6667
  * @throws {RequiredError}
6573
6668
  */
6574
- getMilvusRole: async (orgName: string, clusterName: string, roleName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6669
+ getLokiSlowLogStats: async (orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6575
6670
  // verify required parameter 'orgName' is not null or undefined
6576
- assertParamExists('getMilvusRole', 'orgName', orgName)
6671
+ assertParamExists('getLokiSlowLogStats', 'orgName', orgName)
6577
6672
  // verify required parameter 'clusterName' is not null or undefined
6578
- assertParamExists('getMilvusRole', 'clusterName', clusterName)
6579
- // verify required parameter 'roleName' is not null or undefined
6580
- assertParamExists('getMilvusRole', 'roleName', roleName)
6581
- const localVarPath = `/api/v1/data/milvus/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
6673
+ assertParamExists('getLokiSlowLogStats', 'clusterName', clusterName)
6674
+ // verify required parameter 'startTime' is not null or undefined
6675
+ assertParamExists('getLokiSlowLogStats', 'startTime', startTime)
6676
+ // verify required parameter 'endTime' is not null or undefined
6677
+ assertParamExists('getLokiSlowLogStats', 'endTime', endTime)
6678
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/slow/stats`
6582
6679
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6583
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
6584
- .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
6680
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
6585
6681
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6586
6682
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6587
6683
  let baseOptions;
@@ -6600,158 +6696,22 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
6600
6696
  // authentication DigestAuth required
6601
6697
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6602
6698
 
6603
-
6604
-
6605
- setSearchParams(localVarUrlObj, localVarQueryParameter);
6606
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6607
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6608
-
6609
- return {
6610
- url: toPathString(localVarUrlObj),
6611
- options: localVarRequestOptions,
6612
- };
6613
- },
6614
- /**
6615
- *
6616
- * @summary get the detail object info
6617
- * @param {string} orgName name of the Org
6618
- * @param {string} clusterName name of the cluster
6619
- * @param {string} id id of the datasource
6620
- * @param {string} schema schema or database name
6621
- * @param {string} type object type
6622
- * @param {string} objectName object name
6623
- * @param {string} [database] database name, used by engines such as MSSQL when reading object metadata inside a schema
6624
- * @param {*} [options] Override http request option.
6625
- * @throws {RequiredError}
6626
- */
6627
- getObjectInfo: async (orgName: string, clusterName: string, id: string, schema: string, type: string, objectName: string, database?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6628
- // verify required parameter 'orgName' is not null or undefined
6629
- assertParamExists('getObjectInfo', 'orgName', orgName)
6630
- // verify required parameter 'clusterName' is not null or undefined
6631
- assertParamExists('getObjectInfo', 'clusterName', clusterName)
6632
- // verify required parameter 'id' is not null or undefined
6633
- assertParamExists('getObjectInfo', 'id', id)
6634
- // verify required parameter 'schema' is not null or undefined
6635
- assertParamExists('getObjectInfo', 'schema', schema)
6636
- // verify required parameter 'type' is not null or undefined
6637
- assertParamExists('getObjectInfo', 'type', type)
6638
- // verify required parameter 'objectName' is not null or undefined
6639
- assertParamExists('getObjectInfo', 'objectName', objectName)
6640
- const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/{schema}/{type}/{objectName}`
6641
- .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6642
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
6643
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
6644
- .replace(`{${"schema"}}`, encodeURIComponent(String(schema)))
6645
- .replace(`{${"type"}}`, encodeURIComponent(String(type)))
6646
- .replace(`{${"objectName"}}`, encodeURIComponent(String(objectName)));
6647
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
6648
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6649
- let baseOptions;
6650
- if (configuration) {
6651
- baseOptions = configuration.baseOptions;
6699
+ if (startTime !== undefined) {
6700
+ localVarQueryParameter['startTime'] = startTime;
6652
6701
  }
6653
6702
 
6654
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6655
- const localVarHeaderParameter = {} as any;
6656
- const localVarQueryParameter = {} as any;
6657
-
6658
- // authentication BearerToken required
6659
- // http bearer authentication required
6660
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
6661
-
6662
- // authentication DigestAuth required
6663
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6664
-
6665
- if (database !== undefined) {
6666
- localVarQueryParameter['database'] = database;
6703
+ if (endTime !== undefined) {
6704
+ localVarQueryParameter['endTime'] = endTime;
6667
6705
  }
6668
6706
 
6669
-
6670
-
6671
- setSearchParams(localVarUrlObj, localVarQueryParameter);
6672
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6673
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6674
-
6675
- return {
6676
- url: toPathString(localVarUrlObj),
6677
- options: localVarRequestOptions,
6678
- };
6679
- },
6680
- /**
6681
- *
6682
- * @summary Get a parameter of an organization
6683
- * @param {string} orgName The name of the organization
6684
- * @param {string} parameterName The name of the parameter
6685
- * @param {*} [options] Override http request option.
6686
- * @throws {RequiredError}
6687
- */
6688
- getOrgParameter: async (orgName: string, parameterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6689
- // verify required parameter 'orgName' is not null or undefined
6690
- assertParamExists('getOrgParameter', 'orgName', orgName)
6691
- // verify required parameter 'parameterName' is not null or undefined
6692
- assertParamExists('getOrgParameter', 'parameterName', parameterName)
6693
- const localVarPath = `/api/v1/organizations/{orgName}/parameters/{parameterName}`
6694
- .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6695
- .replace(`{${"parameterName"}}`, encodeURIComponent(String(parameterName)));
6696
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
6697
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6698
- let baseOptions;
6699
- if (configuration) {
6700
- baseOptions = configuration.baseOptions;
6707
+ if (componentName !== undefined) {
6708
+ localVarQueryParameter['componentName'] = componentName;
6701
6709
  }
6702
6710
 
6703
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6704
- const localVarHeaderParameter = {} as any;
6705
- const localVarQueryParameter = {} as any;
6706
-
6707
- // authentication BearerToken required
6708
- // http bearer authentication required
6709
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
6710
-
6711
- // authentication DigestAuth required
6712
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6713
-
6714
-
6715
-
6716
- setSearchParams(localVarUrlObj, localVarQueryParameter);
6717
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6718
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6719
-
6720
- return {
6721
- url: toPathString(localVarUrlObj),
6722
- options: localVarRequestOptions,
6723
- };
6724
- },
6725
- /**
6726
- *
6727
- * @summary get platformParameter by name
6728
- * @param {string} platformParameterName name of the platformParameter
6729
- * @param {*} [options] Override http request option.
6730
- * @throws {RequiredError}
6731
- */
6732
- getPlatformParameter: async (platformParameterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6733
- // verify required parameter 'platformParameterName' is not null or undefined
6734
- assertParamExists('getPlatformParameter', 'platformParameterName', platformParameterName)
6735
- const localVarPath = `/api/v1/platformParameters/{platformParameterName}`
6736
- .replace(`{${"platformParameterName"}}`, encodeURIComponent(String(platformParameterName)));
6737
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
6738
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6739
- let baseOptions;
6740
- if (configuration) {
6741
- baseOptions = configuration.baseOptions;
6711
+ if (instanceName !== undefined) {
6712
+ localVarQueryParameter['instanceName'] = instanceName;
6742
6713
  }
6743
6714
 
6744
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6745
- const localVarHeaderParameter = {} as any;
6746
- const localVarQueryParameter = {} as any;
6747
-
6748
- // authentication BearerToken required
6749
- // http bearer authentication required
6750
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
6751
-
6752
- // authentication DigestAuth required
6753
- await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6754
-
6755
6715
 
6756
6716
 
6757
6717
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -6764,21 +6724,222 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
6764
6724
  };
6765
6725
  },
6766
6726
  /**
6767
- *
6768
- * @summary Get cluster in the Recycle Bin of the Org
6727
+ * Get a Milvus native role and its privilege grants.
6728
+ * @summary Get Milvus role
6769
6729
  * @param {string} orgName name of the Org
6770
- * @param {string} clusterName name of the cluster
6730
+ * @param {string} clusterName name of the Cluster
6731
+ * @param {string} roleName name of the Milvus role
6771
6732
  * @param {*} [options] Override http request option.
6772
6733
  * @throws {RequiredError}
6773
6734
  */
6774
- getRecycleBinCluster: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6735
+ getMilvusRole: async (orgName: string, clusterName: string, roleName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6775
6736
  // verify required parameter 'orgName' is not null or undefined
6776
- assertParamExists('getRecycleBinCluster', 'orgName', orgName)
6737
+ assertParamExists('getMilvusRole', 'orgName', orgName)
6777
6738
  // verify required parameter 'clusterName' is not null or undefined
6778
- assertParamExists('getRecycleBinCluster', 'clusterName', clusterName)
6779
- const localVarPath = `/api/v1/organizations/{orgName}/recycleBin/clusters/{clusterName}`
6739
+ assertParamExists('getMilvusRole', 'clusterName', clusterName)
6740
+ // verify required parameter 'roleName' is not null or undefined
6741
+ assertParamExists('getMilvusRole', 'roleName', roleName)
6742
+ const localVarPath = `/api/v1/data/milvus/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
6780
6743
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6781
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
6744
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
6745
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
6746
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6747
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6748
+ let baseOptions;
6749
+ if (configuration) {
6750
+ baseOptions = configuration.baseOptions;
6751
+ }
6752
+
6753
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6754
+ const localVarHeaderParameter = {} as any;
6755
+ const localVarQueryParameter = {} as any;
6756
+
6757
+ // authentication BearerToken required
6758
+ // http bearer authentication required
6759
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6760
+
6761
+ // authentication DigestAuth required
6762
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6763
+
6764
+
6765
+
6766
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6767
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6768
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6769
+
6770
+ return {
6771
+ url: toPathString(localVarUrlObj),
6772
+ options: localVarRequestOptions,
6773
+ };
6774
+ },
6775
+ /**
6776
+ *
6777
+ * @summary get the detail object info
6778
+ * @param {string} orgName name of the Org
6779
+ * @param {string} clusterName name of the cluster
6780
+ * @param {string} id id of the datasource
6781
+ * @param {string} schema schema or database name
6782
+ * @param {string} type object type
6783
+ * @param {string} objectName object name
6784
+ * @param {string} [database] database name, used by engines such as MSSQL when reading object metadata inside a schema
6785
+ * @param {*} [options] Override http request option.
6786
+ * @throws {RequiredError}
6787
+ */
6788
+ getObjectInfo: async (orgName: string, clusterName: string, id: string, schema: string, type: string, objectName: string, database?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6789
+ // verify required parameter 'orgName' is not null or undefined
6790
+ assertParamExists('getObjectInfo', 'orgName', orgName)
6791
+ // verify required parameter 'clusterName' is not null or undefined
6792
+ assertParamExists('getObjectInfo', 'clusterName', clusterName)
6793
+ // verify required parameter 'id' is not null or undefined
6794
+ assertParamExists('getObjectInfo', 'id', id)
6795
+ // verify required parameter 'schema' is not null or undefined
6796
+ assertParamExists('getObjectInfo', 'schema', schema)
6797
+ // verify required parameter 'type' is not null or undefined
6798
+ assertParamExists('getObjectInfo', 'type', type)
6799
+ // verify required parameter 'objectName' is not null or undefined
6800
+ assertParamExists('getObjectInfo', 'objectName', objectName)
6801
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/datasource/{id}/{schema}/{type}/{objectName}`
6802
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6803
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
6804
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)))
6805
+ .replace(`{${"schema"}}`, encodeURIComponent(String(schema)))
6806
+ .replace(`{${"type"}}`, encodeURIComponent(String(type)))
6807
+ .replace(`{${"objectName"}}`, encodeURIComponent(String(objectName)));
6808
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6809
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6810
+ let baseOptions;
6811
+ if (configuration) {
6812
+ baseOptions = configuration.baseOptions;
6813
+ }
6814
+
6815
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6816
+ const localVarHeaderParameter = {} as any;
6817
+ const localVarQueryParameter = {} as any;
6818
+
6819
+ // authentication BearerToken required
6820
+ // http bearer authentication required
6821
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6822
+
6823
+ // authentication DigestAuth required
6824
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6825
+
6826
+ if (database !== undefined) {
6827
+ localVarQueryParameter['database'] = database;
6828
+ }
6829
+
6830
+
6831
+
6832
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6833
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6834
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6835
+
6836
+ return {
6837
+ url: toPathString(localVarUrlObj),
6838
+ options: localVarRequestOptions,
6839
+ };
6840
+ },
6841
+ /**
6842
+ *
6843
+ * @summary Get a parameter of an organization
6844
+ * @param {string} orgName The name of the organization
6845
+ * @param {string} parameterName The name of the parameter
6846
+ * @param {*} [options] Override http request option.
6847
+ * @throws {RequiredError}
6848
+ */
6849
+ getOrgParameter: async (orgName: string, parameterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6850
+ // verify required parameter 'orgName' is not null or undefined
6851
+ assertParamExists('getOrgParameter', 'orgName', orgName)
6852
+ // verify required parameter 'parameterName' is not null or undefined
6853
+ assertParamExists('getOrgParameter', 'parameterName', parameterName)
6854
+ const localVarPath = `/api/v1/organizations/{orgName}/parameters/{parameterName}`
6855
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6856
+ .replace(`{${"parameterName"}}`, encodeURIComponent(String(parameterName)));
6857
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6858
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6859
+ let baseOptions;
6860
+ if (configuration) {
6861
+ baseOptions = configuration.baseOptions;
6862
+ }
6863
+
6864
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6865
+ const localVarHeaderParameter = {} as any;
6866
+ const localVarQueryParameter = {} as any;
6867
+
6868
+ // authentication BearerToken required
6869
+ // http bearer authentication required
6870
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6871
+
6872
+ // authentication DigestAuth required
6873
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6874
+
6875
+
6876
+
6877
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6878
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6879
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6880
+
6881
+ return {
6882
+ url: toPathString(localVarUrlObj),
6883
+ options: localVarRequestOptions,
6884
+ };
6885
+ },
6886
+ /**
6887
+ *
6888
+ * @summary get platformParameter by name
6889
+ * @param {string} platformParameterName name of the platformParameter
6890
+ * @param {*} [options] Override http request option.
6891
+ * @throws {RequiredError}
6892
+ */
6893
+ getPlatformParameter: async (platformParameterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6894
+ // verify required parameter 'platformParameterName' is not null or undefined
6895
+ assertParamExists('getPlatformParameter', 'platformParameterName', platformParameterName)
6896
+ const localVarPath = `/api/v1/platformParameters/{platformParameterName}`
6897
+ .replace(`{${"platformParameterName"}}`, encodeURIComponent(String(platformParameterName)));
6898
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6899
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6900
+ let baseOptions;
6901
+ if (configuration) {
6902
+ baseOptions = configuration.baseOptions;
6903
+ }
6904
+
6905
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6906
+ const localVarHeaderParameter = {} as any;
6907
+ const localVarQueryParameter = {} as any;
6908
+
6909
+ // authentication BearerToken required
6910
+ // http bearer authentication required
6911
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6912
+
6913
+ // authentication DigestAuth required
6914
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
6915
+
6916
+
6917
+
6918
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6919
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6920
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6921
+
6922
+ return {
6923
+ url: toPathString(localVarUrlObj),
6924
+ options: localVarRequestOptions,
6925
+ };
6926
+ },
6927
+ /**
6928
+ *
6929
+ * @summary Get cluster in the Recycle Bin of the Org
6930
+ * @param {string} orgName name of the Org
6931
+ * @param {string} clusterName name of the cluster
6932
+ * @param {*} [options] Override http request option.
6933
+ * @throws {RequiredError}
6934
+ */
6935
+ getRecycleBinCluster: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
6936
+ // verify required parameter 'orgName' is not null or undefined
6937
+ assertParamExists('getRecycleBinCluster', 'orgName', orgName)
6938
+ // verify required parameter 'clusterName' is not null or undefined
6939
+ assertParamExists('getRecycleBinCluster', 'clusterName', clusterName)
6940
+ const localVarPath = `/api/v1/organizations/{orgName}/recycleBin/clusters/{clusterName}`
6941
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6942
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
6782
6943
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6783
6944
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6784
6945
  let baseOptions;
@@ -11994,8 +12155,87 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
11994
12155
  };
11995
12156
  },
11996
12157
  /**
11997
- * Query pod logs of a cluster
11998
- * @summary Query cluster pod logs
12158
+ * Query audit logs through the Loki compatibility API.
12159
+ * @summary Query Loki audit logs
12160
+ * @param {string} orgName
12161
+ * @param {string} clusterName
12162
+ * @param {string} startTime Start time in epoch nanoseconds.
12163
+ * @param {string} endTime End time in epoch nanoseconds.
12164
+ * @param {string} [limit]
12165
+ * @param {string} [componentName]
12166
+ * @param {string} [instanceName]
12167
+ * @param {SortType} [sortType]
12168
+ * @param {*} [options] Override http request option.
12169
+ * @throws {RequiredError}
12170
+ */
12171
+ queryLokiAuditLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, limit?: string, componentName?: string, instanceName?: string, sortType?: SortType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12172
+ // verify required parameter 'orgName' is not null or undefined
12173
+ assertParamExists('queryLokiAuditLogs', 'orgName', orgName)
12174
+ // verify required parameter 'clusterName' is not null or undefined
12175
+ assertParamExists('queryLokiAuditLogs', 'clusterName', clusterName)
12176
+ // verify required parameter 'startTime' is not null or undefined
12177
+ assertParamExists('queryLokiAuditLogs', 'startTime', startTime)
12178
+ // verify required parameter 'endTime' is not null or undefined
12179
+ assertParamExists('queryLokiAuditLogs', 'endTime', endTime)
12180
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/audit`
12181
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
12182
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
12183
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12184
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12185
+ let baseOptions;
12186
+ if (configuration) {
12187
+ baseOptions = configuration.baseOptions;
12188
+ }
12189
+
12190
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12191
+ const localVarHeaderParameter = {} as any;
12192
+ const localVarQueryParameter = {} as any;
12193
+
12194
+ // authentication BearerToken required
12195
+ // http bearer authentication required
12196
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12197
+
12198
+ // authentication DigestAuth required
12199
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
12200
+
12201
+ if (startTime !== undefined) {
12202
+ localVarQueryParameter['startTime'] = startTime;
12203
+ }
12204
+
12205
+ if (endTime !== undefined) {
12206
+ localVarQueryParameter['endTime'] = endTime;
12207
+ }
12208
+
12209
+ if (limit !== undefined) {
12210
+ localVarQueryParameter['limit'] = limit;
12211
+ }
12212
+
12213
+ if (componentName !== undefined) {
12214
+ localVarQueryParameter['componentName'] = componentName;
12215
+ }
12216
+
12217
+ if (instanceName !== undefined) {
12218
+ localVarQueryParameter['instanceName'] = instanceName;
12219
+ }
12220
+
12221
+ if (sortType !== undefined) {
12222
+ localVarQueryParameter['sortType'] = sortType;
12223
+ }
12224
+
12225
+
12226
+
12227
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12228
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12229
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12230
+
12231
+ return {
12232
+ url: toPathString(localVarUrlObj),
12233
+ options: localVarRequestOptions,
12234
+ };
12235
+ },
12236
+ /**
12237
+ * Query error logs through the Loki compatibility API.
12238
+ * @summary Query Loki error logs
11999
12239
  * @param {string} orgName
12000
12240
  * @param {string} clusterName
12001
12241
  * @param {string} startTime Start time in epoch nanoseconds.
@@ -12003,21 +12243,367 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
12003
12243
  * @param {string} [componentName]
12004
12244
  * @param {string} [instanceName]
12005
12245
  * @param {string} [filename]
12246
+ * @param {string} [query]
12006
12247
  * @param {string} [limit]
12007
12248
  * @param {SortType} [sortType]
12008
12249
  * @param {*} [options] Override http request option.
12009
12250
  * @throws {RequiredError}
12010
12251
  */
12011
- queryPodLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, filename?: string, limit?: string, sortType?: SortType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12252
+ 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> => {
12012
12253
  // verify required parameter 'orgName' is not null or undefined
12013
- assertParamExists('queryPodLogs', 'orgName', orgName)
12254
+ assertParamExists('queryLokiErrorLogs', 'orgName', orgName)
12014
12255
  // verify required parameter 'clusterName' is not null or undefined
12015
- assertParamExists('queryPodLogs', 'clusterName', clusterName)
12256
+ assertParamExists('queryLokiErrorLogs', 'clusterName', clusterName)
12016
12257
  // verify required parameter 'startTime' is not null or undefined
12017
- assertParamExists('queryPodLogs', 'startTime', startTime)
12258
+ assertParamExists('queryLokiErrorLogs', 'startTime', startTime)
12018
12259
  // verify required parameter 'endTime' is not null or undefined
12019
- assertParamExists('queryPodLogs', 'endTime', endTime)
12020
- const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/pod`
12260
+ assertParamExists('queryLokiErrorLogs', 'endTime', endTime)
12261
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/error`
12262
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
12263
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
12264
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12265
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12266
+ let baseOptions;
12267
+ if (configuration) {
12268
+ baseOptions = configuration.baseOptions;
12269
+ }
12270
+
12271
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12272
+ const localVarHeaderParameter = {} as any;
12273
+ const localVarQueryParameter = {} as any;
12274
+
12275
+ // authentication BearerToken required
12276
+ // http bearer authentication required
12277
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12278
+
12279
+ // authentication DigestAuth required
12280
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
12281
+
12282
+ if (componentName !== undefined) {
12283
+ localVarQueryParameter['componentName'] = componentName;
12284
+ }
12285
+
12286
+ if (instanceName !== undefined) {
12287
+ localVarQueryParameter['instanceName'] = instanceName;
12288
+ }
12289
+
12290
+ if (filename !== undefined) {
12291
+ localVarQueryParameter['filename'] = filename;
12292
+ }
12293
+
12294
+ if (startTime !== undefined) {
12295
+ localVarQueryParameter['startTime'] = startTime;
12296
+ }
12297
+
12298
+ if (endTime !== undefined) {
12299
+ localVarQueryParameter['endTime'] = endTime;
12300
+ }
12301
+
12302
+ if (query !== undefined) {
12303
+ localVarQueryParameter['query'] = query;
12304
+ }
12305
+
12306
+ if (limit !== undefined) {
12307
+ localVarQueryParameter['limit'] = limit;
12308
+ }
12309
+
12310
+ if (sortType !== undefined) {
12311
+ localVarQueryParameter['sortType'] = sortType;
12312
+ }
12313
+
12314
+
12315
+
12316
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12317
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12318
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12319
+
12320
+ return {
12321
+ url: toPathString(localVarUrlObj),
12322
+ options: localVarRequestOptions,
12323
+ };
12324
+ },
12325
+ /**
12326
+ * Query pod logs through the Loki compatibility API.
12327
+ * @summary Query Loki pod logs
12328
+ * @param {string} orgName
12329
+ * @param {string} clusterName
12330
+ * @param {string} startTime Start time in epoch nanoseconds.
12331
+ * @param {string} endTime End time in epoch nanoseconds.
12332
+ * @param {string} [componentName]
12333
+ * @param {string} [instanceName]
12334
+ * @param {string} [filename]
12335
+ * @param {string} [limit]
12336
+ * @param {SortType} [sortType]
12337
+ * @param {*} [options] Override http request option.
12338
+ * @throws {RequiredError}
12339
+ */
12340
+ queryLokiPodLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, filename?: string, limit?: string, sortType?: SortType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12341
+ // verify required parameter 'orgName' is not null or undefined
12342
+ assertParamExists('queryLokiPodLogs', 'orgName', orgName)
12343
+ // verify required parameter 'clusterName' is not null or undefined
12344
+ assertParamExists('queryLokiPodLogs', 'clusterName', clusterName)
12345
+ // verify required parameter 'startTime' is not null or undefined
12346
+ assertParamExists('queryLokiPodLogs', 'startTime', startTime)
12347
+ // verify required parameter 'endTime' is not null or undefined
12348
+ assertParamExists('queryLokiPodLogs', 'endTime', endTime)
12349
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/pod`
12350
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
12351
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
12352
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12353
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12354
+ let baseOptions;
12355
+ if (configuration) {
12356
+ baseOptions = configuration.baseOptions;
12357
+ }
12358
+
12359
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12360
+ const localVarHeaderParameter = {} as any;
12361
+ const localVarQueryParameter = {} as any;
12362
+
12363
+ // authentication BearerToken required
12364
+ // http bearer authentication required
12365
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12366
+
12367
+ // authentication DigestAuth required
12368
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
12369
+
12370
+ if (componentName !== undefined) {
12371
+ localVarQueryParameter['componentName'] = componentName;
12372
+ }
12373
+
12374
+ if (instanceName !== undefined) {
12375
+ localVarQueryParameter['instanceName'] = instanceName;
12376
+ }
12377
+
12378
+ if (filename !== undefined) {
12379
+ localVarQueryParameter['filename'] = filename;
12380
+ }
12381
+
12382
+ if (startTime !== undefined) {
12383
+ localVarQueryParameter['startTime'] = startTime;
12384
+ }
12385
+
12386
+ if (endTime !== undefined) {
12387
+ localVarQueryParameter['endTime'] = endTime;
12388
+ }
12389
+
12390
+ if (limit !== undefined) {
12391
+ localVarQueryParameter['limit'] = limit;
12392
+ }
12393
+
12394
+ if (sortType !== undefined) {
12395
+ localVarQueryParameter['sortType'] = sortType;
12396
+ }
12397
+
12398
+
12399
+
12400
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12401
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12402
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12403
+
12404
+ return {
12405
+ url: toPathString(localVarUrlObj),
12406
+ options: localVarRequestOptions,
12407
+ };
12408
+ },
12409
+ /**
12410
+ * Query running logs through the Loki compatibility API.
12411
+ * @summary Query Loki running logs
12412
+ * @param {string} orgName
12413
+ * @param {string} clusterName
12414
+ * @param {string} startTime Start time in epoch nanoseconds.
12415
+ * @param {string} endTime End time in epoch nanoseconds.
12416
+ * @param {string} [componentName]
12417
+ * @param {string} [instanceName]
12418
+ * @param {string} [filename]
12419
+ * @param {string} [limit]
12420
+ * @param {string} [query]
12421
+ * @param {SortType} [sortType]
12422
+ * @param {*} [options] Override http request option.
12423
+ * @throws {RequiredError}
12424
+ */
12425
+ 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> => {
12426
+ // verify required parameter 'orgName' is not null or undefined
12427
+ assertParamExists('queryLokiRunningLogs', 'orgName', orgName)
12428
+ // verify required parameter 'clusterName' is not null or undefined
12429
+ assertParamExists('queryLokiRunningLogs', 'clusterName', clusterName)
12430
+ // verify required parameter 'startTime' is not null or undefined
12431
+ assertParamExists('queryLokiRunningLogs', 'startTime', startTime)
12432
+ // verify required parameter 'endTime' is not null or undefined
12433
+ assertParamExists('queryLokiRunningLogs', 'endTime', endTime)
12434
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/running`
12435
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
12436
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
12437
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12438
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12439
+ let baseOptions;
12440
+ if (configuration) {
12441
+ baseOptions = configuration.baseOptions;
12442
+ }
12443
+
12444
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12445
+ const localVarHeaderParameter = {} as any;
12446
+ const localVarQueryParameter = {} as any;
12447
+
12448
+ // authentication BearerToken required
12449
+ // http bearer authentication required
12450
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12451
+
12452
+ // authentication DigestAuth required
12453
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
12454
+
12455
+ if (componentName !== undefined) {
12456
+ localVarQueryParameter['componentName'] = componentName;
12457
+ }
12458
+
12459
+ if (instanceName !== undefined) {
12460
+ localVarQueryParameter['instanceName'] = instanceName;
12461
+ }
12462
+
12463
+ if (filename !== undefined) {
12464
+ localVarQueryParameter['filename'] = filename;
12465
+ }
12466
+
12467
+ if (startTime !== undefined) {
12468
+ localVarQueryParameter['startTime'] = startTime;
12469
+ }
12470
+
12471
+ if (endTime !== undefined) {
12472
+ localVarQueryParameter['endTime'] = endTime;
12473
+ }
12474
+
12475
+ if (limit !== undefined) {
12476
+ localVarQueryParameter['limit'] = limit;
12477
+ }
12478
+
12479
+ if (query !== undefined) {
12480
+ localVarQueryParameter['query'] = query;
12481
+ }
12482
+
12483
+ if (sortType !== undefined) {
12484
+ localVarQueryParameter['sortType'] = sortType;
12485
+ }
12486
+
12487
+
12488
+
12489
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12490
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12491
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12492
+
12493
+ return {
12494
+ url: toPathString(localVarUrlObj),
12495
+ options: localVarRequestOptions,
12496
+ };
12497
+ },
12498
+ /**
12499
+ * Query slow logs through the Loki compatibility API.
12500
+ * @summary Query Loki slow logs
12501
+ * @param {string} orgName
12502
+ * @param {string} clusterName
12503
+ * @param {string} startTime Start time in epoch nanoseconds.
12504
+ * @param {string} endTime End time in epoch nanoseconds.
12505
+ * @param {string} [componentName]
12506
+ * @param {string} [instanceName]
12507
+ * @param {string} [query]
12508
+ * @param {string} [limit]
12509
+ * @param {SortType} [sortType]
12510
+ * @param {*} [options] Override http request option.
12511
+ * @throws {RequiredError}
12512
+ */
12513
+ queryLokiSlowLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, query?: string, limit?: string, sortType?: SortType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12514
+ // verify required parameter 'orgName' is not null or undefined
12515
+ assertParamExists('queryLokiSlowLogs', 'orgName', orgName)
12516
+ // verify required parameter 'clusterName' is not null or undefined
12517
+ assertParamExists('queryLokiSlowLogs', 'clusterName', clusterName)
12518
+ // verify required parameter 'startTime' is not null or undefined
12519
+ assertParamExists('queryLokiSlowLogs', 'startTime', startTime)
12520
+ // verify required parameter 'endTime' is not null or undefined
12521
+ assertParamExists('queryLokiSlowLogs', 'endTime', endTime)
12522
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/loki/slow`
12523
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
12524
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
12525
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12526
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12527
+ let baseOptions;
12528
+ if (configuration) {
12529
+ baseOptions = configuration.baseOptions;
12530
+ }
12531
+
12532
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12533
+ const localVarHeaderParameter = {} as any;
12534
+ const localVarQueryParameter = {} as any;
12535
+
12536
+ // authentication BearerToken required
12537
+ // http bearer authentication required
12538
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12539
+
12540
+ // authentication DigestAuth required
12541
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
12542
+
12543
+ if (startTime !== undefined) {
12544
+ localVarQueryParameter['startTime'] = startTime;
12545
+ }
12546
+
12547
+ if (endTime !== undefined) {
12548
+ localVarQueryParameter['endTime'] = endTime;
12549
+ }
12550
+
12551
+ if (componentName !== undefined) {
12552
+ localVarQueryParameter['componentName'] = componentName;
12553
+ }
12554
+
12555
+ if (instanceName !== undefined) {
12556
+ localVarQueryParameter['instanceName'] = instanceName;
12557
+ }
12558
+
12559
+ if (query !== undefined) {
12560
+ localVarQueryParameter['query'] = query;
12561
+ }
12562
+
12563
+ if (limit !== undefined) {
12564
+ localVarQueryParameter['limit'] = limit;
12565
+ }
12566
+
12567
+ if (sortType !== undefined) {
12568
+ localVarQueryParameter['sortType'] = sortType;
12569
+ }
12570
+
12571
+
12572
+
12573
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12574
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12575
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12576
+
12577
+ return {
12578
+ url: toPathString(localVarUrlObj),
12579
+ options: localVarRequestOptions,
12580
+ };
12581
+ },
12582
+ /**
12583
+ * Query pod logs of a cluster
12584
+ * @summary Query cluster pod logs
12585
+ * @param {string} orgName
12586
+ * @param {string} clusterName
12587
+ * @param {string} startTime Start time in epoch nanoseconds.
12588
+ * @param {string} endTime End time in epoch nanoseconds.
12589
+ * @param {string} [componentName]
12590
+ * @param {string} [instanceName]
12591
+ * @param {string} [filename]
12592
+ * @param {string} [limit]
12593
+ * @param {SortType} [sortType]
12594
+ * @param {*} [options] Override http request option.
12595
+ * @throws {RequiredError}
12596
+ */
12597
+ queryPodLogs: async (orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, filename?: string, limit?: string, sortType?: SortType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12598
+ // verify required parameter 'orgName' is not null or undefined
12599
+ assertParamExists('queryPodLogs', 'orgName', orgName)
12600
+ // verify required parameter 'clusterName' is not null or undefined
12601
+ assertParamExists('queryPodLogs', 'clusterName', clusterName)
12602
+ // verify required parameter 'startTime' is not null or undefined
12603
+ assertParamExists('queryPodLogs', 'startTime', startTime)
12604
+ // verify required parameter 'endTime' is not null or undefined
12605
+ assertParamExists('queryPodLogs', 'endTime', endTime)
12606
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/logs/pod`
12021
12607
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
12022
12608
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
12023
12609
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -16718,6 +17304,29 @@ export const SharedApiFp = function(configuration?: Configuration) {
16718
17304
  const localVarOperationServerBasePath = operationServerMap['SharedApi.exportClusterLogs']?.[localVarOperationServerIndex]?.url;
16719
17305
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16720
17306
  },
17307
+ /**
17308
+ * Export logs through the Loki compatibility API.
17309
+ * @summary Export Loki logs
17310
+ * @param {string} orgName
17311
+ * @param {string} clusterName
17312
+ * @param {string} logType Log type: runninglog, errorlog, slow, auditlog
17313
+ * @param {number} [startTime] Start time in epoch nanoseconds. If omitted, exports from the earliest available log
17314
+ * @param {number} [endTime] End time in epoch nanoseconds. If omitted, exports up to the latest available log
17315
+ * @param {string} [format] Export format: csv, raw, jsonl
17316
+ * @param {string} [query]
17317
+ * @param {string} [filename]
17318
+ * @param {string} [componentName]
17319
+ * @param {string} [instanceName]
17320
+ * @param {number} [maxLines] Maximum number of lines to export. Defaults to 100000 if omitted
17321
+ * @param {*} [options] Override http request option.
17322
+ * @throws {RequiredError}
17323
+ */
17324
+ 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>> {
17325
+ const localVarAxiosArgs = await localVarAxiosParamCreator.exportLokiClusterLogs(orgName, clusterName, logType, startTime, endTime, format, query, filename, componentName, instanceName, maxLines, options);
17326
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17327
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.exportLokiClusterLogs']?.[localVarOperationServerIndex]?.url;
17328
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17329
+ },
16721
17330
  /**
16722
17331
  *
16723
17332
  * @summary Export parameter template from cluster
@@ -17325,6 +17934,24 @@ export const SharedApiFp = function(configuration?: Configuration) {
17325
17934
  const localVarOperationServerBasePath = operationServerMap['SharedApi.getKafkaTopics']?.[localVarOperationServerIndex]?.url;
17326
17935
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17327
17936
  },
17937
+ /**
17938
+ * Query slow-log statistics through the Loki compatibility API.
17939
+ * @summary Query Loki slow-log statistics
17940
+ * @param {string} orgName
17941
+ * @param {string} clusterName
17942
+ * @param {string} startTime Start time in epoch nanoseconds.
17943
+ * @param {string} endTime End time in epoch nanoseconds.
17944
+ * @param {string} [componentName]
17945
+ * @param {string} [instanceName]
17946
+ * @param {*} [options] Override http request option.
17947
+ * @throws {RequiredError}
17948
+ */
17949
+ async getLokiSlowLogStats(orgName: string, clusterName: string, startTime: string, endTime: string, componentName?: string, instanceName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterSlowLogStats>> {
17950
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLokiSlowLogStats(orgName, clusterName, startTime, endTime, componentName, instanceName, options);
17951
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17952
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.getLokiSlowLogStats']?.[localVarOperationServerIndex]?.url;
17953
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17954
+ },
17328
17955
  /**
17329
17956
  * Get a Milvus native role and its privilege grants.
17330
17957
  * @summary Get Milvus role
@@ -18900,6 +19527,112 @@ export const SharedApiFp = function(configuration?: Configuration) {
18900
19527
  const localVarOperationServerBasePath = operationServerMap['SharedApi.queryLogHits']?.[localVarOperationServerIndex]?.url;
18901
19528
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18902
19529
  },
19530
+ /**
19531
+ * Query audit logs through the Loki compatibility API.
19532
+ * @summary Query Loki audit logs
19533
+ * @param {string} orgName
19534
+ * @param {string} clusterName
19535
+ * @param {string} startTime Start time in epoch nanoseconds.
19536
+ * @param {string} endTime End time in epoch nanoseconds.
19537
+ * @param {string} [limit]
19538
+ * @param {string} [componentName]
19539
+ * @param {string} [instanceName]
19540
+ * @param {SortType} [sortType]
19541
+ * @param {*} [options] Override http request option.
19542
+ * @throws {RequiredError}
19543
+ */
19544
+ 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>> {
19545
+ const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiAuditLogs(orgName, clusterName, startTime, endTime, limit, componentName, instanceName, sortType, options);
19546
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19547
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.queryLokiAuditLogs']?.[localVarOperationServerIndex]?.url;
19548
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19549
+ },
19550
+ /**
19551
+ * Query error logs through the Loki compatibility API.
19552
+ * @summary Query Loki error logs
19553
+ * @param {string} orgName
19554
+ * @param {string} clusterName
19555
+ * @param {string} startTime Start time in epoch nanoseconds.
19556
+ * @param {string} endTime End time in epoch nanoseconds.
19557
+ * @param {string} [componentName]
19558
+ * @param {string} [instanceName]
19559
+ * @param {string} [filename]
19560
+ * @param {string} [query]
19561
+ * @param {string} [limit]
19562
+ * @param {SortType} [sortType]
19563
+ * @param {*} [options] Override http request option.
19564
+ * @throws {RequiredError}
19565
+ */
19566
+ 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>> {
19567
+ const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiErrorLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, query, limit, sortType, options);
19568
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19569
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.queryLokiErrorLogs']?.[localVarOperationServerIndex]?.url;
19570
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19571
+ },
19572
+ /**
19573
+ * Query pod logs through the Loki compatibility API.
19574
+ * @summary Query Loki pod logs
19575
+ * @param {string} orgName
19576
+ * @param {string} clusterName
19577
+ * @param {string} startTime Start time in epoch nanoseconds.
19578
+ * @param {string} endTime End time in epoch nanoseconds.
19579
+ * @param {string} [componentName]
19580
+ * @param {string} [instanceName]
19581
+ * @param {string} [filename]
19582
+ * @param {string} [limit]
19583
+ * @param {SortType} [sortType]
19584
+ * @param {*} [options] Override http request option.
19585
+ * @throws {RequiredError}
19586
+ */
19587
+ 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>> {
19588
+ const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiPodLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, sortType, options);
19589
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19590
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.queryLokiPodLogs']?.[localVarOperationServerIndex]?.url;
19591
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19592
+ },
19593
+ /**
19594
+ * Query running logs through the Loki compatibility API.
19595
+ * @summary Query Loki running logs
19596
+ * @param {string} orgName
19597
+ * @param {string} clusterName
19598
+ * @param {string} startTime Start time in epoch nanoseconds.
19599
+ * @param {string} endTime End time in epoch nanoseconds.
19600
+ * @param {string} [componentName]
19601
+ * @param {string} [instanceName]
19602
+ * @param {string} [filename]
19603
+ * @param {string} [limit]
19604
+ * @param {string} [query]
19605
+ * @param {SortType} [sortType]
19606
+ * @param {*} [options] Override http request option.
19607
+ * @throws {RequiredError}
19608
+ */
19609
+ 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>> {
19610
+ const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiRunningLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, filename, limit, query, sortType, options);
19611
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19612
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.queryLokiRunningLogs']?.[localVarOperationServerIndex]?.url;
19613
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19614
+ },
19615
+ /**
19616
+ * Query slow logs through the Loki compatibility API.
19617
+ * @summary Query Loki slow logs
19618
+ * @param {string} orgName
19619
+ * @param {string} clusterName
19620
+ * @param {string} startTime Start time in epoch nanoseconds.
19621
+ * @param {string} endTime End time in epoch nanoseconds.
19622
+ * @param {string} [componentName]
19623
+ * @param {string} [instanceName]
19624
+ * @param {string} [query]
19625
+ * @param {string} [limit]
19626
+ * @param {SortType} [sortType]
19627
+ * @param {*} [options] Override http request option.
19628
+ * @throws {RequiredError}
19629
+ */
19630
+ 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>> {
19631
+ const localVarAxiosArgs = await localVarAxiosParamCreator.queryLokiSlowLogs(orgName, clusterName, startTime, endTime, componentName, instanceName, query, limit, sortType, options);
19632
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19633
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.queryLokiSlowLogs']?.[localVarOperationServerIndex]?.url;
19634
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19635
+ },
18903
19636
  /**
18904
19637
  * Query pod logs of a cluster
18905
19638
  * @summary Query cluster pod logs
@@ -20664,6 +21397,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
20664
21397
  exportClusterLogs(requestParameters: SharedApiExportClusterLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
20665
21398
  return localVarFp.exportClusterLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.logType, requestParameters.startTime, requestParameters.endTime, requestParameters.format, requestParameters.query, requestParameters.filename, requestParameters.componentName, requestParameters.instanceName, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, requestParameters.maxLines, options).then((request) => request(axios, basePath));
20666
21399
  },
21400
+ /**
21401
+ * Export logs through the Loki compatibility API.
21402
+ * @summary Export Loki logs
21403
+ * @param {SharedApiExportLokiClusterLogsRequest} requestParameters Request parameters.
21404
+ * @param {*} [options] Override http request option.
21405
+ * @throws {RequiredError}
21406
+ */
21407
+ exportLokiClusterLogs(requestParameters: SharedApiExportLokiClusterLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<File> {
21408
+ 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));
21409
+ },
20667
21410
  /**
20668
21411
  *
20669
21412
  * @summary Export parameter template from cluster
@@ -21063,6 +21806,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
21063
21806
  getKafkaTopics(requestParameters: SharedApiGetKafkaTopicsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Topic>> {
21064
21807
  return localVarFp.getKafkaTopics(requestParameters.orgName, requestParameters.clusterName, requestParameters.nameFilter, requestParameters.onlyNames, options).then((request) => request(axios, basePath));
21065
21808
  },
21809
+ /**
21810
+ * Query slow-log statistics through the Loki compatibility API.
21811
+ * @summary Query Loki slow-log statistics
21812
+ * @param {SharedApiGetLokiSlowLogStatsRequest} requestParameters Request parameters.
21813
+ * @param {*} [options] Override http request option.
21814
+ * @throws {RequiredError}
21815
+ */
21816
+ getLokiSlowLogStats(requestParameters: SharedApiGetLokiSlowLogStatsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterSlowLogStats> {
21817
+ return localVarFp.getLokiSlowLogStats(requestParameters.orgName, requestParameters.clusterName, requestParameters.startTime, requestParameters.endTime, requestParameters.componentName, requestParameters.instanceName, options).then((request) => request(axios, basePath));
21818
+ },
21066
21819
  /**
21067
21820
  * Get a Milvus native role and its privilege grants.
21068
21821
  * @summary Get Milvus role
@@ -22061,6 +22814,56 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
22061
22814
  queryLogHits(requestParameters: SharedApiQueryLogHitsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterLogHitsResponse> {
22062
22815
  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));
22063
22816
  },
22817
+ /**
22818
+ * Query audit logs through the Loki compatibility API.
22819
+ * @summary Query Loki audit logs
22820
+ * @param {SharedApiQueryLokiAuditLogsRequest} requestParameters Request parameters.
22821
+ * @param {*} [options] Override http request option.
22822
+ * @throws {RequiredError}
22823
+ */
22824
+ queryLokiAuditLogs(requestParameters: SharedApiQueryLokiAuditLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLog> {
22825
+ 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));
22826
+ },
22827
+ /**
22828
+ * Query error logs through the Loki compatibility API.
22829
+ * @summary Query Loki error logs
22830
+ * @param {SharedApiQueryLokiErrorLogsRequest} requestParameters Request parameters.
22831
+ * @param {*} [options] Override http request option.
22832
+ * @throws {RequiredError}
22833
+ */
22834
+ queryLokiErrorLogs(requestParameters: SharedApiQueryLokiErrorLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRawLogResponse> {
22835
+ 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));
22836
+ },
22837
+ /**
22838
+ * Query pod logs through the Loki compatibility API.
22839
+ * @summary Query Loki pod logs
22840
+ * @param {SharedApiQueryLokiPodLogsRequest} requestParameters Request parameters.
22841
+ * @param {*} [options] Override http request option.
22842
+ * @throws {RequiredError}
22843
+ */
22844
+ queryLokiPodLogs(requestParameters: SharedApiQueryLokiPodLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRawLogResponse> {
22845
+ 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));
22846
+ },
22847
+ /**
22848
+ * Query running logs through the Loki compatibility API.
22849
+ * @summary Query Loki running logs
22850
+ * @param {SharedApiQueryLokiRunningLogsRequest} requestParameters Request parameters.
22851
+ * @param {*} [options] Override http request option.
22852
+ * @throws {RequiredError}
22853
+ */
22854
+ queryLokiRunningLogs(requestParameters: SharedApiQueryLokiRunningLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRawLogResponse> {
22855
+ 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));
22856
+ },
22857
+ /**
22858
+ * Query slow logs through the Loki compatibility API.
22859
+ * @summary Query Loki slow logs
22860
+ * @param {SharedApiQueryLokiSlowLogsRequest} requestParameters Request parameters.
22861
+ * @param {*} [options] Override http request option.
22862
+ * @throws {RequiredError}
22863
+ */
22864
+ queryLokiSlowLogs(requestParameters: SharedApiQueryLokiSlowLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLog> {
22865
+ 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));
22866
+ },
22064
22867
  /**
22065
22868
  * Query pod logs of a cluster
22066
22869
  * @summary Query cluster pod logs
@@ -23429,6 +24232,16 @@ export interface SharedApiInterface {
23429
24232
  */
23430
24233
  exportClusterLogs(requestParameters: SharedApiExportClusterLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
23431
24234
 
24235
+ /**
24236
+ * Export logs through the Loki compatibility API.
24237
+ * @summary Export Loki logs
24238
+ * @param {SharedApiExportLokiClusterLogsRequest} requestParameters Request parameters.
24239
+ * @param {*} [options] Override http request option.
24240
+ * @throws {RequiredError}
24241
+ * @memberof SharedApiInterface
24242
+ */
24243
+ exportLokiClusterLogs(requestParameters: SharedApiExportLokiClusterLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<File>;
24244
+
23432
24245
  /**
23433
24246
  *
23434
24247
  * @summary Export parameter template from cluster
@@ -23828,6 +24641,16 @@ export interface SharedApiInterface {
23828
24641
  */
23829
24642
  getKafkaTopics(requestParameters: SharedApiGetKafkaTopicsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<Topic>>;
23830
24643
 
24644
+ /**
24645
+ * Query slow-log statistics through the Loki compatibility API.
24646
+ * @summary Query Loki slow-log statistics
24647
+ * @param {SharedApiGetLokiSlowLogStatsRequest} requestParameters Request parameters.
24648
+ * @param {*} [options] Override http request option.
24649
+ * @throws {RequiredError}
24650
+ * @memberof SharedApiInterface
24651
+ */
24652
+ getLokiSlowLogStats(requestParameters: SharedApiGetLokiSlowLogStatsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterSlowLogStats>;
24653
+
23831
24654
  /**
23832
24655
  * Get a Milvus native role and its privilege grants.
23833
24656
  * @summary Get Milvus role
@@ -24826,6 +25649,56 @@ export interface SharedApiInterface {
24826
25649
  */
24827
25650
  queryLogHits(requestParameters: SharedApiQueryLogHitsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterLogHitsResponse>;
24828
25651
 
25652
+ /**
25653
+ * Query audit logs through the Loki compatibility API.
25654
+ * @summary Query Loki audit logs
25655
+ * @param {SharedApiQueryLokiAuditLogsRequest} requestParameters Request parameters.
25656
+ * @param {*} [options] Override http request option.
25657
+ * @throws {RequiredError}
25658
+ * @memberof SharedApiInterface
25659
+ */
25660
+ queryLokiAuditLogs(requestParameters: SharedApiQueryLokiAuditLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLog>;
25661
+
25662
+ /**
25663
+ * Query error logs through the Loki compatibility API.
25664
+ * @summary Query Loki error logs
25665
+ * @param {SharedApiQueryLokiErrorLogsRequest} requestParameters Request parameters.
25666
+ * @param {*} [options] Override http request option.
25667
+ * @throws {RequiredError}
25668
+ * @memberof SharedApiInterface
25669
+ */
25670
+ queryLokiErrorLogs(requestParameters: SharedApiQueryLokiErrorLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRawLogResponse>;
25671
+
25672
+ /**
25673
+ * Query pod logs through the Loki compatibility API.
25674
+ * @summary Query Loki pod logs
25675
+ * @param {SharedApiQueryLokiPodLogsRequest} requestParameters Request parameters.
25676
+ * @param {*} [options] Override http request option.
25677
+ * @throws {RequiredError}
25678
+ * @memberof SharedApiInterface
25679
+ */
25680
+ queryLokiPodLogs(requestParameters: SharedApiQueryLokiPodLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRawLogResponse>;
25681
+
25682
+ /**
25683
+ * Query running logs through the Loki compatibility API.
25684
+ * @summary Query Loki running logs
25685
+ * @param {SharedApiQueryLokiRunningLogsRequest} requestParameters Request parameters.
25686
+ * @param {*} [options] Override http request option.
25687
+ * @throws {RequiredError}
25688
+ * @memberof SharedApiInterface
25689
+ */
25690
+ queryLokiRunningLogs(requestParameters: SharedApiQueryLokiRunningLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterRawLogResponse>;
25691
+
25692
+ /**
25693
+ * Query slow logs through the Loki compatibility API.
25694
+ * @summary Query Loki slow logs
25695
+ * @param {SharedApiQueryLokiSlowLogsRequest} requestParameters Request parameters.
25696
+ * @param {*} [options] Override http request option.
25697
+ * @throws {RequiredError}
25698
+ * @memberof SharedApiInterface
25699
+ */
25700
+ queryLokiSlowLogs(requestParameters: SharedApiQueryLokiSlowLogsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterExecutionLog>;
25701
+
24829
25702
  /**
24830
25703
  * Query pod logs of a cluster
24831
25704
  * @summary Query cluster pod logs
@@ -28019,6 +28892,90 @@ export interface SharedApiExportClusterLogsRequest {
28019
28892
  readonly maxLines?: number
28020
28893
  }
28021
28894
 
28895
+ /**
28896
+ * Request parameters for exportLokiClusterLogs operation in SharedApi.
28897
+ * @export
28898
+ * @interface SharedApiExportLokiClusterLogsRequest
28899
+ */
28900
+ export interface SharedApiExportLokiClusterLogsRequest {
28901
+ /**
28902
+ *
28903
+ * @type {string}
28904
+ * @memberof SharedApiExportLokiClusterLogs
28905
+ */
28906
+ readonly orgName: string
28907
+
28908
+ /**
28909
+ *
28910
+ * @type {string}
28911
+ * @memberof SharedApiExportLokiClusterLogs
28912
+ */
28913
+ readonly clusterName: string
28914
+
28915
+ /**
28916
+ * Log type: runninglog, errorlog, slow, auditlog
28917
+ * @type {string}
28918
+ * @memberof SharedApiExportLokiClusterLogs
28919
+ */
28920
+ readonly logType: string
28921
+
28922
+ /**
28923
+ * Start time in epoch nanoseconds. If omitted, exports from the earliest available log
28924
+ * @type {number}
28925
+ * @memberof SharedApiExportLokiClusterLogs
28926
+ */
28927
+ readonly startTime?: number
28928
+
28929
+ /**
28930
+ * End time in epoch nanoseconds. If omitted, exports up to the latest available log
28931
+ * @type {number}
28932
+ * @memberof SharedApiExportLokiClusterLogs
28933
+ */
28934
+ readonly endTime?: number
28935
+
28936
+ /**
28937
+ * Export format: csv, raw, jsonl
28938
+ * @type {string}
28939
+ * @memberof SharedApiExportLokiClusterLogs
28940
+ */
28941
+ readonly format?: string
28942
+
28943
+ /**
28944
+ *
28945
+ * @type {string}
28946
+ * @memberof SharedApiExportLokiClusterLogs
28947
+ */
28948
+ readonly query?: string
28949
+
28950
+ /**
28951
+ *
28952
+ * @type {string}
28953
+ * @memberof SharedApiExportLokiClusterLogs
28954
+ */
28955
+ readonly filename?: string
28956
+
28957
+ /**
28958
+ *
28959
+ * @type {string}
28960
+ * @memberof SharedApiExportLokiClusterLogs
28961
+ */
28962
+ readonly componentName?: string
28963
+
28964
+ /**
28965
+ *
28966
+ * @type {string}
28967
+ * @memberof SharedApiExportLokiClusterLogs
28968
+ */
28969
+ readonly instanceName?: string
28970
+
28971
+ /**
28972
+ * Maximum number of lines to export. Defaults to 100000 if omitted
28973
+ * @type {number}
28974
+ * @memberof SharedApiExportLokiClusterLogs
28975
+ */
28976
+ readonly maxLines?: number
28977
+ }
28978
+
28022
28979
  /**
28023
28980
  * Request parameters for exportParameterTemplateFromCluster operation in SharedApi.
28024
28981
  * @export
@@ -29195,6 +30152,55 @@ export interface SharedApiGetKafkaTopicsRequest {
29195
30152
  readonly onlyNames?: boolean
29196
30153
  }
29197
30154
 
30155
+ /**
30156
+ * Request parameters for getLokiSlowLogStats operation in SharedApi.
30157
+ * @export
30158
+ * @interface SharedApiGetLokiSlowLogStatsRequest
30159
+ */
30160
+ export interface SharedApiGetLokiSlowLogStatsRequest {
30161
+ /**
30162
+ *
30163
+ * @type {string}
30164
+ * @memberof SharedApiGetLokiSlowLogStats
30165
+ */
30166
+ readonly orgName: string
30167
+
30168
+ /**
30169
+ *
30170
+ * @type {string}
30171
+ * @memberof SharedApiGetLokiSlowLogStats
30172
+ */
30173
+ readonly clusterName: string
30174
+
30175
+ /**
30176
+ * Start time in epoch nanoseconds.
30177
+ * @type {string}
30178
+ * @memberof SharedApiGetLokiSlowLogStats
30179
+ */
30180
+ readonly startTime: string
30181
+
30182
+ /**
30183
+ * End time in epoch nanoseconds.
30184
+ * @type {string}
30185
+ * @memberof SharedApiGetLokiSlowLogStats
30186
+ */
30187
+ readonly endTime: string
30188
+
30189
+ /**
30190
+ *
30191
+ * @type {string}
30192
+ * @memberof SharedApiGetLokiSlowLogStats
30193
+ */
30194
+ readonly componentName?: string
30195
+
30196
+ /**
30197
+ *
30198
+ * @type {string}
30199
+ * @memberof SharedApiGetLokiSlowLogStats
30200
+ */
30201
+ readonly instanceName?: string
30202
+ }
30203
+
29198
30204
  /**
29199
30205
  * Request parameters for getMilvusRole operation in SharedApi.
29200
30206
  * @export
@@ -32492,6 +33498,363 @@ export interface SharedApiQueryLogHitsRequest {
32492
33498
  readonly unclassifiedOnly?: boolean
32493
33499
  }
32494
33500
 
33501
+ /**
33502
+ * Request parameters for queryLokiAuditLogs operation in SharedApi.
33503
+ * @export
33504
+ * @interface SharedApiQueryLokiAuditLogsRequest
33505
+ */
33506
+ export interface SharedApiQueryLokiAuditLogsRequest {
33507
+ /**
33508
+ *
33509
+ * @type {string}
33510
+ * @memberof SharedApiQueryLokiAuditLogs
33511
+ */
33512
+ readonly orgName: string
33513
+
33514
+ /**
33515
+ *
33516
+ * @type {string}
33517
+ * @memberof SharedApiQueryLokiAuditLogs
33518
+ */
33519
+ readonly clusterName: string
33520
+
33521
+ /**
33522
+ * Start time in epoch nanoseconds.
33523
+ * @type {string}
33524
+ * @memberof SharedApiQueryLokiAuditLogs
33525
+ */
33526
+ readonly startTime: string
33527
+
33528
+ /**
33529
+ * End time in epoch nanoseconds.
33530
+ * @type {string}
33531
+ * @memberof SharedApiQueryLokiAuditLogs
33532
+ */
33533
+ readonly endTime: string
33534
+
33535
+ /**
33536
+ *
33537
+ * @type {string}
33538
+ * @memberof SharedApiQueryLokiAuditLogs
33539
+ */
33540
+ readonly limit?: string
33541
+
33542
+ /**
33543
+ *
33544
+ * @type {string}
33545
+ * @memberof SharedApiQueryLokiAuditLogs
33546
+ */
33547
+ readonly componentName?: string
33548
+
33549
+ /**
33550
+ *
33551
+ * @type {string}
33552
+ * @memberof SharedApiQueryLokiAuditLogs
33553
+ */
33554
+ readonly instanceName?: string
33555
+
33556
+ /**
33557
+ *
33558
+ * @type {SortType}
33559
+ * @memberof SharedApiQueryLokiAuditLogs
33560
+ */
33561
+ readonly sortType?: SortType
33562
+ }
33563
+
33564
+ /**
33565
+ * Request parameters for queryLokiErrorLogs operation in SharedApi.
33566
+ * @export
33567
+ * @interface SharedApiQueryLokiErrorLogsRequest
33568
+ */
33569
+ export interface SharedApiQueryLokiErrorLogsRequest {
33570
+ /**
33571
+ *
33572
+ * @type {string}
33573
+ * @memberof SharedApiQueryLokiErrorLogs
33574
+ */
33575
+ readonly orgName: string
33576
+
33577
+ /**
33578
+ *
33579
+ * @type {string}
33580
+ * @memberof SharedApiQueryLokiErrorLogs
33581
+ */
33582
+ readonly clusterName: string
33583
+
33584
+ /**
33585
+ * Start time in epoch nanoseconds.
33586
+ * @type {string}
33587
+ * @memberof SharedApiQueryLokiErrorLogs
33588
+ */
33589
+ readonly startTime: string
33590
+
33591
+ /**
33592
+ * End time in epoch nanoseconds.
33593
+ * @type {string}
33594
+ * @memberof SharedApiQueryLokiErrorLogs
33595
+ */
33596
+ readonly endTime: string
33597
+
33598
+ /**
33599
+ *
33600
+ * @type {string}
33601
+ * @memberof SharedApiQueryLokiErrorLogs
33602
+ */
33603
+ readonly componentName?: string
33604
+
33605
+ /**
33606
+ *
33607
+ * @type {string}
33608
+ * @memberof SharedApiQueryLokiErrorLogs
33609
+ */
33610
+ readonly instanceName?: string
33611
+
33612
+ /**
33613
+ *
33614
+ * @type {string}
33615
+ * @memberof SharedApiQueryLokiErrorLogs
33616
+ */
33617
+ readonly filename?: string
33618
+
33619
+ /**
33620
+ *
33621
+ * @type {string}
33622
+ * @memberof SharedApiQueryLokiErrorLogs
33623
+ */
33624
+ readonly query?: string
33625
+
33626
+ /**
33627
+ *
33628
+ * @type {string}
33629
+ * @memberof SharedApiQueryLokiErrorLogs
33630
+ */
33631
+ readonly limit?: string
33632
+
33633
+ /**
33634
+ *
33635
+ * @type {SortType}
33636
+ * @memberof SharedApiQueryLokiErrorLogs
33637
+ */
33638
+ readonly sortType?: SortType
33639
+ }
33640
+
33641
+ /**
33642
+ * Request parameters for queryLokiPodLogs operation in SharedApi.
33643
+ * @export
33644
+ * @interface SharedApiQueryLokiPodLogsRequest
33645
+ */
33646
+ export interface SharedApiQueryLokiPodLogsRequest {
33647
+ /**
33648
+ *
33649
+ * @type {string}
33650
+ * @memberof SharedApiQueryLokiPodLogs
33651
+ */
33652
+ readonly orgName: string
33653
+
33654
+ /**
33655
+ *
33656
+ * @type {string}
33657
+ * @memberof SharedApiQueryLokiPodLogs
33658
+ */
33659
+ readonly clusterName: string
33660
+
33661
+ /**
33662
+ * Start time in epoch nanoseconds.
33663
+ * @type {string}
33664
+ * @memberof SharedApiQueryLokiPodLogs
33665
+ */
33666
+ readonly startTime: string
33667
+
33668
+ /**
33669
+ * End time in epoch nanoseconds.
33670
+ * @type {string}
33671
+ * @memberof SharedApiQueryLokiPodLogs
33672
+ */
33673
+ readonly endTime: string
33674
+
33675
+ /**
33676
+ *
33677
+ * @type {string}
33678
+ * @memberof SharedApiQueryLokiPodLogs
33679
+ */
33680
+ readonly componentName?: string
33681
+
33682
+ /**
33683
+ *
33684
+ * @type {string}
33685
+ * @memberof SharedApiQueryLokiPodLogs
33686
+ */
33687
+ readonly instanceName?: string
33688
+
33689
+ /**
33690
+ *
33691
+ * @type {string}
33692
+ * @memberof SharedApiQueryLokiPodLogs
33693
+ */
33694
+ readonly filename?: string
33695
+
33696
+ /**
33697
+ *
33698
+ * @type {string}
33699
+ * @memberof SharedApiQueryLokiPodLogs
33700
+ */
33701
+ readonly limit?: string
33702
+
33703
+ /**
33704
+ *
33705
+ * @type {SortType}
33706
+ * @memberof SharedApiQueryLokiPodLogs
33707
+ */
33708
+ readonly sortType?: SortType
33709
+ }
33710
+
33711
+ /**
33712
+ * Request parameters for queryLokiRunningLogs operation in SharedApi.
33713
+ * @export
33714
+ * @interface SharedApiQueryLokiRunningLogsRequest
33715
+ */
33716
+ export interface SharedApiQueryLokiRunningLogsRequest {
33717
+ /**
33718
+ *
33719
+ * @type {string}
33720
+ * @memberof SharedApiQueryLokiRunningLogs
33721
+ */
33722
+ readonly orgName: string
33723
+
33724
+ /**
33725
+ *
33726
+ * @type {string}
33727
+ * @memberof SharedApiQueryLokiRunningLogs
33728
+ */
33729
+ readonly clusterName: string
33730
+
33731
+ /**
33732
+ * Start time in epoch nanoseconds.
33733
+ * @type {string}
33734
+ * @memberof SharedApiQueryLokiRunningLogs
33735
+ */
33736
+ readonly startTime: string
33737
+
33738
+ /**
33739
+ * End time in epoch nanoseconds.
33740
+ * @type {string}
33741
+ * @memberof SharedApiQueryLokiRunningLogs
33742
+ */
33743
+ readonly endTime: string
33744
+
33745
+ /**
33746
+ *
33747
+ * @type {string}
33748
+ * @memberof SharedApiQueryLokiRunningLogs
33749
+ */
33750
+ readonly componentName?: string
33751
+
33752
+ /**
33753
+ *
33754
+ * @type {string}
33755
+ * @memberof SharedApiQueryLokiRunningLogs
33756
+ */
33757
+ readonly instanceName?: string
33758
+
33759
+ /**
33760
+ *
33761
+ * @type {string}
33762
+ * @memberof SharedApiQueryLokiRunningLogs
33763
+ */
33764
+ readonly filename?: string
33765
+
33766
+ /**
33767
+ *
33768
+ * @type {string}
33769
+ * @memberof SharedApiQueryLokiRunningLogs
33770
+ */
33771
+ readonly limit?: string
33772
+
33773
+ /**
33774
+ *
33775
+ * @type {string}
33776
+ * @memberof SharedApiQueryLokiRunningLogs
33777
+ */
33778
+ readonly query?: string
33779
+
33780
+ /**
33781
+ *
33782
+ * @type {SortType}
33783
+ * @memberof SharedApiQueryLokiRunningLogs
33784
+ */
33785
+ readonly sortType?: SortType
33786
+ }
33787
+
33788
+ /**
33789
+ * Request parameters for queryLokiSlowLogs operation in SharedApi.
33790
+ * @export
33791
+ * @interface SharedApiQueryLokiSlowLogsRequest
33792
+ */
33793
+ export interface SharedApiQueryLokiSlowLogsRequest {
33794
+ /**
33795
+ *
33796
+ * @type {string}
33797
+ * @memberof SharedApiQueryLokiSlowLogs
33798
+ */
33799
+ readonly orgName: string
33800
+
33801
+ /**
33802
+ *
33803
+ * @type {string}
33804
+ * @memberof SharedApiQueryLokiSlowLogs
33805
+ */
33806
+ readonly clusterName: string
33807
+
33808
+ /**
33809
+ * Start time in epoch nanoseconds.
33810
+ * @type {string}
33811
+ * @memberof SharedApiQueryLokiSlowLogs
33812
+ */
33813
+ readonly startTime: string
33814
+
33815
+ /**
33816
+ * End time in epoch nanoseconds.
33817
+ * @type {string}
33818
+ * @memberof SharedApiQueryLokiSlowLogs
33819
+ */
33820
+ readonly endTime: string
33821
+
33822
+ /**
33823
+ *
33824
+ * @type {string}
33825
+ * @memberof SharedApiQueryLokiSlowLogs
33826
+ */
33827
+ readonly componentName?: string
33828
+
33829
+ /**
33830
+ *
33831
+ * @type {string}
33832
+ * @memberof SharedApiQueryLokiSlowLogs
33833
+ */
33834
+ readonly instanceName?: string
33835
+
33836
+ /**
33837
+ *
33838
+ * @type {string}
33839
+ * @memberof SharedApiQueryLokiSlowLogs
33840
+ */
33841
+ readonly query?: string
33842
+
33843
+ /**
33844
+ *
33845
+ * @type {string}
33846
+ * @memberof SharedApiQueryLokiSlowLogs
33847
+ */
33848
+ readonly limit?: string
33849
+
33850
+ /**
33851
+ *
33852
+ * @type {SortType}
33853
+ * @memberof SharedApiQueryLokiSlowLogs
33854
+ */
33855
+ readonly sortType?: SortType
33856
+ }
33857
+
32495
33858
  /**
32496
33859
  * Request parameters for queryPodLogs operation in SharedApi.
32497
33860
  * @export
@@ -35724,6 +37087,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
35724
37087
  return SharedApiFp(this.configuration).exportClusterLogs(requestParameters.orgName, requestParameters.clusterName, requestParameters.logType, requestParameters.startTime, requestParameters.endTime, requestParameters.format, requestParameters.query, requestParameters.filename, requestParameters.componentName, requestParameters.instanceName, requestParameters.minExecutionTime, requestParameters.maxExecutionTime, requestParameters.minLockTime, requestParameters.maxLockTime, requestParameters.minRowsExamined, requestParameters.maxRowsExamined, requestParameters.minRowsSent, requestParameters.maxRowsSent, requestParameters.dbName, requestParameters.userName, requestParameters.clientIp, requestParameters.appName, requestParameters.templateId, requestParameters.unclassifiedOnly, requestParameters.maxLines, options).then((request) => request(this.axios, this.basePath));
35725
37088
  }
35726
37089
 
37090
+ /**
37091
+ * Export logs through the Loki compatibility API.
37092
+ * @summary Export Loki logs
37093
+ * @param {SharedApiExportLokiClusterLogsRequest} requestParameters Request parameters.
37094
+ * @param {*} [options] Override http request option.
37095
+ * @throws {RequiredError}
37096
+ * @memberof SharedApi
37097
+ */
37098
+ public exportLokiClusterLogs(requestParameters: SharedApiExportLokiClusterLogsRequest, options?: RawAxiosRequestConfig) {
37099
+ 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));
37100
+ }
37101
+
35727
37102
  /**
35728
37103
  *
35729
37104
  * @summary Export parameter template from cluster
@@ -36203,6 +37578,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
36203
37578
  return SharedApiFp(this.configuration).getKafkaTopics(requestParameters.orgName, requestParameters.clusterName, requestParameters.nameFilter, requestParameters.onlyNames, options).then((request) => request(this.axios, this.basePath));
36204
37579
  }
36205
37580
 
37581
+ /**
37582
+ * Query slow-log statistics through the Loki compatibility API.
37583
+ * @summary Query Loki slow-log statistics
37584
+ * @param {SharedApiGetLokiSlowLogStatsRequest} requestParameters Request parameters.
37585
+ * @param {*} [options] Override http request option.
37586
+ * @throws {RequiredError}
37587
+ * @memberof SharedApi
37588
+ */
37589
+ public getLokiSlowLogStats(requestParameters: SharedApiGetLokiSlowLogStatsRequest, options?: RawAxiosRequestConfig) {
37590
+ 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));
37591
+ }
37592
+
36206
37593
  /**
36207
37594
  * Get a Milvus native role and its privilege grants.
36208
37595
  * @summary Get Milvus role
@@ -37401,6 +38788,66 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
37401
38788
  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));
37402
38789
  }
37403
38790
 
38791
+ /**
38792
+ * Query audit logs through the Loki compatibility API.
38793
+ * @summary Query Loki audit logs
38794
+ * @param {SharedApiQueryLokiAuditLogsRequest} requestParameters Request parameters.
38795
+ * @param {*} [options] Override http request option.
38796
+ * @throws {RequiredError}
38797
+ * @memberof SharedApi
38798
+ */
38799
+ public queryLokiAuditLogs(requestParameters: SharedApiQueryLokiAuditLogsRequest, options?: RawAxiosRequestConfig) {
38800
+ 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));
38801
+ }
38802
+
38803
+ /**
38804
+ * Query error logs through the Loki compatibility API.
38805
+ * @summary Query Loki error logs
38806
+ * @param {SharedApiQueryLokiErrorLogsRequest} requestParameters Request parameters.
38807
+ * @param {*} [options] Override http request option.
38808
+ * @throws {RequiredError}
38809
+ * @memberof SharedApi
38810
+ */
38811
+ public queryLokiErrorLogs(requestParameters: SharedApiQueryLokiErrorLogsRequest, options?: RawAxiosRequestConfig) {
38812
+ 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));
38813
+ }
38814
+
38815
+ /**
38816
+ * Query pod logs through the Loki compatibility API.
38817
+ * @summary Query Loki pod logs
38818
+ * @param {SharedApiQueryLokiPodLogsRequest} requestParameters Request parameters.
38819
+ * @param {*} [options] Override http request option.
38820
+ * @throws {RequiredError}
38821
+ * @memberof SharedApi
38822
+ */
38823
+ public queryLokiPodLogs(requestParameters: SharedApiQueryLokiPodLogsRequest, options?: RawAxiosRequestConfig) {
38824
+ 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));
38825
+ }
38826
+
38827
+ /**
38828
+ * Query running logs through the Loki compatibility API.
38829
+ * @summary Query Loki running logs
38830
+ * @param {SharedApiQueryLokiRunningLogsRequest} requestParameters Request parameters.
38831
+ * @param {*} [options] Override http request option.
38832
+ * @throws {RequiredError}
38833
+ * @memberof SharedApi
38834
+ */
38835
+ public queryLokiRunningLogs(requestParameters: SharedApiQueryLokiRunningLogsRequest, options?: RawAxiosRequestConfig) {
38836
+ 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));
38837
+ }
38838
+
38839
+ /**
38840
+ * Query slow logs through the Loki compatibility API.
38841
+ * @summary Query Loki slow logs
38842
+ * @param {SharedApiQueryLokiSlowLogsRequest} requestParameters Request parameters.
38843
+ * @param {*} [options] Override http request option.
38844
+ * @throws {RequiredError}
38845
+ * @memberof SharedApi
38846
+ */
38847
+ public queryLokiSlowLogs(requestParameters: SharedApiQueryLokiSlowLogsRequest, options?: RawAxiosRequestConfig) {
38848
+ 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));
38849
+ }
38850
+
37404
38851
  /**
37405
38852
  * Query pod logs of a cluster
37406
38853
  * @summary Query cluster pod logs