kb-cloud-client-typescript 2.3.0-alpha.117 → 2.3.0-alpha.119

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 (145) 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 +64 -0
  6. package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/diagnostics-api.js +74 -0
  8. package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
  9. package/dist/adminapi/apis/shared-api.d.ts +72 -0
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +79 -0
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts +43 -0
  14. package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts.map +1 -0
  15. package/dist/adminapi/models/cluster-storage-usage-history-point.js +16 -0
  16. package/dist/adminapi/models/cluster-storage-usage-history-point.js.map +1 -0
  17. package/dist/adminapi/models/cluster-storage-usage-history.d.ts +56 -0
  18. package/dist/adminapi/models/cluster-storage-usage-history.d.ts.map +1 -0
  19. package/dist/adminapi/models/cluster-storage-usage-history.js +16 -0
  20. package/dist/adminapi/models/cluster-storage-usage-history.js.map +1 -0
  21. package/dist/adminapi/models/index.d.ts +10 -0
  22. package/dist/adminapi/models/index.d.ts.map +1 -1
  23. package/dist/adminapi/models/index.js +10 -0
  24. package/dist/adminapi/models/index.js.map +1 -1
  25. package/dist/adminapi/models/postgresql-database-space.d.ts +31 -0
  26. package/dist/adminapi/models/postgresql-database-space.d.ts.map +1 -0
  27. package/dist/adminapi/models/postgresql-database-space.js +16 -0
  28. package/dist/adminapi/models/postgresql-database-space.js.map +1 -0
  29. package/dist/adminapi/models/postgresql-index-space.d.ts +91 -0
  30. package/dist/adminapi/models/postgresql-index-space.d.ts.map +1 -0
  31. package/dist/adminapi/models/postgresql-index-space.js +16 -0
  32. package/dist/adminapi/models/postgresql-index-space.js.map +1 -0
  33. package/dist/adminapi/models/postgresql-space-analysis.d.ts +74 -0
  34. package/dist/adminapi/models/postgresql-space-analysis.d.ts.map +1 -0
  35. package/dist/adminapi/models/postgresql-space-analysis.js +16 -0
  36. package/dist/adminapi/models/postgresql-space-analysis.js.map +1 -0
  37. package/dist/adminapi/models/postgresql-space-source.d.ts +49 -0
  38. package/dist/adminapi/models/postgresql-space-source.d.ts.map +1 -0
  39. package/dist/adminapi/models/postgresql-space-source.js +16 -0
  40. package/dist/adminapi/models/postgresql-space-source.js.map +1 -0
  41. package/dist/adminapi/models/postgresql-space-summary.d.ts +73 -0
  42. package/dist/adminapi/models/postgresql-space-summary.d.ts.map +1 -0
  43. package/dist/adminapi/models/postgresql-space-summary.js +16 -0
  44. package/dist/adminapi/models/postgresql-space-summary.js.map +1 -0
  45. package/dist/adminapi/models/postgresql-storage-overview.d.ts +55 -0
  46. package/dist/adminapi/models/postgresql-storage-overview.d.ts.map +1 -0
  47. package/dist/adminapi/models/postgresql-storage-overview.js +16 -0
  48. package/dist/adminapi/models/postgresql-storage-overview.js.map +1 -0
  49. package/dist/adminapi/models/postgresql-table-space.d.ts +121 -0
  50. package/dist/adminapi/models/postgresql-table-space.d.ts.map +1 -0
  51. package/dist/adminapi/models/postgresql-table-space.js +16 -0
  52. package/dist/adminapi/models/postgresql-table-space.js.map +1 -0
  53. package/dist/adminapi/models/postgresql-toast-relation-space.d.ts +55 -0
  54. package/dist/adminapi/models/postgresql-toast-relation-space.d.ts.map +1 -0
  55. package/dist/adminapi/models/postgresql-toast-relation-space.js +16 -0
  56. package/dist/adminapi/models/postgresql-toast-relation-space.js.map +1 -0
  57. package/dist/openapi/apis/cluster-api.d.ts +72 -0
  58. package/dist/openapi/apis/cluster-api.d.ts.map +1 -1
  59. package/dist/openapi/apis/cluster-api.js +79 -0
  60. package/dist/openapi/apis/cluster-api.js.map +1 -1
  61. package/dist/openapi/apis/diagnostics-api.d.ts +64 -0
  62. package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
  63. package/dist/openapi/apis/diagnostics-api.js +74 -0
  64. package/dist/openapi/apis/diagnostics-api.js.map +1 -1
  65. package/dist/openapi/apis/shared-api.d.ts +72 -0
  66. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  67. package/dist/openapi/apis/shared-api.js +79 -0
  68. package/dist/openapi/apis/shared-api.js.map +1 -1
  69. package/dist/openapi/models/cluster-storage-usage-history-point.d.ts +43 -0
  70. package/dist/openapi/models/cluster-storage-usage-history-point.d.ts.map +1 -0
  71. package/dist/openapi/models/cluster-storage-usage-history-point.js +16 -0
  72. package/dist/openapi/models/cluster-storage-usage-history-point.js.map +1 -0
  73. package/dist/openapi/models/cluster-storage-usage-history.d.ts +56 -0
  74. package/dist/openapi/models/cluster-storage-usage-history.d.ts.map +1 -0
  75. package/dist/openapi/models/cluster-storage-usage-history.js +16 -0
  76. package/dist/openapi/models/cluster-storage-usage-history.js.map +1 -0
  77. package/dist/openapi/models/index.d.ts +10 -0
  78. package/dist/openapi/models/index.d.ts.map +1 -1
  79. package/dist/openapi/models/index.js +10 -0
  80. package/dist/openapi/models/index.js.map +1 -1
  81. package/dist/openapi/models/postgresql-database-space.d.ts +31 -0
  82. package/dist/openapi/models/postgresql-database-space.d.ts.map +1 -0
  83. package/dist/openapi/models/postgresql-database-space.js +16 -0
  84. package/dist/openapi/models/postgresql-database-space.js.map +1 -0
  85. package/dist/openapi/models/postgresql-index-space.d.ts +91 -0
  86. package/dist/openapi/models/postgresql-index-space.d.ts.map +1 -0
  87. package/dist/openapi/models/postgresql-index-space.js +16 -0
  88. package/dist/openapi/models/postgresql-index-space.js.map +1 -0
  89. package/dist/openapi/models/postgresql-space-analysis.d.ts +74 -0
  90. package/dist/openapi/models/postgresql-space-analysis.d.ts.map +1 -0
  91. package/dist/openapi/models/postgresql-space-analysis.js +16 -0
  92. package/dist/openapi/models/postgresql-space-analysis.js.map +1 -0
  93. package/dist/openapi/models/postgresql-space-source.d.ts +49 -0
  94. package/dist/openapi/models/postgresql-space-source.d.ts.map +1 -0
  95. package/dist/openapi/models/postgresql-space-source.js +16 -0
  96. package/dist/openapi/models/postgresql-space-source.js.map +1 -0
  97. package/dist/openapi/models/postgresql-space-summary.d.ts +73 -0
  98. package/dist/openapi/models/postgresql-space-summary.d.ts.map +1 -0
  99. package/dist/openapi/models/postgresql-space-summary.js +16 -0
  100. package/dist/openapi/models/postgresql-space-summary.js.map +1 -0
  101. package/dist/openapi/models/postgresql-storage-overview.d.ts +55 -0
  102. package/dist/openapi/models/postgresql-storage-overview.d.ts.map +1 -0
  103. package/dist/openapi/models/postgresql-storage-overview.js +16 -0
  104. package/dist/openapi/models/postgresql-storage-overview.js.map +1 -0
  105. package/dist/openapi/models/postgresql-table-space.d.ts +121 -0
  106. package/dist/openapi/models/postgresql-table-space.d.ts.map +1 -0
  107. package/dist/openapi/models/postgresql-table-space.js +16 -0
  108. package/dist/openapi/models/postgresql-table-space.js.map +1 -0
  109. package/dist/openapi/models/postgresql-toast-relation-space.d.ts +55 -0
  110. package/dist/openapi/models/postgresql-toast-relation-space.d.ts.map +1 -0
  111. package/dist/openapi/models/postgresql-toast-relation-space.js +16 -0
  112. package/dist/openapi/models/postgresql-toast-relation-space.js.map +1 -0
  113. package/package.json +1 -1
  114. package/src/adminapi/.openapi-generator/FILES +10 -0
  115. package/src/adminapi/apis/cluster-api.ts +127 -0
  116. package/src/adminapi/apis/diagnostics-api.ts +114 -0
  117. package/src/adminapi/apis/shared-api.ts +127 -0
  118. package/src/adminapi/models/cluster-storage-usage-history-point.ts +48 -0
  119. package/src/adminapi/models/cluster-storage-usage-history.ts +63 -0
  120. package/src/adminapi/models/index.ts +10 -0
  121. package/src/adminapi/models/postgresql-database-space.ts +36 -0
  122. package/src/adminapi/models/postgresql-index-space.ts +96 -0
  123. package/src/adminapi/models/postgresql-space-analysis.ts +93 -0
  124. package/src/adminapi/models/postgresql-space-source.ts +54 -0
  125. package/src/adminapi/models/postgresql-space-summary.ts +78 -0
  126. package/src/adminapi/models/postgresql-storage-overview.ts +60 -0
  127. package/src/adminapi/models/postgresql-table-space.ts +126 -0
  128. package/src/adminapi/models/postgresql-toast-relation-space.ts +60 -0
  129. package/src/adminapi.yaml +347 -0
  130. package/src/openapi/.openapi-generator/FILES +10 -0
  131. package/src/openapi/apis/cluster-api.ts +127 -0
  132. package/src/openapi/apis/diagnostics-api.ts +114 -0
  133. package/src/openapi/apis/shared-api.ts +127 -0
  134. package/src/openapi/models/cluster-storage-usage-history-point.ts +48 -0
  135. package/src/openapi/models/cluster-storage-usage-history.ts +63 -0
  136. package/src/openapi/models/index.ts +10 -0
  137. package/src/openapi/models/postgresql-database-space.ts +36 -0
  138. package/src/openapi/models/postgresql-index-space.ts +96 -0
  139. package/src/openapi/models/postgresql-space-analysis.ts +93 -0
  140. package/src/openapi/models/postgresql-space-source.ts +54 -0
  141. package/src/openapi/models/postgresql-space-summary.ts +78 -0
  142. package/src/openapi/models/postgresql-storage-overview.ts +60 -0
  143. package/src/openapi/models/postgresql-table-space.ts +126 -0
  144. package/src/openapi/models/postgresql-toast-relation-space.ts +60 -0
  145. package/src/openapi.yaml +347 -0
