kb-cloud-client-typescript 2.4.0-alpha.44 → 2.4.0-alpha.46

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 (95) hide show
  1. package/dist/adminapi/apis/diagnostics-api.d.ts +328 -0
  2. package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/diagnostics-api.js +349 -0
  4. package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
  5. package/dist/adminapi/models/index.d.ts +7 -0
  6. package/dist/adminapi/models/index.d.ts.map +1 -1
  7. package/dist/adminapi/models/index.js +7 -0
  8. package/dist/adminapi/models/index.js.map +1 -1
  9. package/dist/adminapi/models/mssql-cached-plan.d.ts +37 -0
  10. package/dist/adminapi/models/mssql-cached-plan.d.ts.map +1 -0
  11. package/dist/adminapi/models/mssql-cached-plan.js +16 -0
  12. package/dist/adminapi/models/mssql-cached-plan.js.map +1 -0
  13. package/dist/adminapi/models/mssql-lock-snapshot.d.ts +52 -0
  14. package/dist/adminapi/models/mssql-lock-snapshot.d.ts.map +1 -0
  15. package/dist/adminapi/models/mssql-lock-snapshot.js +16 -0
  16. package/dist/adminapi/models/mssql-lock-snapshot.js.map +1 -0
  17. package/dist/adminapi/models/mssql-lock.d.ts +73 -0
  18. package/dist/adminapi/models/mssql-lock.d.ts.map +1 -0
  19. package/dist/adminapi/models/mssql-lock.js +16 -0
  20. package/dist/adminapi/models/mssql-lock.js.map +1 -0
  21. package/dist/adminapi/models/mssql-request.d.ts +115 -0
  22. package/dist/adminapi/models/mssql-request.d.ts.map +1 -0
  23. package/dist/adminapi/models/mssql-request.js +16 -0
  24. package/dist/adminapi/models/mssql-request.js.map +1 -0
  25. package/dist/adminapi/models/mssql-session-snapshot.d.ts +38 -0
  26. package/dist/adminapi/models/mssql-session-snapshot.d.ts.map +1 -0
  27. package/dist/adminapi/models/mssql-session-snapshot.js +16 -0
  28. package/dist/adminapi/models/mssql-session-snapshot.js.map +1 -0
  29. package/dist/adminapi/models/mssql-session.d.ts +104 -0
  30. package/dist/adminapi/models/mssql-session.d.ts.map +1 -0
  31. package/dist/adminapi/models/mssql-session.js +16 -0
  32. package/dist/adminapi/models/mssql-session.js.map +1 -0
  33. package/dist/adminapi/models/mssql-wait.d.ts +61 -0
  34. package/dist/adminapi/models/mssql-wait.d.ts.map +1 -0
  35. package/dist/adminapi/models/mssql-wait.js +16 -0
  36. package/dist/adminapi/models/mssql-wait.js.map +1 -0
  37. package/dist/openapi/apis/diagnostics-api.d.ts +328 -0
  38. package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
  39. package/dist/openapi/apis/diagnostics-api.js +349 -0
  40. package/dist/openapi/apis/diagnostics-api.js.map +1 -1
  41. package/dist/openapi/models/index.d.ts +7 -0
  42. package/dist/openapi/models/index.d.ts.map +1 -1
  43. package/dist/openapi/models/index.js +7 -0
  44. package/dist/openapi/models/index.js.map +1 -1
  45. package/dist/openapi/models/mssql-cached-plan.d.ts +37 -0
  46. package/dist/openapi/models/mssql-cached-plan.d.ts.map +1 -0
  47. package/dist/openapi/models/mssql-cached-plan.js +16 -0
  48. package/dist/openapi/models/mssql-cached-plan.js.map +1 -0
  49. package/dist/openapi/models/mssql-lock-snapshot.d.ts +52 -0
  50. package/dist/openapi/models/mssql-lock-snapshot.d.ts.map +1 -0
  51. package/dist/openapi/models/mssql-lock-snapshot.js +16 -0
  52. package/dist/openapi/models/mssql-lock-snapshot.js.map +1 -0
  53. package/dist/openapi/models/mssql-lock.d.ts +73 -0
  54. package/dist/openapi/models/mssql-lock.d.ts.map +1 -0
  55. package/dist/openapi/models/mssql-lock.js +16 -0
  56. package/dist/openapi/models/mssql-lock.js.map +1 -0
  57. package/dist/openapi/models/mssql-request.d.ts +115 -0
  58. package/dist/openapi/models/mssql-request.d.ts.map +1 -0
  59. package/dist/openapi/models/mssql-request.js +16 -0
  60. package/dist/openapi/models/mssql-request.js.map +1 -0
  61. package/dist/openapi/models/mssql-session-snapshot.d.ts +38 -0
  62. package/dist/openapi/models/mssql-session-snapshot.d.ts.map +1 -0
  63. package/dist/openapi/models/mssql-session-snapshot.js +16 -0
  64. package/dist/openapi/models/mssql-session-snapshot.js.map +1 -0
  65. package/dist/openapi/models/mssql-session.d.ts +104 -0
  66. package/dist/openapi/models/mssql-session.d.ts.map +1 -0
  67. package/dist/openapi/models/mssql-session.js +16 -0
  68. package/dist/openapi/models/mssql-session.js.map +1 -0
  69. package/dist/openapi/models/mssql-wait.d.ts +61 -0
  70. package/dist/openapi/models/mssql-wait.d.ts.map +1 -0
  71. package/dist/openapi/models/mssql-wait.js +16 -0
  72. package/dist/openapi/models/mssql-wait.js.map +1 -0
  73. package/package.json +1 -1
  74. package/src/adminapi/.openapi-generator/FILES +7 -0
  75. package/src/adminapi/apis/diagnostics-api.ts +577 -0
  76. package/src/adminapi/models/index.ts +7 -0
  77. package/src/adminapi/models/mssql-cached-plan.ts +42 -0
  78. package/src/adminapi/models/mssql-lock-snapshot.ts +63 -0
  79. package/src/adminapi/models/mssql-lock.ts +78 -0
  80. package/src/adminapi/models/mssql-request.ts +120 -0
  81. package/src/adminapi/models/mssql-session-snapshot.ts +45 -0
  82. package/src/adminapi/models/mssql-session.ts +111 -0
  83. package/src/adminapi/models/mssql-wait.ts +66 -0
  84. package/src/adminapi.yaml +430 -0
  85. package/src/openapi/.openapi-generator/FILES +7 -0
  86. package/src/openapi/apis/diagnostics-api.ts +577 -0
  87. package/src/openapi/models/index.ts +7 -0
  88. package/src/openapi/models/mssql-cached-plan.ts +42 -0
  89. package/src/openapi/models/mssql-lock-snapshot.ts +63 -0
  90. package/src/openapi/models/mssql-lock.ts +78 -0
  91. package/src/openapi/models/mssql-request.ts +120 -0
  92. package/src/openapi/models/mssql-session-snapshot.ts +45 -0
  93. package/src/openapi/models/mssql-session.ts +111 -0
  94. package/src/openapi/models/mssql-wait.ts +66 -0
  95. package/src/openapi.yaml +430 -0
