kb-cloud-client-typescript 2.3.0-alpha.197 → 2.3.0-alpha.199

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 (123) hide show
  1. package/dist/adminapi/apis/diagnostics-api.d.ts +151 -0
  2. package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/diagnostics-api.js +163 -0
  4. package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
  5. package/dist/adminapi/models/cluster-mode-transition.d.ts +7 -0
  6. package/dist/adminapi/models/cluster-mode-transition.d.ts.map +1 -1
  7. package/dist/adminapi/models/index.d.ts +8 -0
  8. package/dist/adminapi/models/index.d.ts.map +1 -1
  9. package/dist/adminapi/models/index.js +8 -0
  10. package/dist/adminapi/models/index.js.map +1 -1
  11. package/dist/adminapi/models/mode-option-values-mappings.d.ts +1 -1
  12. package/dist/adminapi/models/mysql-database-space.d.ts +55 -0
  13. package/dist/adminapi/models/mysql-database-space.d.ts.map +1 -0
  14. package/dist/adminapi/models/mysql-database-space.js +16 -0
  15. package/dist/adminapi/models/mysql-database-space.js.map +1 -0
  16. package/dist/adminapi/models/mysql-index-space.d.ts +73 -0
  17. package/dist/adminapi/models/mysql-index-space.d.ts.map +1 -0
  18. package/dist/adminapi/models/mysql-index-space.js +16 -0
  19. package/dist/adminapi/models/mysql-index-space.js.map +1 -0
  20. package/dist/adminapi/models/mysql-space-analysis.d.ts +73 -0
  21. package/dist/adminapi/models/mysql-space-analysis.d.ts.map +1 -0
  22. package/dist/adminapi/models/mysql-space-analysis.js +16 -0
  23. package/dist/adminapi/models/mysql-space-analysis.js.map +1 -0
  24. package/dist/adminapi/models/mysql-space-source.d.ts +49 -0
  25. package/dist/adminapi/models/mysql-space-source.d.ts.map +1 -0
  26. package/dist/adminapi/models/mysql-space-source.js +16 -0
  27. package/dist/adminapi/models/mysql-space-source.js.map +1 -0
  28. package/dist/adminapi/models/mysql-space-summary.d.ts +73 -0
  29. package/dist/adminapi/models/mysql-space-summary.d.ts.map +1 -0
  30. package/dist/adminapi/models/mysql-space-summary.js +16 -0
  31. package/dist/adminapi/models/mysql-space-summary.js.map +1 -0
  32. package/dist/adminapi/models/mysql-storage-instance-usage.d.ts +79 -0
  33. package/dist/adminapi/models/mysql-storage-instance-usage.d.ts.map +1 -0
  34. package/dist/adminapi/models/mysql-storage-instance-usage.js +16 -0
  35. package/dist/adminapi/models/mysql-storage-instance-usage.js.map +1 -0
  36. package/dist/adminapi/models/mysql-storage-overview.d.ts +32 -0
  37. package/dist/adminapi/models/mysql-storage-overview.d.ts.map +1 -0
  38. package/dist/adminapi/models/mysql-storage-overview.js +16 -0
  39. package/dist/adminapi/models/mysql-storage-overview.js.map +1 -0
  40. package/dist/adminapi/models/mysql-table-space.d.ts +91 -0
  41. package/dist/adminapi/models/mysql-table-space.d.ts.map +1 -0
  42. package/dist/adminapi/models/mysql-table-space.js +16 -0
  43. package/dist/adminapi/models/mysql-table-space.js.map +1 -0
  44. package/dist/adminapi/models/performance-trend-series.d.ts +1 -1
  45. package/dist/adminapi/models/performance-trend-summary.d.ts +1 -1
  46. package/dist/openapi/apis/diagnostics-api.d.ts +151 -0
  47. package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
  48. package/dist/openapi/apis/diagnostics-api.js +163 -0
  49. package/dist/openapi/apis/diagnostics-api.js.map +1 -1
  50. package/dist/openapi/models/cluster-mode-transition.d.ts +7 -0
  51. package/dist/openapi/models/cluster-mode-transition.d.ts.map +1 -1
  52. package/dist/openapi/models/index.d.ts +8 -0
  53. package/dist/openapi/models/index.d.ts.map +1 -1
  54. package/dist/openapi/models/index.js +8 -0
  55. package/dist/openapi/models/index.js.map +1 -1
  56. package/dist/openapi/models/mode-option-values-mappings.d.ts +1 -1
  57. package/dist/openapi/models/mysql-database-space.d.ts +55 -0
  58. package/dist/openapi/models/mysql-database-space.d.ts.map +1 -0
  59. package/dist/openapi/models/mysql-database-space.js +16 -0
  60. package/dist/openapi/models/mysql-database-space.js.map +1 -0
  61. package/dist/openapi/models/mysql-index-space.d.ts +73 -0
  62. package/dist/openapi/models/mysql-index-space.d.ts.map +1 -0
  63. package/dist/openapi/models/mysql-index-space.js +16 -0
  64. package/dist/openapi/models/mysql-index-space.js.map +1 -0
  65. package/dist/openapi/models/mysql-space-analysis.d.ts +73 -0
  66. package/dist/openapi/models/mysql-space-analysis.d.ts.map +1 -0
  67. package/dist/openapi/models/mysql-space-analysis.js +16 -0
  68. package/dist/openapi/models/mysql-space-analysis.js.map +1 -0
  69. package/dist/openapi/models/mysql-space-source.d.ts +49 -0
  70. package/dist/openapi/models/mysql-space-source.d.ts.map +1 -0
  71. package/dist/openapi/models/mysql-space-source.js +16 -0
  72. package/dist/openapi/models/mysql-space-source.js.map +1 -0
  73. package/dist/openapi/models/mysql-space-summary.d.ts +73 -0
  74. package/dist/openapi/models/mysql-space-summary.d.ts.map +1 -0
  75. package/dist/openapi/models/mysql-space-summary.js +16 -0
  76. package/dist/openapi/models/mysql-space-summary.js.map +1 -0
  77. package/dist/openapi/models/mysql-storage-instance-usage.d.ts +79 -0
  78. package/dist/openapi/models/mysql-storage-instance-usage.d.ts.map +1 -0
  79. package/dist/openapi/models/mysql-storage-instance-usage.js +16 -0
  80. package/dist/openapi/models/mysql-storage-instance-usage.js.map +1 -0
  81. package/dist/openapi/models/mysql-storage-overview.d.ts +32 -0
  82. package/dist/openapi/models/mysql-storage-overview.d.ts.map +1 -0
  83. package/dist/openapi/models/mysql-storage-overview.js +16 -0
  84. package/dist/openapi/models/mysql-storage-overview.js.map +1 -0
  85. package/dist/openapi/models/mysql-table-space.d.ts +91 -0
  86. package/dist/openapi/models/mysql-table-space.d.ts.map +1 -0
  87. package/dist/openapi/models/mysql-table-space.js +16 -0
  88. package/dist/openapi/models/mysql-table-space.js.map +1 -0
  89. package/dist/openapi/models/performance-trend-series.d.ts +1 -1
  90. package/dist/openapi/models/performance-trend-summary.d.ts +1 -1
  91. package/package.json +1 -1
  92. package/src/adminapi/.openapi-generator/FILES +8 -0
  93. package/src/adminapi/apis/diagnostics-api.ts +265 -0
  94. package/src/adminapi/models/cluster-mode-transition.ts +9 -0
  95. package/src/adminapi/models/index.ts +8 -0
  96. package/src/adminapi/models/mode-option-values-mappings.ts +1 -1
  97. package/src/adminapi/models/mysql-database-space.ts +60 -0
  98. package/src/adminapi/models/mysql-index-space.ts +78 -0
  99. package/src/adminapi/models/mysql-space-analysis.ts +90 -0
  100. package/src/adminapi/models/mysql-space-source.ts +54 -0
  101. package/src/adminapi/models/mysql-space-summary.ts +78 -0
  102. package/src/adminapi/models/mysql-storage-instance-usage.ts +84 -0
  103. package/src/adminapi/models/mysql-storage-overview.ts +39 -0
  104. package/src/adminapi/models/mysql-table-space.ts +96 -0
  105. package/src/adminapi/models/performance-trend-series.ts +1 -1
  106. package/src/adminapi/models/performance-trend-summary.ts +1 -1
  107. package/src/adminapi.yaml +351 -2
  108. package/src/openapi/.openapi-generator/FILES +8 -0
  109. package/src/openapi/apis/diagnostics-api.ts +265 -0
  110. package/src/openapi/models/cluster-mode-transition.ts +9 -0
  111. package/src/openapi/models/index.ts +8 -0
  112. package/src/openapi/models/mode-option-values-mappings.ts +1 -1
  113. package/src/openapi/models/mysql-database-space.ts +60 -0
  114. package/src/openapi/models/mysql-index-space.ts +78 -0
  115. package/src/openapi/models/mysql-space-analysis.ts +90 -0
  116. package/src/openapi/models/mysql-space-source.ts +54 -0
  117. package/src/openapi/models/mysql-space-summary.ts +78 -0
  118. package/src/openapi/models/mysql-storage-instance-usage.ts +84 -0
  119. package/src/openapi/models/mysql-storage-overview.ts +39 -0
  120. package/src/openapi/models/mysql-table-space.ts +96 -0
  121. package/src/openapi/models/performance-trend-series.ts +1 -1
  122. package/src/openapi/models/performance-trend-summary.ts +1 -1
  123. package/src/openapi.yaml +351 -2
