kb-cloud-client-typescript 2.3.0-alpha.122 → 2.3.0-alpha.123

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 (69) hide show
  1. package/dist/adminapi/apis/diagnostics-api.d.ts +10 -2
  2. package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/diagnostics-api.js +10 -5
  4. package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
  5. package/dist/adminapi/models/cluster-storage-usage-history-instance.d.ts +56 -0
  6. package/dist/adminapi/models/cluster-storage-usage-history-instance.d.ts.map +1 -0
  7. package/dist/adminapi/models/cluster-storage-usage-history-instance.js +16 -0
  8. package/dist/adminapi/models/cluster-storage-usage-history-instance.js.map +1 -0
  9. package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts +6 -0
  10. package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts.map +1 -1
  11. package/dist/adminapi/models/cluster-storage-usage-history.d.ts +4 -4
  12. package/dist/adminapi/models/cluster-storage-usage-history.d.ts.map +1 -1
  13. package/dist/adminapi/models/index.d.ts +2 -0
  14. package/dist/adminapi/models/index.d.ts.map +1 -1
  15. package/dist/adminapi/models/index.js +2 -0
  16. package/dist/adminapi/models/index.js.map +1 -1
  17. package/dist/adminapi/models/postgresql-space-analysis.d.ts +10 -4
  18. package/dist/adminapi/models/postgresql-space-analysis.d.ts.map +1 -1
  19. package/dist/adminapi/models/postgresql-storage-instance-usage.d.ts +79 -0
  20. package/dist/adminapi/models/postgresql-storage-instance-usage.d.ts.map +1 -0
  21. package/dist/adminapi/models/postgresql-storage-instance-usage.js +16 -0
  22. package/dist/adminapi/models/postgresql-storage-instance-usage.js.map +1 -0
  23. package/dist/adminapi/models/postgresql-storage-overview.d.ts +6 -29
  24. package/dist/adminapi/models/postgresql-storage-overview.d.ts.map +1 -1
  25. package/dist/openapi/apis/diagnostics-api.d.ts +10 -2
  26. package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
  27. package/dist/openapi/apis/diagnostics-api.js +10 -5
  28. package/dist/openapi/apis/diagnostics-api.js.map +1 -1
  29. package/dist/openapi/models/cluster-storage-usage-history-instance.d.ts +56 -0
  30. package/dist/openapi/models/cluster-storage-usage-history-instance.d.ts.map +1 -0
  31. package/dist/openapi/models/cluster-storage-usage-history-instance.js +16 -0
  32. package/dist/openapi/models/cluster-storage-usage-history-instance.js.map +1 -0
  33. package/dist/openapi/models/cluster-storage-usage-history-point.d.ts +6 -0
  34. package/dist/openapi/models/cluster-storage-usage-history-point.d.ts.map +1 -1
  35. package/dist/openapi/models/cluster-storage-usage-history.d.ts +4 -4
  36. package/dist/openapi/models/cluster-storage-usage-history.d.ts.map +1 -1
  37. package/dist/openapi/models/index.d.ts +2 -0
  38. package/dist/openapi/models/index.d.ts.map +1 -1
  39. package/dist/openapi/models/index.js +2 -0
  40. package/dist/openapi/models/index.js.map +1 -1
  41. package/dist/openapi/models/postgresql-space-analysis.d.ts +10 -4
  42. package/dist/openapi/models/postgresql-space-analysis.d.ts.map +1 -1
  43. package/dist/openapi/models/postgresql-storage-instance-usage.d.ts +79 -0
  44. package/dist/openapi/models/postgresql-storage-instance-usage.d.ts.map +1 -0
  45. package/dist/openapi/models/postgresql-storage-instance-usage.js +16 -0
  46. package/dist/openapi/models/postgresql-storage-instance-usage.js.map +1 -0
  47. package/dist/openapi/models/postgresql-storage-overview.d.ts +6 -29
  48. package/dist/openapi/models/postgresql-storage-overview.d.ts.map +1 -1
  49. package/package.json +1 -1
  50. package/src/adminapi/.openapi-generator/FILES +2 -0
  51. package/src/adminapi/apis/diagnostics-api.ts +18 -5
  52. package/src/adminapi/models/cluster-storage-usage-history-instance.ts +63 -0
  53. package/src/adminapi/models/cluster-storage-usage-history-point.ts +6 -0
  54. package/src/adminapi/models/cluster-storage-usage-history.ts +4 -4
  55. package/src/adminapi/models/index.ts +2 -0
  56. package/src/adminapi/models/postgresql-space-analysis.ts +10 -4
  57. package/src/adminapi/models/postgresql-storage-instance-usage.ts +84 -0
  58. package/src/adminapi/models/postgresql-storage-overview.ts +8 -29
  59. package/src/adminapi.yaml +78 -11
  60. package/src/openapi/.openapi-generator/FILES +2 -0
  61. package/src/openapi/apis/diagnostics-api.ts +18 -5
  62. package/src/openapi/models/cluster-storage-usage-history-instance.ts +63 -0
  63. package/src/openapi/models/cluster-storage-usage-history-point.ts +6 -0
  64. package/src/openapi/models/cluster-storage-usage-history.ts +4 -4
  65. package/src/openapi/models/index.ts +2 -0
  66. package/src/openapi/models/postgresql-space-analysis.ts +10 -4
  67. package/src/openapi/models/postgresql-storage-instance-usage.ts +84 -0
  68. package/src/openapi/models/postgresql-storage-overview.ts +8 -29
  69. package/src/openapi.yaml +78 -11
