kb-cloud-client-typescript 2.3.0-alpha.118 → 2.3.0-alpha.120

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 (126) hide show
  1. package/dist/adminapi/apis/cluster-api.d.ts +72 -0
  2. package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/cluster-api.js +79 -0
  4. package/dist/adminapi/apis/cluster-api.js.map +1 -1
  5. package/dist/adminapi/apis/diagnostics-api.d.ts +5 -5
  6. package/dist/adminapi/apis/diagnostics-api.js +4 -4
  7. package/dist/adminapi/apis/shared-api.d.ts +72 -0
  8. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  9. package/dist/adminapi/apis/shared-api.js +79 -0
  10. package/dist/adminapi/apis/shared-api.js.map +1 -1
  11. package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts +43 -0
  12. package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts.map +1 -0
  13. package/dist/adminapi/models/{postgresql-space-pvc.js → cluster-storage-usage-history-point.js} +1 -1
  14. package/dist/adminapi/models/cluster-storage-usage-history-point.js.map +1 -0
  15. package/dist/adminapi/models/cluster-storage-usage-history.d.ts +56 -0
  16. package/dist/adminapi/models/cluster-storage-usage-history.d.ts.map +1 -0
  17. package/dist/adminapi/models/{postgresql-space-cannot-prove.js → cluster-storage-usage-history.js} +1 -1
  18. package/dist/adminapi/models/cluster-storage-usage-history.js.map +1 -0
  19. package/dist/adminapi/models/index.d.ts +3 -3
  20. package/dist/adminapi/models/index.d.ts.map +1 -1
  21. package/dist/adminapi/models/index.js +3 -3
  22. package/dist/adminapi/models/index.js.map +1 -1
  23. package/dist/adminapi/models/postgresql-database-space.d.ts +0 -12
  24. package/dist/adminapi/models/postgresql-database-space.d.ts.map +1 -1
  25. package/dist/adminapi/models/postgresql-index-space.d.ts +0 -12
  26. package/dist/adminapi/models/postgresql-index-space.d.ts.map +1 -1
  27. package/dist/adminapi/models/postgresql-space-analysis.d.ts +3 -17
  28. package/dist/adminapi/models/postgresql-space-analysis.d.ts.map +1 -1
  29. package/dist/adminapi/models/postgresql-space-summary.d.ts +0 -12
  30. package/dist/adminapi/models/postgresql-space-summary.d.ts.map +1 -1
  31. package/dist/adminapi/models/postgresql-storage-overview.d.ts +55 -0
  32. package/dist/adminapi/models/postgresql-storage-overview.d.ts.map +1 -0
  33. package/dist/adminapi/models/{postgresql-space-risk-hint.js → postgresql-storage-overview.js} +1 -1
  34. package/dist/adminapi/models/postgresql-storage-overview.js.map +1 -0
  35. package/dist/adminapi/models/postgresql-table-space.d.ts +0 -12
  36. package/dist/adminapi/models/postgresql-table-space.d.ts.map +1 -1
  37. package/dist/adminapi/models/postgresql-toast-relation-space.d.ts +0 -12
  38. package/dist/adminapi/models/postgresql-toast-relation-space.d.ts.map +1 -1
  39. package/dist/openapi/apis/cluster-api.d.ts +72 -0
  40. package/dist/openapi/apis/cluster-api.d.ts.map +1 -1
  41. package/dist/openapi/apis/cluster-api.js +79 -0
  42. package/dist/openapi/apis/cluster-api.js.map +1 -1
  43. package/dist/openapi/apis/diagnostics-api.d.ts +5 -5
  44. package/dist/openapi/apis/diagnostics-api.js +4 -4
  45. package/dist/openapi/apis/shared-api.d.ts +72 -0
  46. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  47. package/dist/openapi/apis/shared-api.js +79 -0
  48. package/dist/openapi/apis/shared-api.js.map +1 -1
  49. package/dist/openapi/models/{postgresql-space-pvc.d.ts → cluster-storage-usage-history-point.d.ts} +16 -16
  50. package/dist/openapi/models/cluster-storage-usage-history-point.d.ts.map +1 -0
  51. package/dist/openapi/models/{postgresql-space-cannot-prove.js → cluster-storage-usage-history-point.js} +1 -1
  52. package/dist/openapi/models/cluster-storage-usage-history-point.js.map +1 -0
  53. package/dist/openapi/models/{postgresql-space-risk-hint.d.ts → cluster-storage-usage-history.d.ts} +23 -28
  54. package/dist/openapi/models/cluster-storage-usage-history.d.ts.map +1 -0
  55. package/dist/openapi/models/{postgresql-space-pvc.js → cluster-storage-usage-history.js} +1 -1
  56. package/dist/openapi/models/cluster-storage-usage-history.js.map +1 -0
  57. package/dist/openapi/models/index.d.ts +3 -3
  58. package/dist/openapi/models/index.d.ts.map +1 -1
  59. package/dist/openapi/models/index.js +3 -3
  60. package/dist/openapi/models/index.js.map +1 -1
  61. package/dist/openapi/models/postgresql-database-space.d.ts +0 -12
  62. package/dist/openapi/models/postgresql-database-space.d.ts.map +1 -1
  63. package/dist/openapi/models/postgresql-index-space.d.ts +0 -12
  64. package/dist/openapi/models/postgresql-index-space.d.ts.map +1 -1
  65. package/dist/openapi/models/postgresql-space-analysis.d.ts +3 -17
  66. package/dist/openapi/models/postgresql-space-analysis.d.ts.map +1 -1
  67. package/dist/openapi/models/postgresql-space-summary.d.ts +0 -12
  68. package/dist/openapi/models/postgresql-space-summary.d.ts.map +1 -1
  69. package/dist/openapi/models/postgresql-storage-overview.d.ts +55 -0
  70. package/dist/openapi/models/postgresql-storage-overview.d.ts.map +1 -0
  71. package/dist/openapi/models/{postgresql-space-risk-hint.js → postgresql-storage-overview.js} +1 -1
  72. package/dist/openapi/models/postgresql-storage-overview.js.map +1 -0
  73. package/dist/openapi/models/postgresql-table-space.d.ts +0 -12
  74. package/dist/openapi/models/postgresql-table-space.d.ts.map +1 -1
  75. package/dist/openapi/models/postgresql-toast-relation-space.d.ts +0 -12
  76. package/dist/openapi/models/postgresql-toast-relation-space.d.ts.map +1 -1
  77. package/package.json +1 -1
  78. package/src/adminapi/.openapi-generator/FILES +3 -3
  79. package/src/adminapi/apis/cluster-api.ts +127 -0
  80. package/src/adminapi/apis/diagnostics-api.ts +5 -5
  81. package/src/adminapi/apis/shared-api.ts +127 -0
  82. package/src/adminapi/models/{postgresql-space-pvc.ts → cluster-storage-usage-history-point.ts} +15 -15
  83. package/src/adminapi/models/cluster-storage-usage-history.ts +63 -0
  84. package/src/adminapi/models/index.ts +3 -3
  85. package/src/adminapi/models/postgresql-database-space.ts +0 -12
  86. package/src/adminapi/models/postgresql-index-space.ts +0 -12
  87. package/src/adminapi/models/postgresql-space-analysis.ts +5 -23
  88. package/src/adminapi/models/postgresql-space-summary.ts +0 -12
  89. package/src/adminapi/models/postgresql-storage-overview.ts +60 -0
  90. package/src/adminapi/models/postgresql-table-space.ts +0 -12
  91. package/src/adminapi/models/postgresql-toast-relation-space.ts +0 -12
  92. package/src/adminapi.yaml +112 -94
  93. package/src/openapi/.openapi-generator/FILES +3 -3
  94. package/src/openapi/apis/cluster-api.ts +127 -0
  95. package/src/openapi/apis/diagnostics-api.ts +5 -5
  96. package/src/openapi/apis/shared-api.ts +127 -0
  97. package/src/openapi/models/{postgresql-space-pvc.ts → cluster-storage-usage-history-point.ts} +15 -15
  98. package/src/openapi/models/cluster-storage-usage-history.ts +63 -0
  99. package/src/openapi/models/index.ts +3 -3
  100. package/src/openapi/models/postgresql-database-space.ts +0 -12
  101. package/src/openapi/models/postgresql-index-space.ts +0 -12
  102. package/src/openapi/models/postgresql-space-analysis.ts +5 -23
  103. package/src/openapi/models/postgresql-space-summary.ts +0 -12
  104. package/src/openapi/models/{postgresql-space-risk-hint.ts → postgresql-storage-overview.ts} +23 -29
  105. package/src/openapi/models/postgresql-table-space.ts +0 -12
  106. package/src/openapi/models/postgresql-toast-relation-space.ts +0 -12
  107. package/src/openapi.yaml +112 -94
  108. package/dist/adminapi/models/postgresql-space-cannot-prove.d.ts +0 -43
  109. package/dist/adminapi/models/postgresql-space-cannot-prove.d.ts.map +0 -1
  110. package/dist/adminapi/models/postgresql-space-cannot-prove.js.map +0 -1
  111. package/dist/adminapi/models/postgresql-space-pvc.d.ts +0 -43
  112. package/dist/adminapi/models/postgresql-space-pvc.d.ts.map +0 -1
  113. package/dist/adminapi/models/postgresql-space-pvc.js.map +0 -1
  114. package/dist/adminapi/models/postgresql-space-risk-hint.d.ts +0 -61
  115. package/dist/adminapi/models/postgresql-space-risk-hint.d.ts.map +0 -1
  116. package/dist/adminapi/models/postgresql-space-risk-hint.js.map +0 -1
  117. package/dist/openapi/models/postgresql-space-cannot-prove.d.ts +0 -43
  118. package/dist/openapi/models/postgresql-space-cannot-prove.d.ts.map +0 -1
  119. package/dist/openapi/models/postgresql-space-cannot-prove.js.map +0 -1
  120. package/dist/openapi/models/postgresql-space-pvc.d.ts.map +0 -1
  121. package/dist/openapi/models/postgresql-space-pvc.js.map +0 -1
  122. package/dist/openapi/models/postgresql-space-risk-hint.d.ts.map +0 -1
  123. package/dist/openapi/models/postgresql-space-risk-hint.js.map +0 -1
  124. package/src/adminapi/models/postgresql-space-cannot-prove.ts +0 -48
  125. package/src/adminapi/models/postgresql-space-risk-hint.ts +0 -66
  126. package/src/openapi/models/postgresql-space-cannot-prove.ts +0 -48