@@ -27,6 +27,8 @@ import type { APIErrorResponse } from '../models';
27
27
  import type { PostgresqlLockAnalysis } from '../models';
28
28
  // @ts-ignore
29
29
  import type { PostgresqlSession } from '../models';
30
+ // @ts-ignore
31
+ import type { PostgresqlSpaceAnalysis } from '../models';
30
32
  /**
31
33
  * DiagnosticsApi - axios parameter creator
32
34
  * @export
@@ -122,6 +124,51 @@ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configu
122
124
 
123
125
 
124
126
 
127
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
128
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
130
+
131
+ return {
132
+ url: toPathString(localVarUrlObj),
133
+ options: localVarRequestOptions,
134
+ };
135
+ },
136
+ /**
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
+ * @summary Get PostgreSQL space analysis
139
+ * @param {string} orgName Organization name
140
+ * @param {string} clusterName Cluster name
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ */
144
+ getDiagnosticsPostgresqlSpaceAnalysis: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
145
+ // verify required parameter 'orgName' is not null or undefined
146
+ assertParamExists('getDiagnosticsPostgresqlSpaceAnalysis', 'orgName', orgName)
147
+ // verify required parameter 'clusterName' is not null or undefined
148
+ assertParamExists('getDiagnosticsPostgresqlSpaceAnalysis', 'clusterName', clusterName)
149
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/spaceAnalysis`
150
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
151
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
152
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
153
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
154
+ let baseOptions;
155
+ if (configuration) {
156
+ baseOptions = configuration.baseOptions;
157
+ }
158
+
159
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
160
+ const localVarHeaderParameter = {} as any;
161
+ const localVarQueryParameter = {} as any;
162
+
163
+ // authentication BearerToken required
164
+ // http bearer authentication required
165
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
166
+
167
+ // authentication DigestAuth required
168
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
169
+
170
+
171
+
125
172
  setSearchParams(localVarUrlObj, localVarQueryParameter);
126
173
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
127
174
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -221,6 +268,20 @@ export const DiagnosticsApiFp = function(configuration?: Configuration) {
221
268
  const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsPostgresqlSessionLockAnalysis']?.[localVarOperationServerIndex]?.url;
222
269
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
223
270
  },
271
+ /**
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
+ * @summary Get PostgreSQL space analysis
274
+ * @param {string} orgName Organization name
275
+ * @param {string} clusterName Cluster name
276
+ * @param {*} [options] Override http request option.
277
+ * @throws {RequiredError}
278
+ */
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);
281
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
282
+ const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsPostgresqlSpaceAnalysis']?.[localVarOperationServerIndex]?.url;
283
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
284
+ },
224
285
  /**
225
286
  * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
226
287
  * @summary List PostgreSQL session basic diagnostics
@@ -266,6 +327,16 @@ export const DiagnosticsApiFactory = function (configuration?: Configuration, ba
266
327
  getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlLockAnalysis> {
267
328
  return localVarFp.getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(axios, basePath));
268
329
  },
330
+ /**
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
+ * @summary Get PostgreSQL space analysis
333
+ * @param {DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest} requestParameters Request parameters.
334
+ * @param {*} [options] Override http request option.
335
+ * @throws {RequiredError}
336
+ */
337
+ getDiagnosticsPostgresqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlSpaceAnalysis> {
338
+ return localVarFp.getDiagnosticsPostgresqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
339
+ },
269
340
  /**
270
341
  * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
271
342
  * @summary List PostgreSQL session basic diagnostics
@@ -305,6 +376,16 @@ export interface DiagnosticsApiInterface {
305
376
  */
306
377
  getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlLockAnalysis>;
307
378
 
379
+ /**
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
+ * @summary Get PostgreSQL space analysis
382
+ * @param {DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest} requestParameters Request parameters.
383
+ * @param {*} [options] Override http request option.
384
+ * @throws {RequiredError}
385
+ * @memberof DiagnosticsApiInterface
386
+ */
387
+ getDiagnosticsPostgresqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlSpaceAnalysis>;
388
+
308
389
  /**
309
390
  * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
310
391
  * @summary List PostgreSQL session basic diagnostics
@@ -373,6 +454,27 @@ export interface DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisReques
373
454
  readonly pid: number
374
455
  }
375
456
 
457
+ /**
458
+ * Request parameters for getDiagnosticsPostgresqlSpaceAnalysis operation in DiagnosticsApi.
459
+ * @export
460
+ * @interface DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest
461
+ */
462
+ export interface DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest {
463
+ /**
464
+ * Organization name
465
+ * @type {string}
466
+ * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysis
467
+ */
468
+ readonly orgName: string
469
+
470
+ /**
471
+ * Cluster name
472
+ * @type {string}
473
+ * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysis
474
+ */
475
+ readonly clusterName: string
476
+ }
477
+
376
478
  /**
377
479
  * Request parameters for listDiagnosticsPostgresqlSessions operation in DiagnosticsApi.
378
480
  * @export
@@ -432,6 +534,18 @@ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
432
534
  return DiagnosticsApiFp(this.configuration).getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(this.axios, this.basePath));
433
535
  }
434
536
 
537
+ /**
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
+ * @summary Get PostgreSQL space analysis
540
+ * @param {DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest} requestParameters Request parameters.
541
+ * @param {*} [options] Override http request option.
542
+ * @throws {RequiredError}
543
+ * @memberof DiagnosticsApi
544
+ */
545
+ public getDiagnosticsPostgresqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig) {
546
+ return DiagnosticsApiFp(this.configuration).getDiagnosticsPostgresqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
547
+ }
548
+
435
549
  /**
436
550
  * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
437
551
  * @summary List PostgreSQL session basic diagnostics
@@ -106,6 +106,8 @@ import type { ClusterSlowLogTemplate } from '../models';
106
106
  // @ts-ignore
107
107
  import type { ClusterSlowLogTemplateList } from '../models';
108
108
  // @ts-ignore
109
+ import type { ClusterStorageUsageHistory } from '../models';
110
+ // @ts-ignore
109
111
  import type { ClusterTags } from '../models';
110
112
  // @ts-ignore
111
113
  import type { ClusterUpdate } from '../models';
@@ -5056,6 +5058,56 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
5056
5058
 
5057
5059
 
5058
5060
 
5061
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5062
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5063
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5064
+
5065
+ return {
5066
+ url: toPathString(localVarUrlObj),
5067
+ options: localVarRequestOptions,
5068
+ };
5069
+ },
5070
+ /**
5071
+ * Get cluster storage usage history from backend-owned fixed metrics.
5072
+ * @summary Get cluster storage usage history
5073
+ * @param {string} orgName name of the Org
5074
+ * @param {string} clusterName name of the cluster
5075
+ * @param {string} [timeRange] Requested history range. Supported values are 24h and 7d. Defaults to 24h.
5076
+ * @param {*} [options] Override http request option.
5077
+ * @throws {RequiredError}
5078
+ */
5079
+ getClusterStorageUsageHistory: async (orgName: string, clusterName: string, timeRange?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
5080
+ // verify required parameter 'orgName' is not null or undefined
5081
+ assertParamExists('getClusterStorageUsageHistory', 'orgName', orgName)
5082
+ // verify required parameter 'clusterName' is not null or undefined
5083
+ assertParamExists('getClusterStorageUsageHistory', 'clusterName', clusterName)
5084
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/storageUsageHistory`
5085
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
5086
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
5087
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5088
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5089
+ let baseOptions;
5090
+ if (configuration) {
5091
+ baseOptions = configuration.baseOptions;
5092
+ }
5093
+
5094
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5095
+ const localVarHeaderParameter = {} as any;
5096
+ const localVarQueryParameter = {} as any;
5097
+
5098
+ // authentication BearerToken required
5099
+ // http bearer authentication required
5100
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5101
+
5102
+ // authentication DigestAuth required
5103
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
5104
+
5105
+ if (timeRange !== undefined) {
5106
+ localVarQueryParameter['timeRange'] = timeRange;
5107
+ }
5108
+
5109
+
5110
+
5059
5111
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5060
5112
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5061
5113
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -15371,6 +15423,21 @@ export const SharedApiFp = function(configuration?: Configuration) {
15371
15423
  const localVarOperationServerBasePath = operationServerMap['SharedApi.getClusterParameterTemplate']?.[localVarOperationServerIndex]?.url;
15372
15424
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15373
15425
  },