@@ -36,6 +36,8 @@ import type { DamengSpaceAnalysis } from '../models';
36
36
  // @ts-ignore
37
37
  import type { MysqlSQLAnalysis } from '../models';
38
38
  // @ts-ignore
39
+ import type { MysqlSpaceAnalysis } from '../models';
40
+ // @ts-ignore
39
41
  import type { PerformanceTrends } from '../models';
40
42
  // @ts-ignore
41
43
  import type { PostgresqlLockAnalysis } from '../models';
@@ -255,6 +257,61 @@ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configu
255
257
 
256
258
 
257
259
 
260
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
261
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
262
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
263
+
264
+ return {
265
+ url: toPathString(localVarUrlObj),
266
+ options: localVarRequestOptions,
267
+ };
268
+ },
269
+ /**
270
+ * 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.
271
+ * @summary Get MySQL performance trends
272
+ * @param {string} orgName Organization name
273
+ * @param {string} clusterName Cluster name
274
+ * @param {string} [range] Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h.
275
+ * @param {string} [step] Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h.
276
+ * @param {*} [options] Override http request option.
277
+ * @throws {RequiredError}
278
+ */
279
+ getDiagnosticsMysqlPerformanceTrends: async (orgName: string, clusterName: string, range?: string, step?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
280
+ // verify required parameter 'orgName' is not null or undefined
281
+ assertParamExists('getDiagnosticsMysqlPerformanceTrends', 'orgName', orgName)
282
+ // verify required parameter 'clusterName' is not null or undefined
283
+ assertParamExists('getDiagnosticsMysqlPerformanceTrends', 'clusterName', clusterName)
284
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mysql/performanceTrends`
285
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
286
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
287
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
288
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
289
+ let baseOptions;
290
+ if (configuration) {
291
+ baseOptions = configuration.baseOptions;
292
+ }
293
+
294
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
295
+ const localVarHeaderParameter = {} as any;
296
+ const localVarQueryParameter = {} as any;
297
+
298
+ // authentication BearerToken required
299
+ // http bearer authentication required
300
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
301
+
302
+ // authentication DigestAuth required
303
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
304
+
305
+ if (range !== undefined) {
306
+ localVarQueryParameter['range'] = range;
307
+ }
308
+
309
+ if (step !== undefined) {
310
+ localVarQueryParameter['step'] = step;
311
+ }
312
+
313
+
314
+
258
315
  setSearchParams(localVarUrlObj, localVarQueryParameter);
259
316
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
260
317
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -310,6 +367,56 @@ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configu
310
367
 
311
368
 
312
369
 
370
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
371
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
372
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
373
+
374
+ return {
375
+ url: toPathString(localVarUrlObj),
376
+ options: localVarRequestOptions,
377
+ };
378
+ },
379
+ /**
380
+ * Get a read-only MySQL 5.7, 8.0, or 8.4 compatible space snapshot and fixed backend-owned storage metrics.
381
+ * @summary Get MySQL space analysis
382
+ * @param {string} orgName
383
+ * @param {string} clusterName
384
+ * @param {string} [databaseName] Optional database name for table and index details. When omitted, the largest non-system database is selected.
385
+ * @param {*} [options] Override http request option.
386
+ * @throws {RequiredError}
387
+ */
388
+ getDiagnosticsMysqlSpaceAnalysis: async (orgName: string, clusterName: string, databaseName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
389
+ // verify required parameter 'orgName' is not null or undefined
390
+ assertParamExists('getDiagnosticsMysqlSpaceAnalysis', 'orgName', orgName)
391
+ // verify required parameter 'clusterName' is not null or undefined
392
+ assertParamExists('getDiagnosticsMysqlSpaceAnalysis', 'clusterName', clusterName)
393
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mysql/spaceAnalysis`
394
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
395
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
396
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
397
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
398
+ let baseOptions;
399
+ if (configuration) {
400
+ baseOptions = configuration.baseOptions;
401
+ }
402
+
403
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
404
+ const localVarHeaderParameter = {} as any;
405
+ const localVarQueryParameter = {} as any;
406
+
407
+ // authentication BearerToken required
408
+ // http bearer authentication required
409
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
410
+
411
+ // authentication DigestAuth required
412
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
413
+
414
+ if (databaseName !== undefined) {
415
+ localVarQueryParameter['databaseName'] = databaseName;
416
+ }
417
+
418
+
419
+
313
420
  setSearchParams(localVarUrlObj, localVarQueryParameter);
314
421
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
315
422
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -755,6 +862,22 @@ export const DiagnosticsApiFp = function(configuration?: Configuration) {
755
862
  const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsDamengSpaceAnalysis']?.[localVarOperationServerIndex]?.url;
756
863
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
757
864
  },
865
+ /**
866
+ * 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.
867
+ * @summary Get MySQL performance trends
868
+ * @param {string} orgName Organization name
869
+ * @param {string} clusterName Cluster name
870
+ * @param {string} [range] Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h.
871
+ * @param {string} [step] Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h.
872
+ * @param {*} [options] Override http request option.
873
+ * @throws {RequiredError}
874
+ */
875
+ async getDiagnosticsMysqlPerformanceTrends(orgName: string, clusterName: string, range?: string, step?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PerformanceTrends>> {
876
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsMysqlPerformanceTrends(orgName, clusterName, range, step, options);
877
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
878
+ const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsMysqlPerformanceTrends']?.[localVarOperationServerIndex]?.url;
879
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
880
+ },
758
881
  /**
759
882
  * Get a read-only MySQL SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions.
760
883
  * @summary Get MySQL SQL analysis
@@ -771,6 +894,21 @@ export const DiagnosticsApiFp = function(configuration?: Configuration) {
771
894
  const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsMysqlSQLAnalysis']?.[localVarOperationServerIndex]?.url;
772
895
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
773
896
  },
897
+ /**
898
+ * Get a read-only MySQL 5.7, 8.0, or 8.4 compatible space snapshot and fixed backend-owned storage metrics.
899
+ * @summary Get MySQL space analysis
900
+ * @param {string} orgName
901
+ * @param {string} clusterName
902
+ * @param {string} [databaseName] Optional database name for table and index details. When omitted, the largest non-system database is selected.
903
+ * @param {*} [options] Override http request option.
904
+ * @throws {RequiredError}
905
+ */
906
+ async getDiagnosticsMysqlSpaceAnalysis(orgName: string, clusterName: string, databaseName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MysqlSpaceAnalysis>> {
907
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsMysqlSpaceAnalysis(orgName, clusterName, databaseName, options);
908
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
909
+ const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsMysqlSpaceAnalysis']?.[localVarOperationServerIndex]?.url;
910
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
911
+ },
774
912
  /**
775
913
  * Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions.
776
914
  * @summary Get PostgreSQL performance trends
@@ -929,6 +1067,16 @@ export const DiagnosticsApiFactory = function (configuration?: Configuration, ba
929
1067
  getDiagnosticsDamengSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<DamengSpaceAnalysis> {
930
1068
  return localVarFp.getDiagnosticsDamengSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.tableLimit, requestParameters.indexLimit, requestParameters.schema, requestParameters.skipBasic, options).then((request) => request(axios, basePath));
931
1069
  },
1070
+ /**
1071
+ * 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.
1072
+ * @summary Get MySQL performance trends
1073
+ * @param {DiagnosticsApiGetDiagnosticsMysqlPerformanceTrendsRequest} requestParameters Request parameters.
1074
+ * @param {*} [options] Override http request option.
1075
+ * @throws {RequiredError}
1076
+ */
1077
+ getDiagnosticsMysqlPerformanceTrends(requestParameters: DiagnosticsApiGetDiagnosticsMysqlPerformanceTrendsRequest, options?: RawAxiosRequestConfig): AxiosPromise<PerformanceTrends> {
1078
+ return localVarFp.getDiagnosticsMysqlPerformanceTrends(requestParameters.orgName, requestParameters.clusterName, requestParameters.range, requestParameters.step, options).then((request) => request(axios, basePath));
1079
+ },
932
1080
  /**
933
1081
  * Get a read-only MySQL SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions.
934
1082
  * @summary Get MySQL SQL analysis
@@ -939,6 +1087,16 @@ export const DiagnosticsApiFactory = function (configuration?: Configuration, ba
939
1087
  getDiagnosticsMysqlSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<MysqlSQLAnalysis> {
940
1088
  return localVarFp.getDiagnosticsMysqlSQLAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.orderBy, options).then((request) => request(axios, basePath));
941
1089
  },
1090
+ /**
1091
+ * Get a read-only MySQL 5.7, 8.0, or 8.4 compatible space snapshot and fixed backend-owned storage metrics.
1092
+ * @summary Get MySQL space analysis
1093
+ * @param {DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysisRequest} requestParameters Request parameters.
1094
+ * @param {*} [options] Override http request option.
1095
+ * @throws {RequiredError}
1096
+ */
1097
+ getDiagnosticsMysqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<MysqlSpaceAnalysis> {
1098
+ return localVarFp.getDiagnosticsMysqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.databaseName, options).then((request) => request(axios, basePath));
1099
+ },
942
1100
  /**
943
1101
  * Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions.
944
1102
  * @summary Get PostgreSQL performance trends
@@ -1058,6 +1216,16 @@ export interface DiagnosticsApiInterface {
1058
1216
  */
1059
1217
  getDiagnosticsDamengSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<DamengSpaceAnalysis>;
1060
1218
 
1219
+ /**
1220
+ * 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.
1221
+ * @summary Get MySQL performance trends
1222
+ * @param {DiagnosticsApiGetDiagnosticsMysqlPerformanceTrendsRequest} requestParameters Request parameters.
1223
+ * @param {*} [options] Override http request option.
1224
+ * @throws {RequiredError}
1225
+ * @memberof DiagnosticsApiInterface
1226
+ */
1227
+ getDiagnosticsMysqlPerformanceTrends(requestParameters: DiagnosticsApiGetDiagnosticsMysqlPerformanceTrendsRequest, options?: RawAxiosRequestConfig): AxiosPromise<PerformanceTrends>;
1228
+
1061
1229
  /**
1062
1230
  * Get a read-only MySQL SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions.
1063
1231
  * @summary Get MySQL SQL analysis
@@ -1068,6 +1236,16 @@ export interface DiagnosticsApiInterface {
1068
1236
  */
1069
1237
  getDiagnosticsMysqlSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<MysqlSQLAnalysis>;
1070
1238
 
1239
+ /**
1240
+ * Get a read-only MySQL 5.7, 8.0, or 8.4 compatible space snapshot and fixed backend-owned storage metrics.
1241
+ * @summary Get MySQL space analysis
1242
+ * @param {DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysisRequest} requestParameters Request parameters.
1243
+ * @param {*} [options] Override http request option.
1244
+ * @throws {RequiredError}
1245
+ * @memberof DiagnosticsApiInterface
1246
+ */
1247
+ getDiagnosticsMysqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<MysqlSpaceAnalysis>;
1248
+
1071
1249
  /**
1072
1250
  * Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions.
1073
1251
  * @summary Get PostgreSQL performance trends
@@ -1273,6 +1451,41 @@ export interface DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest {
1273
1451
  readonly skipBasic?: boolean
1274
1452
  }
1275
1453
 
1454
+ /**
1455
+ * Request parameters for getDiagnosticsMysqlPerformanceTrends operation in DiagnosticsApi.
1456
+ * @export
1457
+ * @interface DiagnosticsApiGetDiagnosticsMysqlPerformanceTrendsRequest
1458
+ */
1459
+ export interface DiagnosticsApiGetDiagnosticsMysqlPerformanceTrendsRequest {
1460
+ /**
1461
+ * Organization name
1462
+ * @type {string}
1463
+ * @memberof DiagnosticsApiGetDiagnosticsMysqlPerformanceTrends
1464
+ */
1465
+ readonly orgName: string
1466
+
1467
+ /**
1468
+ * Cluster name
1469
+ * @type {string}
1470
+ * @memberof DiagnosticsApiGetDiagnosticsMysqlPerformanceTrends
1471
+ */
1472
+ readonly clusterName: string
1473
+
1474
+ /**
1475
+ * Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h.
1476
+ * @type {string}
1477
+ * @memberof DiagnosticsApiGetDiagnosticsMysqlPerformanceTrends
1478
+ */
1479
+ readonly range?: string
1480
+
1481
+ /**
1482
+ * Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h.
1483
+ * @type {string}
1484
+ * @memberof DiagnosticsApiGetDiagnosticsMysqlPerformanceTrends
1485
+ */
1486
+ readonly step?: string
1487
+ }
1488
+
1276
1489
  /**
1277
1490
  * Request parameters for getDiagnosticsMysqlSQLAnalysis operation in DiagnosticsApi.
1278
1491
  * @export
@@ -1308,6 +1521,34 @@ export interface DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest {
1308
1521
  readonly orderBy?: string
1309
1522
  }
1310
1523
 
1524
+ /**
1525
+ * Request parameters for getDiagnosticsMysqlSpaceAnalysis operation in DiagnosticsApi.
1526
+ * @export
1527
+ * @interface DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysisRequest
1528
+ */
1529
+ export interface DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysisRequest {
1530
+ /**
1531
+ *
1532
+ * @type {string}
1533
+ * @memberof DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysis
1534
+ */
1535
+ readonly orgName: string
1536
+
1537
+ /**
1538
+ *
1539
+ * @type {string}
1540
+ * @memberof DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysis
1541
+ */
1542
+ readonly clusterName: string
1543
+
1544
+ /**
1545
+ * Optional database name for table and index details. When omitted, the largest non-system database is selected.
1546
+ * @type {string}
1547
+ * @memberof DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysis
1548
+ */
1549
+ readonly databaseName?: string
1550
+ }
1551
+
1311
1552
  /**
1312
1553
  * Request parameters for getDiagnosticsPostgresqlPerformanceTrends operation in DiagnosticsApi.
1313
1554
  * @export
@@ -1580,6 +1821,18 @@ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
1580
1821
  return DiagnosticsApiFp(this.configuration).getDiagnosticsDamengSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.tableLimit, requestParameters.indexLimit, requestParameters.schema, requestParameters.skipBasic, options).then((request) => request(this.axios, this.basePath));
1581
1822
  }
1582
1823
 
1824
+ /**
1825
+ * 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.
1826
+ * @summary Get MySQL performance trends
1827
+ * @param {DiagnosticsApiGetDiagnosticsMysqlPerformanceTrendsRequest} requestParameters Request parameters.
1828
+ * @param {*} [options] Override http request option.
1829
+ * @throws {RequiredError}
1830
+ * @memberof DiagnosticsApi
1831
+ */
1832
+ public getDiagnosticsMysqlPerformanceTrends(requestParameters: DiagnosticsApiGetDiagnosticsMysqlPerformanceTrendsRequest, options?: RawAxiosRequestConfig) {
1833
+ return DiagnosticsApiFp(this.configuration).getDiagnosticsMysqlPerformanceTrends(requestParameters.orgName, requestParameters.clusterName, requestParameters.range, requestParameters.step, options).then((request) => request(this.axios, this.basePath));
1834
+ }
1835
+
1583
1836
  /**
1584
1837
  * Get a read-only MySQL SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions.
1585
1838
  * @summary Get MySQL SQL analysis
@@ -1592,6 +1845,18 @@ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
1592
1845
  return DiagnosticsApiFp(this.configuration).getDiagnosticsMysqlSQLAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.orderBy, options).then((request) => request(this.axios, this.basePath));
1593
1846
  }
1594
1847
 
1848
+ /**
1849
+ * Get a read-only MySQL 5.7, 8.0, or 8.4 compatible space snapshot and fixed backend-owned storage metrics.
1850
+ * @summary Get MySQL space analysis
1851
+ * @param {DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysisRequest} requestParameters Request parameters.
1852
+ * @param {*} [options] Override http request option.
1853
+ * @throws {RequiredError}
1854
+ * @memberof DiagnosticsApi
1855
+ */
1856
+ public getDiagnosticsMysqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig) {
1857
+ return DiagnosticsApiFp(this.configuration).getDiagnosticsMysqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.databaseName, options).then((request) => request(this.axios, this.basePath));
1858
+ }
1859
+
1595
1860
  /**
1596
1861
  * Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions.
1597
1862
  * @summary Get PostgreSQL performance trends
@@ -16,6 +16,9 @@
16
16
  // May contain unused imports in some cases
17
17
  // @ts-ignore
18
18
  import type { OpsHScale } from './ops-hscale';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { TaskSchedule } from './task-schedule';
19
22
 
20
23
  /**
21
24
  * Parameters for switching the engine mode of a cluster.
@@ -29,6 +32,12 @@ export interface ClusterModeTransition {
29
32
  * @memberof ClusterModeTransition
30
33
  */