@@ -0,0 +1,79 @@
1
+ /**
2
+ * KubeBlocks Cloud API
3
+ * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: support@apecloud.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PostgresqlStorageInstanceUsage
16
+ */
17
+ export interface PostgresqlStorageInstanceUsage {
18
+ /**
19
+ * Kubernetes pod name for this PostgreSQL replica storage sample.
20
+ * @type {string}
21
+ * @memberof PostgresqlStorageInstanceUsage
22
+ */
23
+ 'instanceName'?: string;
24
+ /**
25
+ * PersistentVolumeClaim name when it can be read from metrics labels.
26
+ * @type {string}
27
+ * @memberof PostgresqlStorageInstanceUsage
28
+ */
29
+ 'pvcName'?: string;
30
+ /**
31
+ * Raw PostgreSQL replica role value read from metrics labels, kept aligned with instance detail display.
32
+ * @type {string}
33
+ * @memberof PostgresqlStorageInstanceUsage
34
+ */
35
+ 'role'?: string;
36
+ /**
37
+ * Optional KubeBlocks component name when it can be read from metrics labels.
38
+ * @type {string}
39
+ * @memberof PostgresqlStorageInstanceUsage
40
+ */
41
+ 'componentName'?: string;
42
+ /**
43
+ * Physical PVC capacity in bytes for this replica storage sample.
44
+ * @type {number}
45
+ * @memberof PostgresqlStorageInstanceUsage
46
+ */
47
+ 'totalBytes'?: number;
48
+ /**
49
+ * Physical PVC used bytes for this replica storage sample.
50
+ * @type {number}
51
+ * @memberof PostgresqlStorageInstanceUsage
52
+ */
53
+ 'usedBytes'?: number;
54
+ /**
55
+ * Available bytes derived from totalBytes - usedBytes when both values are available.
56
+ * @type {number}
57
+ * @memberof PostgresqlStorageInstanceUsage
58
+ */
59
+ 'availableBytes'?: number;
60
+ /**
61
+ * usedBytes / totalBytes for this replica storage sample when both values are available.
62
+ * @type {number}
63
+ * @memberof PostgresqlStorageInstanceUsage
64
+ */
65
+ 'usageRatio'?: number | null;
66
+ /**
67
+ * Metrics collection timestamp in UTC.
68
+ * @type {string}
69
+ * @memberof PostgresqlStorageInstanceUsage
70
+ */
71
+ 'updatedAt'?: string;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof PostgresqlStorageInstanceUsage
76
+ */
77
+ 'source'?: string;
78
+ }
79
+ //# sourceMappingURL=postgresql-storage-instance-usage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postgresql-storage-instance-usage.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/postgresql-storage-instance-usage.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * KubeBlocks Cloud API
6
+ * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: support@apecloud.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ //# sourceMappingURL=postgresql-storage-instance-usage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postgresql-storage-instance-usage.js","sourceRoot":"","sources":["../../../src/openapi/models/postgresql-storage-instance-usage.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { PostgresqlStorageInstanceUsage } from './postgresql-storage-instance-usage';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -16,40 +17,16 @@
16
17
  */