15426
+ /**
15427
+ * Get cluster storage usage history from backend-owned fixed metrics.
15428
+ * @summary Get cluster storage usage history
15429
+ * @param {string} orgName name of the Org
15430
+ * @param {string} clusterName name of the cluster
15431
+ * @param {string} [timeRange] Requested history range. Supported values are 24h and 7d. Defaults to 24h.
15432
+ * @param {*} [options] Override http request option.
15433
+ * @throws {RequiredError}
15434
+ */
15435
+ async getClusterStorageUsageHistory(orgName: string, clusterName: string, timeRange?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterStorageUsageHistory>> {
15436
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterStorageUsageHistory(orgName, clusterName, timeRange, options);
15437
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15438
+ const localVarOperationServerBasePath = operationServerMap['SharedApi.getClusterStorageUsageHistory']?.[localVarOperationServerIndex]?.url;
15439
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15440
+ },
15374
15441
  /**
15375
15442
  *
15376
15443
  * @summary get the datasource
@@ -18817,6 +18884,16 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
18817
18884
  getClusterParameterTemplate(requestParameters: SharedApiGetClusterParameterTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ParamTplApplyToClusterList> {
18818
18885
  return localVarFp.getClusterParameterTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.component, requestParameters.engineName, options).then((request) => request(axios, basePath));
18819
18886
  },
18887
+ /**
18888
+ * Get cluster storage usage history from backend-owned fixed metrics.
18889
+ * @summary Get cluster storage usage history
18890
+ * @param {SharedApiGetClusterStorageUsageHistoryRequest} requestParameters Request parameters.
18891
+ * @param {*} [options] Override http request option.
18892
+ * @throws {RequiredError}
18893
+ */
18894
+ getClusterStorageUsageHistory(requestParameters: SharedApiGetClusterStorageUsageHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterStorageUsageHistory> {
18895
+ return localVarFp.getClusterStorageUsageHistory(requestParameters.orgName, requestParameters.clusterName, requestParameters.timeRange, options).then((request) => request(axios, basePath));
18896
+ },
18820
18897
  /**
18821
18898
  *
18822
18899
  * @summary get the datasource
@@ -21292,6 +21369,16 @@ export interface SharedApiInterface {
21292
21369
  */
21293
21370
  getClusterParameterTemplate(requestParameters: SharedApiGetClusterParameterTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ParamTplApplyToClusterList>;
21294
21371
 
21372
+ /**
21373
+ * Get cluster storage usage history from backend-owned fixed metrics.
21374
+ * @summary Get cluster storage usage history
21375
+ * @param {SharedApiGetClusterStorageUsageHistoryRequest} requestParameters Request parameters.
21376
+ * @param {*} [options] Override http request option.
21377
+ * @throws {RequiredError}
21378
+ * @memberof SharedApiInterface
21379
+ */
21380
+ getClusterStorageUsageHistory(requestParameters: SharedApiGetClusterStorageUsageHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterStorageUsageHistory>;
21381
+
21295
21382
  /**
21296
21383
  *
21297
21384
  * @summary get the datasource
@@ -25797,6 +25884,34 @@ export interface SharedApiGetClusterParameterTemplateRequest {
25797
25884
  readonly engineName?: string
25798
25885
  }
25799
25886
 
25887
+ /**
25888
+ * Request parameters for getClusterStorageUsageHistory operation in SharedApi.
25889
+ * @export
25890
+ * @interface SharedApiGetClusterStorageUsageHistoryRequest
25891
+ */
25892
+ export interface SharedApiGetClusterStorageUsageHistoryRequest {
25893
+ /**
25894
+ * name of the Org
25895
+ * @type {string}
25896
+ * @memberof SharedApiGetClusterStorageUsageHistory
25897
+ */
25898
+ readonly orgName: string
25899
+
25900
+ /**
25901
+ * name of the cluster
25902
+ * @type {string}
25903
+ * @memberof SharedApiGetClusterStorageUsageHistory
25904
+ */
25905
+ readonly clusterName: string
25906
+
25907
+ /**
25908
+ * Requested history range. Supported values are 24h and 7d. Defaults to 24h.
25909
+ * @type {string}
25910
+ * @memberof SharedApiGetClusterStorageUsageHistory
25911
+ */
25912
+ readonly timeRange?: string
25913
+ }
25914
+
25800
25915
  /**
25801
25916
  * Request parameters for getDataSourceV2 operation in SharedApi.
25802
25917
  * @export
@@ -32444,6 +32559,18 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
32444
32559
  return SharedApiFp(this.configuration).getClusterParameterTemplate(requestParameters.orgName, requestParameters.clusterName, requestParameters.component, requestParameters.engineName, options).then((request) => request(this.axios, this.basePath));
32445
32560
  }
32446
32561
 
32562
+ /**
32563
+ * Get cluster storage usage history from backend-owned fixed metrics.
32564
+ * @summary Get cluster storage usage history
32565
+ * @param {SharedApiGetClusterStorageUsageHistoryRequest} requestParameters Request parameters.
32566
+ * @param {*} [options] Override http request option.
32567
+ * @throws {RequiredError}
32568
+ * @memberof SharedApi
32569
+ */
32570
+ public getClusterStorageUsageHistory(requestParameters: SharedApiGetClusterStorageUsageHistoryRequest, options?: RawAxiosRequestConfig) {
32571
+ return SharedApiFp(this.configuration).getClusterStorageUsageHistory(requestParameters.orgName, requestParameters.clusterName, requestParameters.timeRange, options).then((request) => request(this.axios, this.basePath));
32572
+ }
32573
+
32447
32574
  /**
32448
32575
  *
32449
32576
  * @summary get the datasource
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud API
5
+ * 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.
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 ClusterStorageUsageHistoryPoint
21
+ */
22
+ export interface ClusterStorageUsageHistoryPoint {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof ClusterStorageUsageHistoryPoint
27
+ */
28
+ 'timestamp': string;
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof ClusterStorageUsageHistoryPoint
33
+ */
34
+ 'usedBytes': number;
35
+ /**
36
+ *
37
+ * @type {number}
38
+ * @memberof ClusterStorageUsageHistoryPoint
39
+ */
40
+ 'totalBytes': number;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof ClusterStorageUsageHistoryPoint
45
+ */
46
+ 'usageRatio': number;
47
+ }
48
+
@@ -0,0 +1,63 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud API
5
+ * 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.
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
+
@@ -172,6 +172,8 @@ export * from './cluster-slow-log-explain-response';
172
172
  export * from './cluster-slow-log-stats';
173
173
  export * from './cluster-slow-log-template';
174
174
  export * from './cluster-slow-log-template-list';
175
+ export * from './cluster-storage-usage-history';
176
+ export * from './cluster-storage-usage-history-point';
175
177
  export * from './cluster-tags';
176
178
  export * from './cluster-termination-policy';
177
179
  export * from './cluster-type';
@@ -563,10 +565,18 @@ export * from './phone-verification-request';
563
565
  export * from './platform-parameter';
564
566
  export * from './platform-parameter-constraints';
565
567
  export * from './platform-parameter-list';
568
+ export * from './postgresql-database-space';
566
569
  export * from './postgresql-deadlock-evidence';
570
+ export * from './postgresql-index-space';
567
571
  export * from './postgresql-lock-analysis';
568
572
  export * from './postgresql-lock-row';
569
573
  export * from './postgresql-session';
574
+ export * from './postgresql-space-analysis';
575
+ export * from './postgresql-space-source';
576
+ export * from './postgresql-space-summary';
577
+ export * from './postgresql-storage-overview';
578
+ export * from './postgresql-table-space';
579
+ export * from './postgresql-toast-relation-space';
570
580
  export * from './postgresql-wait-graph';
571
581
  export * from './postgresql-wait-graph-edge';
572
582
  export * from './postgresql-wait-graph-edge-evidence';
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud API
5
+ * 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.
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 PostgresqlDatabaseSpace
21
+ */
22
+ export interface PostgresqlDatabaseSpace {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof PostgresqlDatabaseSpace
27
+ */
28
+ 'name'?: string;
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof PostgresqlDatabaseSpace
33
+ */
34
+ 'sizeBytes'?: number;
35
+ }
36
+
@@ -0,0 +1,96 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud API
5
+ * 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.
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 PostgresqlIndexSpace
21
+ */
22
+ export interface PostgresqlIndexSpace {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof PostgresqlIndexSpace
27
+ */
28
+ 'database'?: string;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof PostgresqlIndexSpace
33
+ */
34
+ 'schema'?: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof PostgresqlIndexSpace
39
+ */
40
+ 'table'?: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof PostgresqlIndexSpace
45
+ */
46
+ 'name'?: string;
47
+ /**
48
+ *
49
+ * @type {number}
50
+ * @memberof PostgresqlIndexSpace
51
+ */
52
+ 'tableRelationOid'?: number;
53
+ /**
54
+ *
55
+ * @type {number}
56
+ * @memberof PostgresqlIndexSpace
57
+ */
58
+ 'relationOid'?: number;
59
+ /**
60
+ *
61
+ * @type {number}
62
+ * @memberof PostgresqlIndexSpace
63
+ */
64
+ 'sizeBytes'?: number;
65
+ /**
66
+ *
67
+ * @type {boolean}
68
+ * @memberof PostgresqlIndexSpace
69
+ */
70
+ 'isPrimary'?: boolean;
71
+ /**
72
+ *
73
+ * @type {boolean}
74
+ * @memberof PostgresqlIndexSpace
75
+ */
76
+ 'isUnique'?: boolean;
77
+ /**
78
+ *
79
+ * @type {number}
80
+ * @memberof PostgresqlIndexSpace
81
+ */
82
+ 'scanCount'?: number;
83
+ /**
84
+ *
85
+ * @type {number}
86
+ * @memberof PostgresqlIndexSpace
87
+ */
88
+ 'tuplesRead'?: number;
89
+ /**
90
+ *
91
+ * @type {number}
92
+ * @memberof PostgresqlIndexSpace
93
+ */
94
+ 'tuplesFetch'?: number;
95
+ }
96
+