@@ -58,6 +58,14 @@ import type { KingbaseSessionDetail } from '../models';
58
58
  // @ts-ignore
59
59
  import type { KingbaseSessionList } from '../models';
60
60
  // @ts-ignore
61
+ import type { MssqlCachedPlan } from '../models';
62
+ // @ts-ignore
63
+ import type { MssqlLockSnapshot } from '../models';
64
+ // @ts-ignore
65
+ import type { MssqlSession } from '../models';
66
+ // @ts-ignore
67
+ import type { MssqlSessionSnapshot } from '../models';
68
+ // @ts-ignore
61
69
  import type { MysqlSQLAnalysis } from '../models';
62
70
  // @ts-ignore
63
71
  import type { MysqlSpaceAnalysis } from '../models';
@@ -657,6 +665,185 @@ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configu
657
665
 
658
666
 
659
667
 
668
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
669
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
670
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
671
+
672
+ return {
673
+ url: toPathString(localVarUrlObj),
674
+ options: localVarRequestOptions,
675
+ };
676
+ },
677
+ /**
678
+ *
679
+ * @summary Get a SQL Server session
680
+ * @param {string} orgName
681
+ * @param {string} clusterName
682
+ * @param {number} sessionId
683
+ * @param {string} startedAt
684
+ * @param {*} [options] Override http request option.
685
+ * @throws {RequiredError}
686
+ */
687
+ getDiagnosticsMssqlSession: async (orgName: string, clusterName: string, sessionId: number, startedAt: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
688
+ // verify required parameter 'orgName' is not null or undefined
689
+ assertParamExists('getDiagnosticsMssqlSession', 'orgName', orgName)
690
+ // verify required parameter 'clusterName' is not null or undefined
691
+ assertParamExists('getDiagnosticsMssqlSession', 'clusterName', clusterName)
692
+ // verify required parameter 'sessionId' is not null or undefined
693
+ assertParamExists('getDiagnosticsMssqlSession', 'sessionId', sessionId)
694
+ // verify required parameter 'startedAt' is not null or undefined
695
+ assertParamExists('getDiagnosticsMssqlSession', 'startedAt', startedAt)
696
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mssql/sessions/{sessionId}`
697
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
698
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
699
+ .replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
700
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
701
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
702
+ let baseOptions;
703
+ if (configuration) {
704
+ baseOptions = configuration.baseOptions;
705
+ }
706
+
707
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
708
+ const localVarHeaderParameter = {} as any;
709
+ const localVarQueryParameter = {} as any;
710
+
711
+ // authentication BearerToken required
712
+ // http bearer authentication required
713
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
714
+
715
+ // authentication DigestAuth required
716
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
717
+
718
+ if (startedAt !== undefined) {
719
+ localVarQueryParameter['startedAt'] = startedAt;
720
+ }
721
+
722
+
723
+
724
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
725
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
726
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
727
+
728
+ return {
729
+ url: toPathString(localVarUrlObj),
730
+ options: localVarRequestOptions,
731
+ };
732
+ },
733
+ /**
734
+ *
735
+ * @summary Read the cached compiled plan of a live SQL Server request
736
+ * @param {string} orgName
737
+ * @param {string} clusterName
738
+ * @param {number} sessionId
739
+ * @param {string} startedAt
740
+ * @param {number} requestId
741
+ * @param {string} requestStart
742
+ * @param {*} [options] Override http request option.
743
+ * @throws {RequiredError}
744
+ */
745
+ getDiagnosticsMssqlSessionCachedPlan: async (orgName: string, clusterName: string, sessionId: number, startedAt: string, requestId: number, requestStart: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
746
+ // verify required parameter 'orgName' is not null or undefined
747
+ assertParamExists('getDiagnosticsMssqlSessionCachedPlan', 'orgName', orgName)
748
+ // verify required parameter 'clusterName' is not null or undefined
749
+ assertParamExists('getDiagnosticsMssqlSessionCachedPlan', 'clusterName', clusterName)
750
+ // verify required parameter 'sessionId' is not null or undefined
751
+ assertParamExists('getDiagnosticsMssqlSessionCachedPlan', 'sessionId', sessionId)
752
+ // verify required parameter 'startedAt' is not null or undefined
753
+ assertParamExists('getDiagnosticsMssqlSessionCachedPlan', 'startedAt', startedAt)
754
+ // verify required parameter 'requestId' is not null or undefined
755
+ assertParamExists('getDiagnosticsMssqlSessionCachedPlan', 'requestId', requestId)
756
+ // verify required parameter 'requestStart' is not null or undefined
757
+ assertParamExists('getDiagnosticsMssqlSessionCachedPlan', 'requestStart', requestStart)
758
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mssql/sessions/{sessionId}/requests/{requestId}/cachedPlan`
759
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
760
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
761
+ .replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)))
762
+ .replace(`{${"requestId"}}`, encodeURIComponent(String(requestId)));
763
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
764
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
765
+ let baseOptions;
766
+ if (configuration) {
767
+ baseOptions = configuration.baseOptions;
768
+ }
769
+
770
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
771
+ const localVarHeaderParameter = {} as any;
772
+ const localVarQueryParameter = {} as any;
773
+
774
+ // authentication BearerToken required
775
+ // http bearer authentication required
776
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
777
+
778
+ // authentication DigestAuth required
779
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
780
+
781
+ if (startedAt !== undefined) {
782
+ localVarQueryParameter['startedAt'] = startedAt;
783
+ }
784
+
785
+ if (requestStart !== undefined) {
786
+ localVarQueryParameter['requestStart'] = requestStart;
787
+ }
788
+
789
+
790
+
791
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
792
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
793
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
794
+
795
+ return {
796
+ url: toPathString(localVarUrlObj),
797
+ options: localVarRequestOptions,
798
+ };
799
+ },
800
+ /**
801
+ *
802
+ * @summary Get SQL Server blocking and locks
803
+ * @param {string} orgName
804
+ * @param {string} clusterName
805
+ * @param {number} sessionId
806
+ * @param {string} startedAt
807
+ * @param {*} [options] Override http request option.
808
+ * @throws {RequiredError}
809
+ */
810
+ getDiagnosticsMssqlSessionLockAnalysis: async (orgName: string, clusterName: string, sessionId: number, startedAt: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
811
+ // verify required parameter 'orgName' is not null or undefined
812
+ assertParamExists('getDiagnosticsMssqlSessionLockAnalysis', 'orgName', orgName)
813
+ // verify required parameter 'clusterName' is not null or undefined
814
+ assertParamExists('getDiagnosticsMssqlSessionLockAnalysis', 'clusterName', clusterName)
815
+ // verify required parameter 'sessionId' is not null or undefined
816
+ assertParamExists('getDiagnosticsMssqlSessionLockAnalysis', 'sessionId', sessionId)
817
+ // verify required parameter 'startedAt' is not null or undefined
818
+ assertParamExists('getDiagnosticsMssqlSessionLockAnalysis', 'startedAt', startedAt)
819
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mssql/sessions/{sessionId}/lockAnalysis`
820
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
821
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
822
+ .replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
823
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
824
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
825
+ let baseOptions;
826
+ if (configuration) {
827
+ baseOptions = configuration.baseOptions;
828
+ }
829
+
830
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
831
+ const localVarHeaderParameter = {} as any;
832
+ const localVarQueryParameter = {} as any;
833
+
834
+ // authentication BearerToken required
835
+ // http bearer authentication required
836
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
837
+
838
+ // authentication DigestAuth required
839
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
840
+
841
+ if (startedAt !== undefined) {
842
+ localVarQueryParameter['startedAt'] = startedAt;
843
+ }
844
+
845
+
846
+
660
847
  setSearchParams(localVarUrlObj, localVarQueryParameter);
661
848
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
662
849
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -1295,6 +1482,56 @@ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configu
1295
1482
 
1296
1483
 
1297
1484
 
1485
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1486
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1487
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1488
+
1489
+ return {
1490
+ url: toPathString(localVarUrlObj),
1491
+ options: localVarRequestOptions,
1492
+ };
1493
+ },
1494
+ /**
1495
+ *
1496
+ * @summary List SQL Server sessions
1497
+ * @param {string} orgName
1498
+ * @param {string} clusterName
1499
+ * @param {number} [limit]
1500
+ * @param {*} [options] Override http request option.
1501
+ * @throws {RequiredError}
1502
+ */
1503
+ listDiagnosticsMssqlSessions: async (orgName: string, clusterName: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1504
+ // verify required parameter 'orgName' is not null or undefined
1505
+ assertParamExists('listDiagnosticsMssqlSessions', 'orgName', orgName)
1506
+ // verify required parameter 'clusterName' is not null or undefined
1507
+ assertParamExists('listDiagnosticsMssqlSessions', 'clusterName', clusterName)
1508
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mssql/sessions`
1509
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1510
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
1511
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1512
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1513
+ let baseOptions;
1514
+ if (configuration) {
1515
+ baseOptions = configuration.baseOptions;
1516
+ }
1517
+
1518
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1519
+ const localVarHeaderParameter = {} as any;
1520
+ const localVarQueryParameter = {} as any;
1521
+
1522
+ // authentication BearerToken required
1523
+ // http bearer authentication required
1524
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1525
+
1526
+ // authentication DigestAuth required
1527
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1528
+
1529
+ if (limit !== undefined) {
1530
+ localVarQueryParameter['limit'] = limit;
1531
+ }
1532
+
1533
+
1534
+
1298
1535
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1299
1536
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1300
1537
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -1530,6 +1767,56 @@ export const DiagnosticsApiFp = function(configuration?: Configuration) {
1530
1767
  const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsKingbaseSessionLockAnalysis']?.[localVarOperationServerIndex]?.url;
1531
1768
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1532
1769
  },
1770
+ /**
1771
+ *
1772
+ * @summary Get a SQL Server session
1773
+ * @param {string} orgName
1774
+ * @param {string} clusterName
1775
+ * @param {number} sessionId
1776
+ * @param {string} startedAt
1777
+ * @param {*} [options] Override http request option.
1778
+ * @throws {RequiredError}
1779
+ */
1780
+ async getDiagnosticsMssqlSession(orgName: string, clusterName: string, sessionId: number, startedAt: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MssqlSession>> {
1781
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsMssqlSession(orgName, clusterName, sessionId, startedAt, options);
1782
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1783
+ const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsMssqlSession']?.[localVarOperationServerIndex]?.url;
1784
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1785
+ },
1786
+ /**
1787
+ *
1788
+ * @summary Read the cached compiled plan of a live SQL Server request
1789
+ * @param {string} orgName
1790
+ * @param {string} clusterName
1791
+ * @param {number} sessionId
1792
+ * @param {string} startedAt
1793
+ * @param {number} requestId
1794
+ * @param {string} requestStart
1795
+ * @param {*} [options] Override http request option.
1796
+ * @throws {RequiredError}
1797
+ */
1798
+ async getDiagnosticsMssqlSessionCachedPlan(orgName: string, clusterName: string, sessionId: number, startedAt: string, requestId: number, requestStart: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MssqlCachedPlan>> {
1799
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsMssqlSessionCachedPlan(orgName, clusterName, sessionId, startedAt, requestId, requestStart, options);
1800
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1801
+ const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsMssqlSessionCachedPlan']?.[localVarOperationServerIndex]?.url;
1802
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1803
+ },
1804
+ /**
1805
+ *
1806
+ * @summary Get SQL Server blocking and locks
1807
+ * @param {string} orgName
1808
+ * @param {string} clusterName
1809
+ * @param {number} sessionId
1810
+ * @param {string} startedAt
1811
+ * @param {*} [options] Override http request option.
1812
+ * @throws {RequiredError}
1813
+ */
1814
+ async getDiagnosticsMssqlSessionLockAnalysis(orgName: string, clusterName: string, sessionId: number, startedAt: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MssqlLockSnapshot>> {
1815
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsMssqlSessionLockAnalysis(orgName, clusterName, sessionId, startedAt, options);
1816
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1817
+ const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsMssqlSessionLockAnalysis']?.[localVarOperationServerIndex]?.url;
1818
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1819
+ },
1533
1820
  /**
1534
1821
  * Get read-only MySQL 5.7, 8.0, and 8.4 performance trends from backend-owned metrics and database capability checks. The response does not expose SQL, PromQL, internal endpoints, or credentials.
1535
1822
  * @summary Get MySQL performance trends
@@ -1718,6 +2005,21 @@ export const DiagnosticsApiFp = function(configuration?: Configuration) {
1718
2005
  const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.listDiagnosticsKingbaseSessions']?.[localVarOperationServerIndex]?.url;
1719
2006
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1720
2007
  },
2008
+ /**
2009
+ *
2010
+ * @summary List SQL Server sessions
2011
+ * @param {string} orgName
2012
+ * @param {string} clusterName
2013
+ * @param {number} [limit]
2014
+ * @param {*} [options] Override http request option.
2015
+ * @throws {RequiredError}
2016
+ */
2017
+ async listDiagnosticsMssqlSessions(orgName: string, clusterName: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MssqlSessionSnapshot>> {
2018
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listDiagnosticsMssqlSessions(orgName, clusterName, limit, options);
2019
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2020
+ const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.listDiagnosticsMssqlSessions']?.[localVarOperationServerIndex]?.url;
2021
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2022
+ },
1721
2023
  /**
1722
2024
  * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
1723
2025
  * @summary List PostgreSQL session basic diagnostics
@@ -1843,6 +2145,36 @@ export const DiagnosticsApiFactory = function (configuration?: Configuration, ba
1843
2145
  getDiagnosticsKingbaseSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<KingbaseLockAnalysis> {
1844
2146
  return localVarFp.getDiagnosticsKingbaseSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(axios, basePath));
1845
2147
  },
2148
+ /**
2149
+ *
2150
+ * @summary Get a SQL Server session
2151
+ * @param {DiagnosticsApiGetDiagnosticsMssqlSessionRequest} requestParameters Request parameters.
2152
+ * @param {*} [options] Override http request option.
2153
+ * @throws {RequiredError}
2154
+ */
2155
+ getDiagnosticsMssqlSession(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<MssqlSession> {
2156
+ return localVarFp.getDiagnosticsMssqlSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, requestParameters.startedAt, options).then((request) => request(axios, basePath));
2157
+ },
2158
+ /**
2159
+ *
2160
+ * @summary Read the cached compiled plan of a live SQL Server request
2161
+ * @param {DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlanRequest} requestParameters Request parameters.
2162
+ * @param {*} [options] Override http request option.
2163
+ * @throws {RequiredError}
2164
+ */
2165
+ getDiagnosticsMssqlSessionCachedPlan(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<MssqlCachedPlan> {
2166
+ return localVarFp.getDiagnosticsMssqlSessionCachedPlan(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, requestParameters.startedAt, requestParameters.requestId, requestParameters.requestStart, options).then((request) => request(axios, basePath));
2167
+ },
2168
+ /**
2169
+ *
2170
+ * @summary Get SQL Server blocking and locks
2171
+ * @param {DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysisRequest} requestParameters Request parameters.
2172
+ * @param {*} [options] Override http request option.
2173
+ * @throws {RequiredError}
2174
+ */
2175
+ getDiagnosticsMssqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<MssqlLockSnapshot> {
2176
+ return localVarFp.getDiagnosticsMssqlSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, requestParameters.startedAt, options).then((request) => request(axios, basePath));
2177
+ },
1846
2178
  /**
1847
2179
  * Get read-only MySQL 5.7, 8.0, and 8.4 performance trends from backend-owned metrics and database capability checks. The response does not expose SQL, PromQL, internal endpoints, or credentials.
1848
2180
  * @summary Get MySQL performance trends
@@ -1963,6 +2295,16 @@ export const DiagnosticsApiFactory = function (configuration?: Configuration, ba
1963
2295
  listDiagnosticsKingbaseSessions(requestParameters: DiagnosticsApiListDiagnosticsKingbaseSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<KingbaseSessionList> {
1964
2296
  return localVarFp.listDiagnosticsKingbaseSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, options).then((request) => request(axios, basePath));
1965
2297
  },
2298
+ /**
2299
+ *
2300
+ * @summary List SQL Server sessions
2301
+ * @param {DiagnosticsApiListDiagnosticsMssqlSessionsRequest} requestParameters Request parameters.
2302
+ * @param {*} [options] Override http request option.
2303
+ * @throws {RequiredError}
2304
+ */
2305
+ listDiagnosticsMssqlSessions(requestParameters: DiagnosticsApiListDiagnosticsMssqlSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<MssqlSessionSnapshot> {
2306
+ return localVarFp.listDiagnosticsMssqlSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, options).then((request) => request(axios, basePath));
2307
+ },
1966
2308
  /**
1967
2309
  * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
1968
2310
  * @summary List PostgreSQL session basic diagnostics
@@ -2082,6 +2424,36 @@ export interface DiagnosticsApiInterface {
2082
2424
  */
2083
2425
  getDiagnosticsKingbaseSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<KingbaseLockAnalysis>;
2084
2426
 
2427
+ /**
2428
+ *
2429
+ * @summary Get a SQL Server session
2430
+ * @param {DiagnosticsApiGetDiagnosticsMssqlSessionRequest} requestParameters Request parameters.
2431
+ * @param {*} [options] Override http request option.
2432
+ * @throws {RequiredError}
2433
+ * @memberof DiagnosticsApiInterface
2434
+ */
2435
+ getDiagnosticsMssqlSession(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<MssqlSession>;
2436
+
2437
+ /**
2438
+ *
2439
+ * @summary Read the cached compiled plan of a live SQL Server request
2440
+ * @param {DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlanRequest} requestParameters Request parameters.
2441
+ * @param {*} [options] Override http request option.
2442
+ * @throws {RequiredError}
2443
+ * @memberof DiagnosticsApiInterface
2444
+ */
2445
+ getDiagnosticsMssqlSessionCachedPlan(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlanRequest, options?: RawAxiosRequestConfig): AxiosPromise<MssqlCachedPlan>;
2446
+
2447
+ /**
2448
+ *
2449
+ * @summary Get SQL Server blocking and locks
2450
+ * @param {DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysisRequest} requestParameters Request parameters.
2451
+ * @param {*} [options] Override http request option.
2452
+ * @throws {RequiredError}
2453
+ * @memberof DiagnosticsApiInterface
2454
+ */
2455
+ getDiagnosticsMssqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<MssqlLockSnapshot>;
2456
+
2085
2457
  /**
2086
2458
  * Get read-only MySQL 5.7, 8.0, and 8.4 performance trends from backend-owned metrics and database capability checks. The response does not expose SQL, PromQL, internal endpoints, or credentials.
2087
2459
  * @summary Get MySQL performance trends
@@ -2202,6 +2574,16 @@ export interface DiagnosticsApiInterface {
2202
2574
  */
2203
2575
  listDiagnosticsKingbaseSessions(requestParameters: DiagnosticsApiListDiagnosticsKingbaseSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<KingbaseSessionList>;
2204
2576
 
2577
+ /**
2578
+ *
2579
+ * @summary List SQL Server sessions
2580
+ * @param {DiagnosticsApiListDiagnosticsMssqlSessionsRequest} requestParameters Request parameters.
2581
+ * @param {*} [options] Override http request option.
2582
+ * @throws {RequiredError}
2583
+ * @memberof DiagnosticsApiInterface
2584
+ */
2585
+ listDiagnosticsMssqlSessions(requestParameters: DiagnosticsApiListDiagnosticsMssqlSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<MssqlSessionSnapshot>;
2586
+
2205
2587
  /**
2206
2588
  * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
2207
2589
  * @summary List PostgreSQL session basic diagnostics
@@ -2606,6 +2988,125 @@ export interface DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysisRequest
2606
2988
  readonly pid: number
2607
2989
  }
2608
2990
 
2991
+ /**
2992
+ * Request parameters for getDiagnosticsMssqlSession operation in DiagnosticsApi.
2993
+ * @export
2994
+ * @interface DiagnosticsApiGetDiagnosticsMssqlSessionRequest
2995
+ */
2996
+ export interface DiagnosticsApiGetDiagnosticsMssqlSessionRequest {
2997
+ /**
2998
+ *
2999
+ * @type {string}
3000
+ * @memberof DiagnosticsApiGetDiagnosticsMssqlSession
3001
+ */
3002
+ readonly orgName: string
3003
+
3004
+ /**
3005
+ *
3006
+ * @type {string}
3007
+ * @memberof DiagnosticsApiGetDiagnosticsMssqlSession
3008
+ */
3009
+ readonly clusterName: string
3010
+
3011
+ /**
3012
+ *
3013
+ * @type {number}
3014
+ * @memberof DiagnosticsApiGetDiagnosticsMssqlSession
3015
+ */
3016
+ readonly sessionId: number
3017
+
3018
+ /**
3019
+ *
3020
+ * @type {string}
3021
+ * @memberof DiagnosticsApiGetDiagnosticsMssqlSession
3022
+ */
3023
+ readonly startedAt: string
3024
+ }
3025
+
3026
+ /**
3027
+ * Request parameters for getDiagnosticsMssqlSessionCachedPlan operation in DiagnosticsApi.
3028
+ * @export
3029
+ * @interface DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlanRequest
3030
+ */
3031
+ export interface DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlanRequest {
3032
+ /**
3033
+ *
3034
+ * @type {string}
3035
+ * @memberof DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlan
3036
+ */
3037
+ readonly orgName: string
3038
+
3039
+ /**
3040
+ *
3041
+ * @type {string}
3042
+ * @memberof DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlan
3043
+ */
3044
+ readonly clusterName: string
3045
+
3046
+ /**
3047
+ *
3048
+ * @type {number}
3049
+ * @memberof DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlan
3050
+ */
3051
+ readonly sessionId: number
3052
+
3053
+ /**
3054
+ *
3055
+ * @type {string}
3056
+ * @memberof DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlan
3057
+ */
3058
+ readonly startedAt: string
3059
+
3060
+ /**
3061
+ *
3062
+ * @type {number}
3063
+ * @memberof DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlan
3064
+ */
3065
+ readonly requestId: number
3066
+
3067
+ /**
3068
+ *
3069
+ * @type {string}
3070
+ * @memberof DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlan
3071
+ */
3072
+ readonly requestStart: string
3073
+ }
3074
+
3075
+ /**
3076
+ * Request parameters for getDiagnosticsMssqlSessionLockAnalysis operation in DiagnosticsApi.
3077
+ * @export
3078
+ * @interface DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysisRequest
3079
+ */
3080
+ export interface DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysisRequest {
3081
+ /**
3082
+ *
3083
+ * @type {string}
3084
+ * @memberof DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysis
3085
+ */
3086
+ readonly orgName: string
3087
+
3088
+ /**
3089
+ *
3090
+ * @type {string}
3091
+ * @memberof DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysis
3092
+ */
3093
+ readonly clusterName: string
3094
+
3095
+ /**
3096
+ *
3097
+ * @type {number}
3098
+ * @memberof DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysis
3099
+ */
3100
+ readonly sessionId: number
3101
+
3102
+ /**
3103
+ *
3104
+ * @type {string}
3105
+ * @memberof DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysis
3106
+ */
3107
+ readonly startedAt: string
3108
+ }
3109
+
2609
3110
  /**
2610
3111
  * Request parameters for getDiagnosticsMysqlPerformanceTrends operation in DiagnosticsApi.
2611
3112
  * @export
@@ -2998,6 +3499,34 @@ export interface DiagnosticsApiListDiagnosticsKingbaseSessionsRequest {
2998
3499
  readonly limit?: number
2999
3500
  }
3000
3501
 
3502
+ /**
3503
+ * Request parameters for listDiagnosticsMssqlSessions operation in DiagnosticsApi.
3504
+ * @export
3505
+ * @interface DiagnosticsApiListDiagnosticsMssqlSessionsRequest
3506
+ */
3507
+ export interface DiagnosticsApiListDiagnosticsMssqlSessionsRequest {
3508
+ /**
3509
+ *
3510
+ * @type {string}
3511
+ * @memberof DiagnosticsApiListDiagnosticsMssqlSessions
3512
+ */
3513
+ readonly orgName: string
3514
+
3515
+ /**
3516
+ *
3517
+ * @type {string}
3518
+ * @memberof DiagnosticsApiListDiagnosticsMssqlSessions
3519
+ */
3520
+ readonly clusterName: string
3521
+
3522
+ /**
3523
+ *
3524
+ * @type {number}
3525
+ * @memberof DiagnosticsApiListDiagnosticsMssqlSessions
3526
+ */
3527
+ readonly limit?: number
3528
+ }
3529
+
3001
3530
  /**
3002
3531
  * Request parameters for listDiagnosticsPostgresqlSessions operation in DiagnosticsApi.
3003
3532
  * @export
@@ -3153,6 +3682,42 @@ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
3153
3682
  return DiagnosticsApiFp(this.configuration).getDiagnosticsKingbaseSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(this.axios, this.basePath));
3154
3683
  }
3155
3684
 
3685
+ /**
3686
+ *
3687
+ * @summary Get a SQL Server session
3688
+ * @param {DiagnosticsApiGetDiagnosticsMssqlSessionRequest} requestParameters Request parameters.
3689
+ * @param {*} [options] Override http request option.
3690
+ * @throws {RequiredError}
3691
+ * @memberof DiagnosticsApi
3692
+ */
3693
+ public getDiagnosticsMssqlSession(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSessionRequest, options?: RawAxiosRequestConfig) {
3694
+ return DiagnosticsApiFp(this.configuration).getDiagnosticsMssqlSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, requestParameters.startedAt, options).then((request) => request(this.axios, this.basePath));
3695
+ }
3696
+
3697
+ /**
3698
+ *
3699
+ * @summary Read the cached compiled plan of a live SQL Server request
3700
+ * @param {DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlanRequest} requestParameters Request parameters.
3701
+ * @param {*} [options] Override http request option.
3702
+ * @throws {RequiredError}
3703
+ * @memberof DiagnosticsApi
3704
+ */
3705
+ public getDiagnosticsMssqlSessionCachedPlan(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlanRequest, options?: RawAxiosRequestConfig) {
3706
+ return DiagnosticsApiFp(this.configuration).getDiagnosticsMssqlSessionCachedPlan(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, requestParameters.startedAt, requestParameters.requestId, requestParameters.requestStart, options).then((request) => request(this.axios, this.basePath));
3707
+ }
3708
+
3709
+ /**
3710
+ *
3711
+ * @summary Get SQL Server blocking and locks
3712
+ * @param {DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysisRequest} requestParameters Request parameters.
3713
+ * @param {*} [options] Override http request option.
3714
+ * @throws {RequiredError}
3715
+ * @memberof DiagnosticsApi
3716
+ */
3717
+ public getDiagnosticsMssqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig) {
3718
+ return DiagnosticsApiFp(this.configuration).getDiagnosticsMssqlSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, requestParameters.startedAt, options).then((request) => request(this.axios, this.basePath));
3719
+ }
3720
+
3156
3721
  /**
3157
3722
  * Get read-only MySQL 5.7, 8.0, and 8.4 performance trends from backend-owned metrics and database capability checks. The response does not expose SQL, PromQL, internal endpoints, or credentials.
3158
3723
  * @summary Get MySQL performance trends
@@ -3297,6 +3862,18 @@ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
3297
3862
  return DiagnosticsApiFp(this.configuration).listDiagnosticsKingbaseSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
3298
3863
  }
3299
3864
 
3865
+ /**
3866
+ *
3867
+ * @summary List SQL Server sessions
3868
+ * @param {DiagnosticsApiListDiagnosticsMssqlSessionsRequest} requestParameters Request parameters.
3869
+ * @param {*} [options] Override http request option.
3870
+ * @throws {RequiredError}
3871
+ * @memberof DiagnosticsApi
3872
+ */
3873
+ public listDiagnosticsMssqlSessions(requestParameters: DiagnosticsApiListDiagnosticsMssqlSessionsRequest, options?: RawAxiosRequestConfig) {
3874
+ return DiagnosticsApiFp(this.configuration).listDiagnosticsMssqlSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
3875
+ }
3876
+
3300
3877
  /**
3301
3878
  * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
3302
3879
  * @summary List PostgreSQL session basic diagnostics