17
18
  export interface PostgresqlStorageOverview {
18
19
  /**
19
- * Current total PVC capacity in bytes when backend-owned metrics are available.
20
- * @type {number}
21
- * @memberof PostgresqlStorageOverview
22
- */
23
- 'totalBytes'?: number;
24
- /**
25
- * Current PVC used bytes when backend-owned metrics are available.
26
- * @type {number}
27
- * @memberof PostgresqlStorageOverview
28
- */
29
- 'usedBytes'?: number;
30
- /**
31
- * Current available PVC bytes derived from totalBytes - usedBytes when both values are available.
32
- * @type {number}
33
- * @memberof PostgresqlStorageOverview
34
- */
35
- 'availableBytes'?: number;
36
- /**
37
- * Current usedBytes / totalBytes ratio when both values are available.
38
- * @type {number}
39
- * @memberof PostgresqlStorageOverview
40
- */
41
- 'usageRatio'?: number;
42
- /**
43
- * Metrics collection timestamp in UTC.
20
+ *
44
21
  * @type {string}
45
22
  * @memberof PostgresqlStorageOverview
46
23
  */
47
- 'updatedAt'?: string;
24
+ 'source': string;
48
25
  /**
49
- *
50
- * @type {string}
26
+ * Physical PostgreSQL replica storage usage split by pod/PVC/role.
27
+ * @type {Array<PostgresqlStorageInstanceUsage>}
51
28
  * @memberof PostgresqlStorageOverview
52
29
  */
53
- 'source': string;
30
+ 'instances': Array<PostgresqlStorageInstanceUsage>;
54
31
  }
55
32
  //# sourceMappingURL=postgresql-storage-overview.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"postgresql-storage-overview.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/postgresql-storage-overview.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB"}