31
34
  'mode': string;
35
+ /**
36
+ *
37
+ * @type {TaskSchedule}
38
+ * @memberof ClusterModeTransition
39
+ */
40
+ 'schedule'?: TaskSchedule;
32
41
  /**
33
42
  *
34
43
  * @type {OpsHScale}
@@ -579,8 +579,16 @@ export * from './monitor-data-sink';
579
579
  export * from './monitor-data-sink-create';
580
580
  export * from './monitor-data-sink-list';
581
581
  export * from './monitor-data-sink-update';
582
+ export * from './mysql-database-space';
583
+ export * from './mysql-index-space';
582
584
  export * from './mysql-sqlanalysis';
583
585
  export * from './mysql-sqlfingerprint';
586
+ export * from './mysql-space-analysis';
587
+ export * from './mysql-space-source';
588
+ export * from './mysql-space-summary';
589
+ export * from './mysql-storage-instance-usage';
590
+ export * from './mysql-storage-overview';
591
+ export * from './mysql-table-space';
584
592
  export * from './network-config';
585
593
  export * from './network-mode';
586
594
  export * from './network-mode-option-inner';
@@ -24,7 +24,7 @@ import type { ModeOptionValuesMappingsMappingsInner } from './mode-option-values
24
24
  */
25
25
  export interface ModeOptionValuesMappings {
26
26
  /**
27
- *
27
+ * if omitted, all KB versions are compatible
28
28
  * @type {Array<string>}
29
29
  * @memberof ModeOptionValuesMappings
30
30
  */
@@ -0,0 +1,60 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Admin API
5
+ * The Admin API is used to manage the ApeCloud platform.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface MysqlDatabaseSpace
21
+ */
22
+ export interface MysqlDatabaseSpace {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof MysqlDatabaseSpace
27
+ */
28
+ 'name': string;
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof MysqlDatabaseSpace
33
+ */
34
+ 'dataBytes': number;
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof MysqlDatabaseSpace
39
+ */
40
+ 'indexBytes': number;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof MysqlDatabaseSpace
45
+ */
46
+ 'freeBytes': number;
47
+ /**
48
+ *
49
+ * @type {number}
50
+ * @memberof MysqlDatabaseSpace
51
+ */
52
+ 'totalBytes': number;
53
+ /**
54
+ *
55
+ * @type {number}
56
+ * @memberof MysqlDatabaseSpace
57
+ */
58
+ 'tableCount': number;
59
+ }
60
+
@@ -0,0 +1,78 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Admin API
5
+ * The Admin API is used to manage the ApeCloud platform.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface MysqlIndexSpace
21
+ */
22
+ export interface MysqlIndexSpace {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof MysqlIndexSpace
27
+ */
28
+ 'database': string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof MysqlIndexSpace
33
+ */
34
+ 'table': string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof MysqlIndexSpace
39
+ */
40
+ 'name': string;
41
+ /**
42
+ * Estimated from mysql.innodb_index_stats pages multiplied by innodb_page_size.
43
+ * @type {number}
44
+ * @memberof MysqlIndexSpace
45
+ */
46
+ 'sizeBytes'?: number | null;
47
+ /**
48
+ *
49
+ * @type {boolean}
50
+ * @memberof MysqlIndexSpace
51
+ */
52
+ 'isUnique': boolean;
53
+ /**
54
+ *
55
+ * @type {boolean}
56
+ * @memberof MysqlIndexSpace
57
+ */
58
+ 'isPrimary': boolean;
59
+ /**
60
+ *
61
+ * @type {number}
62
+ * @memberof MysqlIndexSpace
63
+ */
64
+ 'cardinality': number;
65
+ /**
66
+ * COUNT_READ from performance_schema; resets with server statistics.
67
+ * @type {number}
68
+ * @memberof MysqlIndexSpace
69
+ */
70
+ 'scanCount'?: number | null;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof MysqlIndexSpace
75
+ */
76
+ 'lastStatUpdate'?: string;
77
+ }
78
+
@@ -0,0 +1,90 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Admin API
5
+ * The Admin API is used to manage the ApeCloud platform.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { MysqlDatabaseSpace } from './mysql-database-space';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { MysqlIndexSpace } from './mysql-index-space';
22
+ // May contain unused imports in some cases
23
+ // @ts-ignore
24
+ import type { MysqlSpaceSource } from './mysql-space-source';
25
+ // May contain unused imports in some cases
26
+ // @ts-ignore
27
+ import type { MysqlSpaceSummary } from './mysql-space-summary';
28
+ // May contain unused imports in some cases
29
+ // @ts-ignore
30
+ import type { MysqlStorageOverview } from './mysql-storage-overview';
31
+ // May contain unused imports in some cases
32
+ // @ts-ignore
33
+ import type { MysqlTableSpace } from './mysql-table-space';
34
+
35
+ /**
36
+ *
37
+ * @export
38
+ * @interface MysqlSpaceAnalysis
39
+ */
40
+ export interface MysqlSpaceAnalysis {
41
+ /**
42
+ *
43
+ * @type {MysqlSpaceSummary}
44
+ * @memberof MysqlSpaceAnalysis
45
+ */
46
+ 'summary': MysqlSpaceSummary;
47
+ /**
48
+ *
49
+ * @type {MysqlStorageOverview}
50
+ * @memberof MysqlSpaceAnalysis
51
+ */
52
+ 'storageOverview': MysqlStorageOverview;
53
+ /**
54
+ * Sizes of all non-system MySQL databases.
55
+ * @type {Array<MysqlDatabaseSpace>}
56
+ * @memberof MysqlSpaceAnalysis
57
+ */
58
+ 'databases': Array<MysqlDatabaseSpace>;
59
+ /**
60
+ * Database used for table and index details.
61
+ * @type {string}
62
+ * @memberof MysqlSpaceAnalysis
63
+ */
64
+ 'selectedDatabase': string;
65
+ /**
66
+ * Top tables from selectedDatabase.
67
+ * @type {Array<MysqlTableSpace>}
68
+ * @memberof MysqlSpaceAnalysis
69
+ */
70
+ 'tables': Array<MysqlTableSpace>;
71
+ /**
72
+ * Top indexes from selectedDatabase. Individual index size can be unavailable when mysql.innodb_index_stats is inaccessible.
73
+ * @type {Array<MysqlIndexSpace>}
74
+ * @memberof MysqlSpaceAnalysis
75
+ */
76
+ 'indexes': Array<MysqlIndexSpace>;
77
+ /**
78
+ *
79
+ * @type {Array<MysqlSpaceSource>}
80
+ * @memberof MysqlSpaceAnalysis
81
+ */
82
+ 'sources': Array<MysqlSpaceSource>;
83
+ /**
84
+ * Backend collection timestamp in UTC.
85
+ * @type {string}
86
+ * @memberof MysqlSpaceAnalysis
87
+ */
88
+ 'collectedAt': string;
89
+ }
90
+