@@ -34,6 +34,8 @@ import type { ClusterList } from '../models';
34
34
  // @ts-ignore
35
35
  import type { ClusterMetrics } from '../models';
36
36
  // @ts-ignore
37
+ import type { ClusterStorageUsageHistory } from '../models';
38
+ // @ts-ignore
37
39
  import type { ClusterUpdate } from '../models';
38
40
  // @ts-ignore
39
41
  import type { EndpointList } from '../models';
@@ -435,6 +437,56 @@ export const ClusterApiAxiosParamCreator = function (configuration?: Configurati
435
437
 
436
438
 
437
439
 
440
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
441
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
442
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
443
+
444
+ return {
445
+ url: toPathString(localVarUrlObj),
446
+ options: localVarRequestOptions,
447
+ };
448
+ },
449
+ /**
450
+ * Get cluster storage usage history from backend-owned fixed metrics.
451
+ * @summary Get cluster storage usage history
452
+ * @param {string} orgName name of the Org
453
+ * @param {string} clusterName name of the cluster
454
+ * @param {string} [timeRange] Requested history range. Supported values are 24h and 7d. Defaults to 24h.
455
+ * @param {*} [options] Override http request option.
456
+ * @throws {RequiredError}
457
+ */
458
+ getClusterStorageUsageHistory: async (orgName: string, clusterName: string, timeRange?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
459
+ // verify required parameter 'orgName' is not null or undefined
460
+ assertParamExists('getClusterStorageUsageHistory', 'orgName', orgName)
461
+ // verify required parameter 'clusterName' is not null or undefined
462
+ assertParamExists('getClusterStorageUsageHistory', 'clusterName', clusterName)
463
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/storageUsageHistory`
464
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
465
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
466
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
467
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
468
+ let baseOptions;
469
+ if (configuration) {
470
+ baseOptions = configuration.baseOptions;
471
+ }
472
+
473
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
474
+ const localVarHeaderParameter = {} as any;
475
+ const localVarQueryParameter = {} as any;
476
+
477
+ // authentication BearerToken required
478
+ // http bearer authentication required
479
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
480
+
481
+ // authentication DigestAuth required
482
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
483
+
484
+ if (timeRange !== undefined) {
485
+ localVarQueryParameter['timeRange'] = timeRange;
486
+ }
487
+
488
+
489
+
438
490
  setSearchParams(localVarUrlObj, localVarQueryParameter);
439
491
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
440
492
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -1429,6 +1481,21 @@ export const ClusterApiFp = function(configuration?: Configuration) {
1429
1481
  const localVarOperationServerBasePath = operationServerMap['ClusterApi.getClusterInstanceLog']?.[localVarOperationServerIndex]?.url;
1430
1482
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1431
1483
  },
1484
+ /**
1485
+ * Get cluster storage usage history from backend-owned fixed metrics.
1486
+ * @summary Get cluster storage usage history
1487
+ * @param {string} orgName name of the Org
1488
+ * @param {string} clusterName name of the cluster
1489
+ * @param {string} [timeRange] Requested history range. Supported values are 24h and 7d. Defaults to 24h.
1490
+ * @param {*} [options] Override http request option.
1491
+ * @throws {RequiredError}
1492
+ */
1493
+ async getClusterStorageUsageHistory(orgName: string, clusterName: string, timeRange?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterStorageUsageHistory>> {
1494
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterStorageUsageHistory(orgName, clusterName, timeRange, options);
1495
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1496
+ const localVarOperationServerBasePath = operationServerMap['ClusterApi.getClusterStorageUsageHistory']?.[localVarOperationServerIndex]?.url;
1497
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1498
+ },
1432
1499
  /**
1433
1500
  *
1434
1501
  * @summary Get instaces metrics in cluster
@@ -1759,6 +1826,16 @@ export const ClusterApiFactory = function (configuration?: Configuration, basePa
1759
1826
  getClusterInstanceLog(requestParameters: ClusterApiGetClusterInstanceLogRequest, options?: RawAxiosRequestConfig): AxiosPromise<string> {
1760
1827
  return localVarFp.getClusterInstanceLog(requestParameters.orgName, requestParameters.clusterName, requestParameters.workloadName, requestParameters.workloadType, requestParameters.previous, requestParameters.sinceSeconds, requestParameters.tailLines, options).then((request) => request(axios, basePath));
1761
1828
  },
1829
+ /**
1830
+ * Get cluster storage usage history from backend-owned fixed metrics.
1831
+ * @summary Get cluster storage usage history
1832
+ * @param {ClusterApiGetClusterStorageUsageHistoryRequest} requestParameters Request parameters.
1833
+ * @param {*} [options] Override http request option.
1834
+ * @throws {RequiredError}
1835
+ */
1836
+ getClusterStorageUsageHistory(requestParameters: ClusterApiGetClusterStorageUsageHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterStorageUsageHistory> {
1837
+ return localVarFp.getClusterStorageUsageHistory(requestParameters.orgName, requestParameters.clusterName, requestParameters.timeRange, options).then((request) => request(axios, basePath));
1838
+ },
1762
1839
  /**
1763
1840
  *
1764
1841
  * @summary Get instaces metrics in cluster
@@ -1998,6 +2075,16 @@ export interface ClusterApiInterface {
1998
2075
  */
1999
2076
  getClusterInstanceLog(requestParameters: ClusterApiGetClusterInstanceLogRequest, options?: RawAxiosRequestConfig): AxiosPromise<string>;
2000
2077
 
2078
+ /**
2079
+ * Get cluster storage usage history from backend-owned fixed metrics.
2080
+ * @summary Get cluster storage usage history
2081
+ * @param {ClusterApiGetClusterStorageUsageHistoryRequest} requestParameters Request parameters.
2082
+ * @param {*} [options] Override http request option.
2083
+ * @throws {RequiredError}
2084
+ * @memberof ClusterApiInterface
2085
+ */
2086
+ getClusterStorageUsageHistory(requestParameters: ClusterApiGetClusterStorageUsageHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterStorageUsageHistory>;
2087
+
2001
2088
  /**
2002
2089
  *
2003
2090
  * @summary Get instaces metrics in cluster
@@ -2377,6 +2464,34 @@ export interface ClusterApiGetClusterInstanceLogRequest {
2377
2464
  readonly tailLines?: number
2378
2465
  }
2379
2466
 
2467
+ /**
2468
+ * Request parameters for getClusterStorageUsageHistory operation in ClusterApi.
2469
+ * @export
2470
+ * @interface ClusterApiGetClusterStorageUsageHistoryRequest
2471
+ */
2472
+ export interface ClusterApiGetClusterStorageUsageHistoryRequest {
2473
+ /**
2474
+ * name of the Org
2475
+ * @type {string}
2476
+ * @memberof ClusterApiGetClusterStorageUsageHistory
2477
+ */
2478
+ readonly orgName: string
2479
+
2480
+ /**
2481
+ * name of the cluster
2482
+ * @type {string}
2483
+ * @memberof ClusterApiGetClusterStorageUsageHistory
2484
+ */
2485
+ readonly clusterName: string
2486
+
2487
+ /**
2488
+ * Requested history range. Supported values are 24h and 7d. Defaults to 24h.
2489
+ * @type {string}
2490
+ * @memberof ClusterApiGetClusterStorageUsageHistory
2491
+ */
2492
+ readonly timeRange?: string
2493
+ }
2494
+
2380
2495
  /**
2381
2496
  * Request parameters for getInstacesMetrics operation in ClusterApi.
2382
2497
  * @export
@@ -2986,6 +3101,18 @@ export class ClusterApi extends BaseAPI implements ClusterApiInterface {
2986
3101
  return ClusterApiFp(this.configuration).getClusterInstanceLog(requestParameters.orgName, requestParameters.clusterName, requestParameters.workloadName, requestParameters.workloadType, requestParameters.previous, requestParameters.sinceSeconds, requestParameters.tailLines, options).then((request) => request(this.axios, this.basePath));
2987
3102
  }
2988
3103
 
3104
+ /**
3105
+ * Get cluster storage usage history from backend-owned fixed metrics.
3106
+ * @summary Get cluster storage usage history
3107
+ * @param {ClusterApiGetClusterStorageUsageHistoryRequest} requestParameters Request parameters.
3108
+ * @param {*} [options] Override http request option.
3109
+ * @throws {RequiredError}
3110
+ * @memberof ClusterApi
3111
+ */
3112
+ public getClusterStorageUsageHistory(requestParameters: ClusterApiGetClusterStorageUsageHistoryRequest, options?: RawAxiosRequestConfig) {
3113
+ return ClusterApiFp(this.configuration).getClusterStorageUsageHistory(requestParameters.orgName, requestParameters.clusterName, requestParameters.timeRange, options).then((request) => request(this.axios, this.basePath));
3114
+ }
3115
+
2989
3116
  /**
2990
3117
  *
2991
3118
  * @summary Get instaces metrics in cluster
@@ -134,7 +134,7 @@ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configu
134
134
  };
135
135
  },
136
136
  /**
137
- * Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, or remediation actions.
137
+ * Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, storage history, or remediation actions.
138
138
  * @summary Get PostgreSQL space analysis
139
139
  * @param {string} orgName Organization name
140
140
  * @param {string} clusterName Cluster name
@@ -269,7 +269,7 @@ export const DiagnosticsApiFp = function(configuration?: Configuration) {
269
269
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
270
270
  },
271
271
  /**
272
- * Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, or remediation actions.
272
+ * Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, storage history, or remediation actions.
273
273
  * @summary Get PostgreSQL space analysis
274
274
  * @param {string} orgName Organization name
275
275
  * @param {string} clusterName Cluster name
@@ -328,7 +328,7 @@ export const DiagnosticsApiFactory = function (configuration?: Configuration, ba
328
328
  return localVarFp.getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(axios, basePath));
329
329
  },
330
330
  /**
331
- * Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, or remediation actions.
331
+ * Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, storage history, or remediation actions.
332
332
  * @summary Get PostgreSQL space analysis
333
333
  * @param {DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest} requestParameters Request parameters.
334
334
  * @param {*} [options] Override http request option.
@@ -377,7 +377,7 @@ export interface DiagnosticsApiInterface {
377
377
  getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlLockAnalysis>;
378
378
 
379
379
  /**
380
- * Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, or remediation actions.
380
+ * Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, storage history, or remediation actions.
381
381
  * @summary Get PostgreSQL space analysis
382
382
  * @param {DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest} requestParameters Request parameters.
383
383
  * @param {*} [options] Override http request option.
@@ -535,7 +535,7 @@ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
535
535
  }
536
536
 
537
537
  /**
538
- * Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, or remediation actions.
538
+ * Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, storage history, or remediation actions.
539
539
  * @summary Get PostgreSQL space analysis
540
540
  * @param {DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest} requestParameters Request parameters.
541
541
  * @param {*} [options] Override http request option.
@@ -104,6 +104,8 @@ import type { ClusterSlowLogTemplate } from '../models';
104
104
  // @ts-ignore
105
105
  import type { ClusterSlowLogTemplateList } from '../models';
106
106
  // @ts-ignore
107
+ import type { ClusterStorageUsageHistory } from '../models';
108
+ // @ts-ignore
107
109
  import type { ClusterTags } from '../models';
108
110
  // @ts-ignore
109
111
  import type { ClusterUpdate } from '../models';
@@ -4572,6 +4574,56 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
4572
4574
 
4573
4575
 
4574
4576
 
4577
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4578
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4579
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4580
+
4581
+ return {
4582
+ url: toPathString(localVarUrlObj),
4583
+ options: localVarRequestOptions,
4584
+ };
4585
+ },
4586
+ /**
4587
+ * Get cluster storage usage history from backend-owned fixed metrics.
4588
+ * @summary Get cluster storage usage history
4589
+ * @param {string} orgName name of the Org
4590
+ * @param {string} clusterName name of the cluster
4591
+ * @param {string} [timeRange] Requested history range. Supported values are 24h and 7d. Defaults to 24h.
4592
+ * @param {*} [options] Override http request option.
4593
+ * @throws {RequiredError}
4594
+ */
4595
+ getClusterStorageUsageHistory: async (orgName: string, clusterName: string, timeRange?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4596
+ // verify required parameter 'orgName' is not null or undefined
4597
+ assertParamExists('getClusterStorageUsageHistory', 'orgName', orgName)
4598
+ // verify required parameter 'clusterName' is not null or undefined
4599
+ assertParamExists('getClusterStorageUsageHistory', 'clusterName', clusterName)
4600
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/storageUsageHistory`
4601
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
4602
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
4603
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4604
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4605
+ let baseOptions;
4606
+ if (configuration) {
4607
+ baseOptions = configuration.baseOptions;
4608
+ }
4609
+
4610
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4611
+ const localVarHeaderParameter = {} as any;
4612
+ const localVarQueryParameter = {} as any;
4613
+
4614
+ // authentication BearerToken required
4615
+ // http bearer authentication required
4616
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4617
+
4618
+ // authentication DigestAuth required
4619
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
4620
+
4621
+ if (timeRange !== undefined) {
4622
+ localVarQueryParameter['timeRange'] = timeRange;
4623
+ }
4624
+
4625
+
4626
+
4575
4627
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4576
4628
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4577
4629
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -14709,6 +14761,21 @@ export const SharedApiFp = function(configuration?: Configuration) {
14709
14761
  const localVarOperationServerBasePath = operationServerMap['SharedApi.getClusterParameterTemplate']?.[localVarOperationServerIndex]?.url;
14710
14762
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14711
14763
  },
14764
+ /**
14765
+ * Get cluster storage usage history from backend-owned fixed metrics.
14766
+ * @summary Get cluster storage usage history
14767
+ * @param {string} orgName name of the Org
14768
+ * @param {string} clusterName name of the cluster
14769
+ * @param {string} [timeRange] Requested history range. Supported values are 24h and 7d. Defaults to 24h.
14770
+ * @param {*} [options] Override http request option.
14771
+ * @throws {RequiredError}
14772
+ */
14773
+ async getClusterStorageUsageHistory(orgName: string, clusterName: string, timeRange?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterStorageUsageHistory>> {
14774
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterStorageUsageHistory(orgName, clusterName, timeRange, options);
14775
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14776
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.getClusterStorageUsageHistory']?.[localVarOperationServerIndex]?.url;
14777
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14778
+ },
14712
14779
  /**
14713
14780
  *
14714
14781
  * @summary get the datasource
@@ -18074,6 +18141,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
18074
18141
  getClusterParameterTemplate(requestParameters: SharedApiGetClusterParameterTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ParamTplApplyToClusterList> {
18075
18142
  return localVarFp.getClusterParameterTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.component, requestParameters.engineName, options).then((request) => request(axios, basePath));
18076
18143
  },
18144
+ /**
18145
+ * Get cluster storage usage history from backend-owned fixed metrics.
18146
+ * @summary Get cluster storage usage history
18147
+ * @param {SharedApiGetClusterStorageUsageHistoryRequest} requestParameters Request parameters.
18148
+ * @param {*} [options] Override http request option.
18149
+ * @throws {RequiredError}
18150
+ */
18151
+ getClusterStorageUsageHistory(requestParameters: SharedApiGetClusterStorageUsageHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterStorageUsageHistory> {
18152
+ return localVarFp.getClusterStorageUsageHistory(requestParameters.orgName, requestParameters.clusterName, requestParameters.timeRange, options).then((request) => request(axios, basePath));
18153
+ },
18077
18154
  /**
18078
18155
  *
18079
18156
  * @summary get the datasource
@@ -20477,6 +20554,16 @@ export interface SharedApiInterface {
20477
20554
  */
20478
20555
  getClusterParameterTemplate(requestParameters: SharedApiGetClusterParameterTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ParamTplApplyToClusterList>;
20479
20556
 
20557
+ /**
20558
+ * Get cluster storage usage history from backend-owned fixed metrics.
20559
+ * @summary Get cluster storage usage history
20560
+ * @param {SharedApiGetClusterStorageUsageHistoryRequest} requestParameters Request parameters.
20561
+ * @param {*} [options] Override http request option.
20562
+ * @throws {RequiredError}
20563
+ * @memberof SharedApiInterface
20564
+ */
20565
+ getClusterStorageUsageHistory(requestParameters: SharedApiGetClusterStorageUsageHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterStorageUsageHistory>;
20566
+
20480
20567
  /**
20481
20568
  *
20482
20569
  * @summary get the datasource
@@ -24567,6 +24654,34 @@ export interface SharedApiGetClusterParameterTemplateRequest {
24567
24654
  readonly engineName?: string
24568
24655
  }
24569
24656
 
24657
+ /**
24658
+ * Request parameters for getClusterStorageUsageHistory operation in SharedApi.
24659
+ * @export
24660
+ * @interface SharedApiGetClusterStorageUsageHistoryRequest
24661
+ */
24662
+ export interface SharedApiGetClusterStorageUsageHistoryRequest {
24663
+ /**
24664
+ * name of the Org
24665
+ * @type {string}
24666
+ * @memberof SharedApiGetClusterStorageUsageHistory
24667
+ */
24668
+ readonly orgName: string
24669
+
24670
+ /**
24671
+ * name of the cluster
24672
+ * @type {string}
24673
+ * @memberof SharedApiGetClusterStorageUsageHistory
24674
+ */
24675
+ readonly clusterName: string
24676
+
24677
+ /**
24678
+ * Requested history range. Supported values are 24h and 7d. Defaults to 24h.
24679
+ * @type {string}
24680
+ * @memberof SharedApiGetClusterStorageUsageHistory
24681
+ */
24682
+ readonly timeRange?: string
24683
+ }
24684
+
24570
24685
  /**
24571
24686
  * Request parameters for getDataSourceV2 operation in SharedApi.
24572
24687
  * @export
@@ -31039,6 +31154,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
31039
31154
  return SharedApiFp(this.configuration).getClusterParameterTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.component, requestParameters.engineName, options).then((request) => request(this.axios, this.basePath));
31040
31155
  }
31041
31156
 
31157
+ /**
31158
+ * Get cluster storage usage history from backend-owned fixed metrics.
31159
+ * @summary Get cluster storage usage history
31160
+ * @param {SharedApiGetClusterStorageUsageHistoryRequest} requestParameters Request parameters.
31161
+ * @param {*} [options] Override http request option.
31162
+ * @throws {RequiredError}
31163
+ * @memberof SharedApi
31164
+ */
31165
+ public getClusterStorageUsageHistory(requestParameters: SharedApiGetClusterStorageUsageHistoryRequest, options?: RawAxiosRequestConfig) {
31166
+ return SharedApiFp(this.configuration).getClusterStorageUsageHistory(requestParameters.orgName, requestParameters.clusterName, requestParameters.timeRange, options).then((request) => request(this.axios, this.basePath));
31167
+ }
31168
+
31042
31169
  /**
31043
31170
  *
31044
31171
  * @summary get the datasource
@@ -17,32 +17,32 @@
17
17
  /**
18
18
  *
19
19
  * @export
20
- * @interface PostgresqlSpacePVC
20
+ * @interface ClusterStorageUsageHistoryPoint
21
21
  */
22
- export interface PostgresqlSpacePVC {
22
+ export interface ClusterStorageUsageHistoryPoint {
23
23
  /**
24
- * Current PVC used bytes from backend-owned metrics when available.
25
- * @type {number}
26
- * @memberof PostgresqlSpacePVC
24
+ *
25
+ * @type {string}
26
+ * @memberof ClusterStorageUsageHistoryPoint
27
27
  */
28
- 'currentUsedBytes'?: number;
28
+ 'timestamp': string;
29
29
  /**
30
30
  *
31
- * @type {boolean}
32
- * @memberof PostgresqlSpacePVC
31
+ * @type {number}
32
+ * @memberof ClusterStorageUsageHistoryPoint
33
33
  */
34
- 'noHistoryYet': boolean;
34
+ 'usedBytes': number;
35
35
  /**
36
36
  *
37
- * @type {boolean}
38
- * @memberof PostgresqlSpacePVC
37
+ * @type {number}
38
+ * @memberof ClusterStorageUsageHistoryPoint
39
39
  */
40
- 'cannotProveGrowth': boolean;
40
+ 'totalBytes': number;
41
41
  /**
42
42
  *
43
- * @type {string}
44
- * @memberof PostgresqlSpacePVC
43
+ * @type {number}
44
+ * @memberof ClusterStorageUsageHistoryPoint
45
45
  */
46
- 'source': string;
46
+ 'usageRatio': number;
47
47
  }
48
48
 
@@ -0,0 +1,63 @@
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 { ClusterStorageUsageHistoryPoint } from './cluster-storage-usage-history-point';
19
+
20
+ /**
21
+ * Cluster storage usage history collected from backend-owned fixed metrics.
22
+ * @export
23
+ * @interface ClusterStorageUsageHistory
24
+ */
25
+ export interface ClusterStorageUsageHistory {
26
+ /**
27
+ * Requested history range. Supported values are 24h and 7d.
28
+ * @type {string}
29
+ * @memberof ClusterStorageUsageHistory
30
+ */
31
+ 'timeRange': string;
32
+ /**
33
+ * History query start timestamp in UTC.
34
+ * @type {string}
35
+ * @memberof ClusterStorageUsageHistory
36
+ */
37
+ 'start': string;
38
+ /**
39
+ * History query end timestamp in UTC.
40
+ * @type {string}
41
+ * @memberof ClusterStorageUsageHistory
42
+ */
43
+ 'end': string;
44
+ /**
45
+ *
46
+ * @type {Array<ClusterStorageUsageHistoryPoint>}
47
+ * @memberof ClusterStorageUsageHistory
48
+ */
49
+ 'points': Array<ClusterStorageUsageHistoryPoint>;
50
+ /**
51
+ * Metrics source used to build the history.
52
+ * @type {string}
53
+ * @memberof ClusterStorageUsageHistory
54
+ */
55
+ 'source': string;
56
+ /**
57
+ * Backend collection timestamp in UTC.
58
+ * @type {string}
59
+ * @memberof ClusterStorageUsageHistory
60
+ */
61
+ 'collectedAt': string;
62
+ }
63
+
@@ -179,6 +179,8 @@ export * from './cluster-slow-log-explain-response';
179
179
  export * from './cluster-slow-log-stats';
180
180
  export * from './cluster-slow-log-template';
181
181
  export * from './cluster-slow-log-template-list';
182
+ export * from './cluster-storage-usage-history';
183
+ export * from './cluster-storage-usage-history-point';
182
184
  export * from './cluster-tags';
183
185
  export * from './cluster-termination-policy';
184
186
  export * from './cluster-type';
@@ -627,11 +629,9 @@ export * from './postgresql-lock-analysis';
627
629
  export * from './postgresql-lock-row';
628
630
  export * from './postgresql-session';
629
631
  export * from './postgresql-space-analysis';
630
- export * from './postgresql-space-cannot-prove';
631
- export * from './postgresql-space-pvc';
632
- export * from './postgresql-space-risk-hint';
633
632
  export * from './postgresql-space-source';
634
633
  export * from './postgresql-space-summary';
634
+ export * from './postgresql-storage-overview';
635
635
  export * from './postgresql-table-space';
636
636
  export * from './postgresql-toast-relation-space';
637
637
  export * from './postgresql-wait-graph';
@@ -32,17 +32,5 @@ export interface PostgresqlDatabaseSpace {
32
32
  * @memberof PostgresqlDatabaseSpace
33
33
  */
34
34
  'sizeBytes'?: number;
35
- /**
36
- *
37
- * @type {boolean}
38
- * @memberof PostgresqlDatabaseSpace
39
- */
40
- 'noHistoryYet': boolean;
41
- /**
42
- *
43
- * @type {boolean}
44
- * @memberof PostgresqlDatabaseSpace
45
- */
46
- 'cannotProveGrowth': boolean;
47
35
  }
48
36
 
@@ -92,17 +92,5 @@ export interface PostgresqlIndexSpace {
92
92
  * @memberof PostgresqlIndexSpace
93
93
  */
94
94
  'tuplesFetch'?: number;
95
- /**
96
- *
97
- * @type {boolean}
98
- * @memberof PostgresqlIndexSpace
99
- */
100
- 'noHistoryYet': boolean;
101
- /**
102
- *
103
- * @type {boolean}
104
- * @memberof PostgresqlIndexSpace
105
- */
106
- 'cannotProveGrowth': boolean;
107
95
  }
108
96
 
@@ -21,21 +21,15 @@ import type { PostgresqlDatabaseSpace } from './postgresql-database-space';
21
21
  import type { PostgresqlIndexSpace } from './postgresql-index-space';
22
22
  // May contain unused imports in some cases
23
23
  // @ts-ignore
24
- import type { PostgresqlSpaceCannotProve } from './postgresql-space-cannot-prove';
25
- // May contain unused imports in some cases
26
- // @ts-ignore
27
- import type { PostgresqlSpacePVC } from './postgresql-space-pvc';
28
- // May contain unused imports in some cases
29
- // @ts-ignore
30
- import type { PostgresqlSpaceRiskHint } from './postgresql-space-risk-hint';
31
- // May contain unused imports in some cases
32
- // @ts-ignore
33
24
  import type { PostgresqlSpaceSource } from './postgresql-space-source';
34
25
  // May contain unused imports in some cases
35
26
  // @ts-ignore
36
27
  import type { PostgresqlSpaceSummary } from './postgresql-space-summary';
37
28
  // May contain unused imports in some cases
38
29
  // @ts-ignore
30
+ import type { PostgresqlStorageOverview } from './postgresql-storage-overview';
31
+ // May contain unused imports in some cases
32
+ // @ts-ignore
39
33
  import type { PostgresqlTableSpace } from './postgresql-table-space';
40
34
  // May contain unused imports in some cases
41
35
  // @ts-ignore
@@ -55,10 +49,10 @@ export interface PostgresqlSpaceAnalysis {
55
49
  'summary': PostgresqlSpaceSummary;
56
50
  /**
57
51
  *
58
- * @type {PostgresqlSpacePVC}
52
+ * @type {PostgresqlStorageOverview}
59
53
  * @memberof PostgresqlSpaceAnalysis
60
54
  */
61
- 'pvc': PostgresqlSpacePVC;
55
+ 'storageOverview': PostgresqlStorageOverview;
62
56
  /**
63
57
  *
64
58
  * @type {Array<PostgresqlDatabaseSpace>}
@@ -83,18 +77,6 @@ export interface PostgresqlSpaceAnalysis {
83
77
  * @memberof PostgresqlSpaceAnalysis
84
78
  */
85
79
  'toastRelations': Array<PostgresqlToastRelationSpace>;
86
- /**
87
- *
88
- * @type {Array<PostgresqlSpaceRiskHint>}
89
- * @memberof PostgresqlSpaceAnalysis
90
- */
91
- 'riskHints': Array<PostgresqlSpaceRiskHint>;
92
- /**
93
- *
94
- * @type {PostgresqlSpaceCannotProve}
95
- * @memberof PostgresqlSpaceAnalysis
96
- */
97
- 'cannotProve': PostgresqlSpaceCannotProve;
98
80
  /**
99
81
  *
100
82
  * @type {Array<PostgresqlSpaceSource>}
@@ -74,17 +74,5 @@ export interface PostgresqlSpaceSummary {
74
74
  * @memberof PostgresqlSpaceSummary
75
75
  */
76
76
  'indexListTruncated': boolean;
77
- /**
78
- *
79
- * @type {boolean}
80
- * @memberof PostgresqlSpaceSummary
81
- */
82
- 'noHistoryYet': boolean;
83
- /**
84
- *
85
- * @type {boolean}
86
- * @memberof PostgresqlSpaceSummary
87
- */
88
- 'cannotProveGrowth': boolean;
89
77
  }
90
78