1
+ {"version":3,"file":"postgresql-storage-overview.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/postgresql-storage-overview.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAE1F;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,WAAW,EAAE,KAAK,CAAC,8BAA8B,CAAC,CAAC;CACtD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kb-cloud-client-typescript",
3
- "version": "2.3.0-alpha.122",
3
+ "version": "2.3.0-alpha.123",
4
4
  "description": "Auto-generated TypeScript SDK for KubeBlocks Cloud API",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
@@ -274,6 +274,7 @@ models/cluster-slow-log-explain-response.ts
274
274
  models/cluster-slow-log-stats.ts
275
275
  models/cluster-slow-log-template-list.ts
276
276
  models/cluster-slow-log-template.ts
277
+ models/cluster-storage-usage-history-instance.ts
277
278
  models/cluster-storage-usage-history-point.ts
278
279
  models/cluster-storage-usage-history.ts
279
280
  models/cluster-tags.ts
@@ -729,6 +730,7 @@ models/postgresql-session.ts
729
730
  models/postgresql-space-analysis.ts
730
731
  models/postgresql-space-source.ts
731
732
  models/postgresql-space-summary.ts
733
+ models/postgresql-storage-instance-usage.ts
732
734
  models/postgresql-storage-overview.ts
733
735
  models/postgresql-table-space.ts
734
736
  models/postgresql-toast-relation-space.ts
@@ -138,10 +138,11 @@ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configu
138
138
  * @summary Get PostgreSQL space analysis
139
139
  * @param {string} orgName Organization name
140
140
  * @param {string} clusterName Cluster name
141
+ * @param {string} [databaseName] Optional database name for selected table, index, and TOAST details. When omitted, the backend selects the largest connectable non-template database.
141
142
  * @param {*} [options] Override http request option.
142
143
  * @throws {RequiredError}
143
144
  */
144
- getDiagnosticsPostgresqlSpaceAnalysis: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
145
+ getDiagnosticsPostgresqlSpaceAnalysis: async (orgName: string, clusterName: string, databaseName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
145
146
  // verify required parameter 'orgName' is not null or undefined
146
147
  assertParamExists('getDiagnosticsPostgresqlSpaceAnalysis', 'orgName', orgName)
147
148
  // verify required parameter 'clusterName' is not null or undefined
@@ -167,6 +168,10 @@ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configu
167
168
  // authentication DigestAuth required
168
169
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
169
170
 
171
+ if (databaseName !== undefined) {
172
+ localVarQueryParameter['databaseName'] = databaseName;
173
+ }
174
+
170
175
 
171
176
 
172
177
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -273,11 +278,12 @@ export const DiagnosticsApiFp = function(configuration?: Configuration) {
273
278
  * @summary Get PostgreSQL space analysis
274
279
  * @param {string} orgName Organization name
275
280
  * @param {string} clusterName Cluster name
281
+ * @param {string} [databaseName] Optional database name for selected table, index, and TOAST details. When omitted, the backend selects the largest connectable non-template database.
276
282
  * @param {*} [options] Override http request option.
277
283
  * @throws {RequiredError}
278
284
  */
279
- async getDiagnosticsPostgresqlSpaceAnalysis(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostgresqlSpaceAnalysis>> {
280
- const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsPostgresqlSpaceAnalysis(orgName, clusterName, options);
285
+ async getDiagnosticsPostgresqlSpaceAnalysis(orgName: string, clusterName: string, databaseName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostgresqlSpaceAnalysis>> {
286
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsPostgresqlSpaceAnalysis(orgName, clusterName, databaseName, options);
281
287
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
282
288
  const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsPostgresqlSpaceAnalysis']?.[localVarOperationServerIndex]?.url;
283
289
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -335,7 +341,7 @@ export const DiagnosticsApiFactory = function (configuration?: Configuration, ba
335
341
  * @throws {RequiredError}
336
342
  */
337
343
  getDiagnosticsPostgresqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlSpaceAnalysis> {
338
- return localVarFp.getDiagnosticsPostgresqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
344
+ return localVarFp.getDiagnosticsPostgresqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.databaseName, options).then((request) => request(axios, basePath));
339
345
  },
340
346
  /**
341
347
  * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
@@ -473,6 +479,13 @@ export interface DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest {
473
479
  * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysis
474
480
  */
475
481
  readonly clusterName: string
482
+
483
+ /**
484
+ * Optional database name for selected table, index, and TOAST details. When omitted, the backend selects the largest connectable non-template database.
485
+ * @type {string}
486
+ * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysis
487
+ */
488
+ readonly databaseName?: string
476
489
  }
477
490
 
478
491
  /**
@@ -543,7 +556,7 @@ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
543
556
  * @memberof DiagnosticsApi
544
557
  */
545
558
  public getDiagnosticsPostgresqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig) {
546
- return DiagnosticsApiFp(this.configuration).getDiagnosticsPostgresqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
559
+ return DiagnosticsApiFp(this.configuration).getDiagnosticsPostgresqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.databaseName, options).then((request) => request(this.axios, this.basePath));
547
560
  }
548
561
 
549
562
  /**
@@ -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
+ *
22
+ * @export
23
+ * @interface ClusterStorageUsageHistoryInstance
24
+ */
25
+ export interface ClusterStorageUsageHistoryInstance {
26
+ /**
27
+ * Kubernetes pod name for this storage usage series.
28
+ * @type {string}
29
+ * @memberof ClusterStorageUsageHistoryInstance
30
+ */
31
+ 'instanceName'?: string;
32
+ /**
33
+ * PersistentVolumeClaim name when it can be read from metrics labels.
34
+ * @type {string}
35
+ * @memberof ClusterStorageUsageHistoryInstance
36
+ */
37
+ 'pvcName'?: string;
38
+ /**
39
+ * Raw database replica role value read from metrics labels, kept aligned with instance detail display.
40
+ * @type {string}
41
+ * @memberof ClusterStorageUsageHistoryInstance
42
+ */
43
+ 'role'?: string;
44
+ /**
45
+ * Optional KubeBlocks component name when it can be read from metrics labels.
46
+ * @type {string}
47
+ * @memberof ClusterStorageUsageHistoryInstance
48
+ */
49
+ 'componentName'?: string;
50
+ /**
51
+ *
52
+ * @type {Array<ClusterStorageUsageHistoryPoint>}
53
+ * @memberof ClusterStorageUsageHistoryInstance
54
+ */
55
+ 'points': Array<ClusterStorageUsageHistoryPoint>;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof ClusterStorageUsageHistoryInstance
60
+ */
61
+ 'source'?: string;
62
+ }
63
+
@@ -38,6 +38,12 @@ export interface ClusterStorageUsageHistoryPoint {
38
38
  * @memberof ClusterStorageUsageHistoryPoint
39
39
  */
40
40
  'totalBytes': number;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof ClusterStorageUsageHistoryPoint
45
+ */
46
+ 'availableBytes': number;
41
47
  /**
42
48
  *
43
49
  * @type {number}
@@ -15,10 +15,10 @@
15
15
 
16
16
  // May contain unused imports in some cases
17
17
  // @ts-ignore
18
- import type { ClusterStorageUsageHistoryPoint } from './cluster-storage-usage-history-point';
18
+ import type { ClusterStorageUsageHistoryInstance } from './cluster-storage-usage-history-instance';
19
19
 
20
20
  /**
21
- * Cluster storage usage history collected from backend-owned fixed metrics.
21
+ * Per-instance cluster storage usage history collected from backend-owned fixed metrics.
22
22
  * @export
23
23
  * @interface ClusterStorageUsageHistory
24
24
  */
@@ -43,10 +43,10 @@ export interface ClusterStorageUsageHistory {
43
43
  'end': string;
44
44
  /**
45
45
  *
46
- * @type {Array<ClusterStorageUsageHistoryPoint>}
46
+ * @type {Array<ClusterStorageUsageHistoryInstance>}
47
47
  * @memberof ClusterStorageUsageHistory
48
48
  */
49
- 'points': Array<ClusterStorageUsageHistoryPoint>;
49
+ 'instances': Array<ClusterStorageUsageHistoryInstance>;
50
50
  /**
51
51
  * Metrics source used to build the history.
52
52
  * @type {string}
@@ -180,6 +180,7 @@ export * from './cluster-slow-log-stats';
180
180
  export * from './cluster-slow-log-template';
181
181
  export * from './cluster-slow-log-template-list';
182
182
  export * from './cluster-storage-usage-history';
183
+ export * from './cluster-storage-usage-history-instance';
183
184
  export * from './cluster-storage-usage-history-point';
184
185
  export * from './cluster-tags';
185
186
  export * from './cluster-termination-policy';
@@ -631,6 +632,7 @@ export * from './postgresql-session';
631
632
  export * from './postgresql-space-analysis';
632
633
  export * from './postgresql-space-source';
633
634
  export * from './postgresql-space-summary';
635
+ export * from './postgresql-storage-instance-usage';
634
636
  export * from './postgresql-storage-overview';
635
637
  export * from './postgresql-table-space';
636
638
  export * from './postgresql-toast-relation-space';
@@ -54,25 +54,31 @@ export interface PostgresqlSpaceAnalysis {
54
54
  */
55
55
  'storageOverview': PostgresqlStorageOverview;
56
56
  /**
57
- *
57
+ * Sizes of all connectable non-template databases in the PostgreSQL instance.
58
58
  * @type {Array<PostgresqlDatabaseSpace>}
59
59
  * @memberof PostgresqlSpaceAnalysis
60
60
  */
61
61
  'databases': Array<PostgresqlDatabaseSpace>;
62
62
  /**
63
- *
63
+ * Database used for tables, indexes, and toastRelations in this response.
64
+ * @type {string}
65
+ * @memberof PostgresqlSpaceAnalysis
66
+ */
67
+ 'selectedDatabase': string;
68
+ /**
69
+ * Top tables from selectedDatabase.
64
70
  * @type {Array<PostgresqlTableSpace>}
65
71
  * @memberof PostgresqlSpaceAnalysis
66
72
  */
67
73
  'tables': Array<PostgresqlTableSpace>;
68
74
  /**
69
- *
75
+ * Top indexes from selectedDatabase.
70
76
  * @type {Array<PostgresqlIndexSpace>}
71
77
  * @memberof PostgresqlSpaceAnalysis
72
78
  */
73
79
  'indexes': Array<PostgresqlIndexSpace>;
74
80
  /**
75
- *
81
+ * Toast relations derived from selectedDatabase table space data.
76
82
  * @type {Array<PostgresqlToastRelationSpace>}
77
83
  * @memberof PostgresqlSpaceAnalysis
78
84
  */
@@ -0,0 +1,84 @@
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 PostgresqlStorageInstanceUsage
21
+ */
22
+ export interface PostgresqlStorageInstanceUsage {
23
+ /**
24
+ * Kubernetes pod name for this PostgreSQL replica storage sample.
25
+ * @type {string}
26
+ * @memberof PostgresqlStorageInstanceUsage
27
+ */
28
+ 'instanceName'?: string;
29
+ /**
30
+ * PersistentVolumeClaim name when it can be read from metrics labels.
31
+ * @type {string}
32
+ * @memberof PostgresqlStorageInstanceUsage
33
+ */
34
+ 'pvcName'?: string;
35
+ /**
36
+ * Raw PostgreSQL replica role value read from metrics labels, kept aligned with instance detail display.
37
+ * @type {string}
38
+ * @memberof PostgresqlStorageInstanceUsage
39
+ */
40
+ 'role'?: string;
41
+ /**
42
+ * Optional KubeBlocks component name when it can be read from metrics labels.
43
+ * @type {string}
44
+ * @memberof PostgresqlStorageInstanceUsage
45
+ */
46
+ 'componentName'?: string;
47
+ /**
48
+ * Physical PVC capacity in bytes for this replica storage sample.
49
+ * @type {number}
50
+ * @memberof PostgresqlStorageInstanceUsage
51
+ */
52
+ 'totalBytes'?: number;
53
+ /**
54
+ * Physical PVC used bytes for this replica storage sample.
55
+ * @type {number}
56
+ * @memberof PostgresqlStorageInstanceUsage
57
+ */
58
+ 'usedBytes'?: number;
59
+ /**
60
+ * Available bytes derived from totalBytes - usedBytes when both values are available.
61
+ * @type {number}
62
+ * @memberof PostgresqlStorageInstanceUsage
63
+ */
64
+ 'availableBytes'?: number;
65
+ /**
66
+ * usedBytes / totalBytes for this replica storage sample when both values are available.
67
+ * @type {number}
68
+ * @memberof PostgresqlStorageInstanceUsage
69
+ */
70
+ 'usageRatio'?: number | null;
71
+ /**
72
+ * Metrics collection timestamp in UTC.
73
+ * @type {string}
74
+ * @memberof PostgresqlStorageInstanceUsage
75
+ */
76
+ 'updatedAt'?: string;
77
+ /**
78
+ *
79
+ * @type {string}
80
+ * @memberof PostgresqlStorageInstanceUsage
81
+ */
82
+ 'source'?: string;
83
+ }
84
+
@@ -13,6 +13,9 @@
13
13
  */
14
14
 
15
15
 
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { PostgresqlStorageInstanceUsage } from './postgresql-storage-instance-usage';
16
19
 
17
20
  /**
18
21
  *
@@ -21,40 +24,16 @@
21
24
  */
22
25
  export interface PostgresqlStorageOverview {
23
26
  /**
24
- * Current total PVC capacity in bytes when backend-owned metrics are available.
25
- * @type {number}
26
- * @memberof PostgresqlStorageOverview
27
- */
28
- 'totalBytes'?: number;
29
- /**
30
- * Current PVC used bytes when backend-owned metrics are available.
31
- * @type {number}
32
- * @memberof PostgresqlStorageOverview
33
- */
34
- 'usedBytes'?: number;
35
- /**
36
- * Current available PVC bytes derived from totalBytes - usedBytes when both values are available.
37
- * @type {number}
38
- * @memberof PostgresqlStorageOverview
39
- */
40
- 'availableBytes'?: number;
41
- /**
42
- * Current usedBytes / totalBytes ratio when both values are available.
43
- * @type {number}
44
- * @memberof PostgresqlStorageOverview
45
- */
46
- 'usageRatio'?: number;
47
- /**
48
- * Metrics collection timestamp in UTC.
27
+ *
49
28
  * @type {string}
50
29
  * @memberof PostgresqlStorageOverview
51
30
  */
52
- 'updatedAt'?: string;
31
+ 'source': string;
53
32
  /**
54
- *
55
- * @type {string}
33
+ * Physical PostgreSQL replica storage usage split by pod/PVC/role.
34
+ * @type {Array<PostgresqlStorageInstanceUsage>}
56
35
  * @memberof PostgresqlStorageOverview
57
36
  */
58
- 'source': string;
37
+ 'instances': Array<PostgresqlStorageInstanceUsage>;
59
38
  }
60
39