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.
- package/dist/adminapi/apis/diagnostics-api.d.ts +10 -2
- package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/adminapi/apis/diagnostics-api.js +10 -5
- package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
- package/dist/adminapi/models/cluster-storage-usage-history-instance.d.ts +56 -0
- package/dist/adminapi/models/cluster-storage-usage-history-instance.d.ts.map +1 -0
- package/dist/adminapi/models/cluster-storage-usage-history-instance.js +16 -0
- package/dist/adminapi/models/cluster-storage-usage-history-instance.js.map +1 -0
- package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts +6 -0
- package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts.map +1 -1
- package/dist/adminapi/models/cluster-storage-usage-history.d.ts +4 -4
- package/dist/adminapi/models/cluster-storage-usage-history.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +2 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +2 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/postgresql-space-analysis.d.ts +10 -4
- package/dist/adminapi/models/postgresql-space-analysis.d.ts.map +1 -1
- package/dist/adminapi/models/postgresql-storage-instance-usage.d.ts +79 -0
- package/dist/adminapi/models/postgresql-storage-instance-usage.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-storage-instance-usage.js +16 -0
- package/dist/adminapi/models/postgresql-storage-instance-usage.js.map +1 -0
- package/dist/adminapi/models/postgresql-storage-overview.d.ts +6 -29
- package/dist/adminapi/models/postgresql-storage-overview.d.ts.map +1 -1
- package/dist/openapi/apis/diagnostics-api.d.ts +10 -2
- package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/openapi/apis/diagnostics-api.js +10 -5
- package/dist/openapi/apis/diagnostics-api.js.map +1 -1
- package/dist/openapi/models/cluster-storage-usage-history-instance.d.ts +56 -0
- package/dist/openapi/models/cluster-storage-usage-history-instance.d.ts.map +1 -0
- package/dist/openapi/models/cluster-storage-usage-history-instance.js +16 -0
- package/dist/openapi/models/cluster-storage-usage-history-instance.js.map +1 -0
- package/dist/openapi/models/cluster-storage-usage-history-point.d.ts +6 -0
- package/dist/openapi/models/cluster-storage-usage-history-point.d.ts.map +1 -1
- package/dist/openapi/models/cluster-storage-usage-history.d.ts +4 -4
- package/dist/openapi/models/cluster-storage-usage-history.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +2 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +2 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/postgresql-space-analysis.d.ts +10 -4
- package/dist/openapi/models/postgresql-space-analysis.d.ts.map +1 -1
- package/dist/openapi/models/postgresql-storage-instance-usage.d.ts +79 -0
- package/dist/openapi/models/postgresql-storage-instance-usage.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-storage-instance-usage.js +16 -0
- package/dist/openapi/models/postgresql-storage-instance-usage.js.map +1 -0
- package/dist/openapi/models/postgresql-storage-overview.d.ts +6 -29
- package/dist/openapi/models/postgresql-storage-overview.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +2 -0
- package/src/adminapi/apis/diagnostics-api.ts +18 -5
- package/src/adminapi/models/cluster-storage-usage-history-instance.ts +63 -0
- package/src/adminapi/models/cluster-storage-usage-history-point.ts +6 -0
- package/src/adminapi/models/cluster-storage-usage-history.ts +4 -4
- package/src/adminapi/models/index.ts +2 -0
- package/src/adminapi/models/postgresql-space-analysis.ts +10 -4
- package/src/adminapi/models/postgresql-storage-instance-usage.ts +84 -0
- package/src/adminapi/models/postgresql-storage-overview.ts +8 -29
- package/src/adminapi.yaml +78 -11
- package/src/openapi/.openapi-generator/FILES +2 -0
- package/src/openapi/apis/diagnostics-api.ts +18 -5
- package/src/openapi/models/cluster-storage-usage-history-instance.ts +63 -0
- package/src/openapi/models/cluster-storage-usage-history-point.ts +6 -0
- package/src/openapi/models/cluster-storage-usage-history.ts +4 -4
- package/src/openapi/models/index.ts +2 -0
- package/src/openapi/models/postgresql-space-analysis.ts +10 -4
- package/src/openapi/models/postgresql-storage-instance-usage.ts +84 -0
- package/src/openapi/models/postgresql-storage-overview.ts +8 -29
- package/src/openapi.yaml +78 -11
package/src/adminapi.yaml
CHANGED
|
@@ -19144,6 +19144,12 @@ paths:
|
|
|
19144
19144
|
required: true
|
|
19145
19145
|
schema:
|
|
19146
19146
|
type: string
|
|
19147
|
+
- name: databaseName
|
|
19148
|
+
in: query
|
|
19149
|
+
description: Optional database name for selected table, index, and TOAST details. When omitted, the backend selects the largest connectable non-template database.
|
|
19150
|
+
required: false
|
|
19151
|
+
schema:
|
|
19152
|
+
type: string
|
|
19147
19153
|
responses:
|
|
19148
19154
|
'200':
|
|
19149
19155
|
description: OK
|
|
@@ -19157,6 +19163,8 @@ paths:
|
|
|
19157
19163
|
$ref: '#/components/responses/401'
|
|
19158
19164
|
'403':
|
|
19159
19165
|
$ref: '#/components/responses/403'
|
|
19166
|
+
'404':
|
|
19167
|
+
$ref: '#/components/responses/404'
|
|
19160
19168
|
'500':
|
|
19161
19169
|
$ref: '#/components/responses/500'
|
|
19162
19170
|
/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions/{pid}/lockAnalysis:
|
|
@@ -23662,6 +23670,7 @@ components:
|
|
|
23662
23670
|
- timestamp
|
|
23663
23671
|
- usedBytes
|
|
23664
23672
|
- totalBytes
|
|
23673
|
+
- availableBytes
|
|
23665
23674
|
- usageRatio
|
|
23666
23675
|
properties:
|
|
23667
23676
|
timestamp:
|
|
@@ -23672,17 +23681,43 @@ components:
|
|
|
23672
23681
|
totalBytes:
|
|
23673
23682
|
type: integer
|
|
23674
23683
|
format: int64
|
|
23684
|
+
availableBytes:
|
|
23685
|
+
type: integer
|
|
23686
|
+
format: int64
|
|
23675
23687
|
usageRatio:
|
|
23676
23688
|
type: number
|
|
23677
23689
|
format: double
|
|
23690
|
+
clusterStorageUsageHistoryInstance:
|
|
23691
|
+
type: object
|
|
23692
|
+
required:
|
|
23693
|
+
- points
|
|
23694
|
+
properties:
|
|
23695
|
+
instanceName:
|
|
23696
|
+
type: string
|
|
23697
|
+
description: Kubernetes pod name for this storage usage series.
|
|
23698
|
+
pvcName:
|
|
23699
|
+
type: string
|
|
23700
|
+
description: PersistentVolumeClaim name when it can be read from metrics labels.
|
|
23701
|
+
role:
|
|
23702
|
+
type: string
|
|
23703
|
+
description: Raw database replica role value read from metrics labels, kept aligned with instance detail display.
|
|
23704
|
+
componentName:
|
|
23705
|
+
type: string
|
|
23706
|
+
description: Optional KubeBlocks component name when it can be read from metrics labels.
|
|
23707
|
+
points:
|
|
23708
|
+
type: array
|
|
23709
|
+
items:
|
|
23710
|
+
$ref: '#/components/schemas/clusterStorageUsageHistoryPoint'
|
|
23711
|
+
source:
|
|
23712
|
+
type: string
|
|
23678
23713
|
clusterStorageUsageHistory:
|
|
23679
23714
|
type: object
|
|
23680
|
-
description:
|
|
23715
|
+
description: Per-instance cluster storage usage history collected from backend-owned fixed metrics.
|
|
23681
23716
|
required:
|
|
23682
23717
|
- timeRange
|
|
23683
23718
|
- start
|
|
23684
23719
|
- end
|
|
23685
|
-
-
|
|
23720
|
+
- instances
|
|
23686
23721
|
- source
|
|
23687
23722
|
- collectedAt
|
|
23688
23723
|
properties:
|
|
@@ -23695,10 +23730,10 @@ components:
|
|
|
23695
23730
|
end:
|
|
23696
23731
|
type: string
|
|
23697
23732
|
description: History query end timestamp in UTC.
|
|
23698
|
-
|
|
23733
|
+
instances:
|
|
23699
23734
|
type: array
|
|
23700
23735
|
items:
|
|
23701
|
-
$ref: '#/components/schemas/
|
|
23736
|
+
$ref: '#/components/schemas/clusterStorageUsageHistoryInstance'
|
|
23702
23737
|
source:
|
|
23703
23738
|
type: string
|
|
23704
23739
|
description: Metrics source used to build the history.
|
|
@@ -35781,32 +35816,56 @@ components:
|
|
|
35781
35816
|
type: boolean
|
|
35782
35817
|
indexListTruncated:
|
|
35783
35818
|
type: boolean
|
|
35784
|
-
|
|
35819
|
+
postgresqlStorageInstanceUsage:
|
|
35785
35820
|
type: object
|
|
35786
|
-
required:
|
|
35787
|
-
- source
|
|
35788
35821
|
properties:
|
|
35822
|
+
instanceName:
|
|
35823
|
+
type: string
|
|
35824
|
+
description: Kubernetes pod name for this PostgreSQL replica storage sample.
|
|
35825
|
+
pvcName:
|
|
35826
|
+
type: string
|
|
35827
|
+
description: PersistentVolumeClaim name when it can be read from metrics labels.
|
|
35828
|
+
role:
|
|
35829
|
+
type: string
|
|
35830
|
+
description: Raw PostgreSQL replica role value read from metrics labels, kept aligned with instance detail display.
|
|
35831
|
+
componentName:
|
|
35832
|
+
type: string
|
|
35833
|
+
description: Optional KubeBlocks component name when it can be read from metrics labels.
|
|
35789
35834
|
totalBytes:
|
|
35790
35835
|
type: integer
|
|
35791
35836
|
format: int64
|
|
35792
|
-
description:
|
|
35837
|
+
description: Physical PVC capacity in bytes for this replica storage sample.
|
|
35793
35838
|
usedBytes:
|
|
35794
35839
|
type: integer
|
|
35795
35840
|
format: int64
|
|
35796
|
-
description:
|
|
35841
|
+
description: Physical PVC used bytes for this replica storage sample.
|
|
35797
35842
|
availableBytes:
|
|
35798
35843
|
type: integer
|
|
35799
35844
|
format: int64
|
|
35800
|
-
description:
|
|
35845
|
+
description: Available bytes derived from totalBytes - usedBytes when both values are available.
|
|
35801
35846
|
usageRatio:
|
|
35802
35847
|
type: number
|
|
35803
35848
|
format: double
|
|
35804
|
-
|
|
35849
|
+
nullable: true
|
|
35850
|
+
description: usedBytes / totalBytes for this replica storage sample when both values are available.
|
|
35805
35851
|
updatedAt:
|
|
35806
35852
|
type: string
|
|
35807
35853
|
description: Metrics collection timestamp in UTC.
|
|
35808
35854
|
source:
|
|
35809
35855
|
type: string
|
|
35856
|
+
postgresqlStorageOverview:
|
|
35857
|
+
type: object
|
|
35858
|
+
required:
|
|
35859
|
+
- source
|
|
35860
|
+
- instances
|
|
35861
|
+
properties:
|
|
35862
|
+
source:
|
|
35863
|
+
type: string
|
|
35864
|
+
instances:
|
|
35865
|
+
type: array
|
|
35866
|
+
description: Physical PostgreSQL replica storage usage split by pod/PVC/role.
|
|
35867
|
+
items:
|
|
35868
|
+
$ref: '#/components/schemas/postgresqlStorageInstanceUsage'
|
|
35810
35869
|
postgresqlDatabaseSpace:
|
|
35811
35870
|
type: object
|
|
35812
35871
|
properties:
|
|
@@ -35937,6 +35996,7 @@ components:
|
|
|
35937
35996
|
- summary
|
|
35938
35997
|
- storageOverview
|
|
35939
35998
|
- databases
|
|
35999
|
+
- selectedDatabase
|
|
35940
36000
|
- tables
|
|
35941
36001
|
- indexes
|
|
35942
36002
|
- toastRelations
|
|
@@ -35949,18 +36009,25 @@ components:
|
|
|
35949
36009
|
$ref: '#/components/schemas/postgresqlStorageOverview'
|
|
35950
36010
|
databases:
|
|
35951
36011
|
type: array
|
|
36012
|
+
description: Sizes of all connectable non-template databases in the PostgreSQL instance.
|
|
35952
36013
|
items:
|
|
35953
36014
|
$ref: '#/components/schemas/postgresqlDatabaseSpace'
|
|
36015
|
+
selectedDatabase:
|
|
36016
|
+
type: string
|
|
36017
|
+
description: Database used for tables, indexes, and toastRelations in this response.
|
|
35954
36018
|
tables:
|
|
35955
36019
|
type: array
|
|
36020
|
+
description: Top tables from selectedDatabase.
|
|
35956
36021
|
items:
|
|
35957
36022
|
$ref: '#/components/schemas/postgresqlTableSpace'
|
|
35958
36023
|
indexes:
|
|
35959
36024
|
type: array
|
|
36025
|
+
description: Top indexes from selectedDatabase.
|
|
35960
36026
|
items:
|
|
35961
36027
|
$ref: '#/components/schemas/postgresqlIndexSpace'
|
|
35962
36028
|
toastRelations:
|
|
35963
36029
|
type: array
|
|
36030
|
+
description: Toast relations derived from selectedDatabase table space data.
|
|
35964
36031
|
items:
|
|
35965
36032
|
$ref: '#/components/schemas/postgresqlToastRelationSpace'
|
|
35966
36033
|
sources:
|
|
@@ -256,6 +256,7 @@ models/cluster-slow-log-explain-response.ts
|
|
|
256
256
|
models/cluster-slow-log-stats.ts
|
|
257
257
|
models/cluster-slow-log-template-list.ts
|
|
258
258
|
models/cluster-slow-log-template.ts
|
|
259
|
+
models/cluster-storage-usage-history-instance.ts
|
|
259
260
|
models/cluster-storage-usage-history-point.ts
|
|
260
261
|
models/cluster-storage-usage-history.ts
|
|
261
262
|
models/cluster-tags.ts
|
|
@@ -665,6 +666,7 @@ models/postgresql-session.ts
|
|
|
665
666
|
models/postgresql-space-analysis.ts
|
|
666
667
|
models/postgresql-space-source.ts
|
|
667
668
|
models/postgresql-space-summary.ts
|
|
669
|
+
models/postgresql-storage-instance-usage.ts
|
|
668
670
|
models/postgresql-storage-overview.ts
|
|
669
671
|
models/postgresql-table-space.ts
|
|
670
672
|
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
|
+
* 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
|
+
*
|
|
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 {
|
|
18
|
+
import type { ClusterStorageUsageHistoryInstance } from './cluster-storage-usage-history-instance';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
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<
|
|
46
|
+
* @type {Array<ClusterStorageUsageHistoryInstance>}
|
|
47
47
|
* @memberof ClusterStorageUsageHistory
|
|
48
48
|
*/
|
|
49
|
-
'
|
|
49
|
+
'instances': Array<ClusterStorageUsageHistoryInstance>;
|
|
50
50
|
/**
|
|
51
51
|
* Metrics source used to build the history.
|
|
52
52
|
* @type {string}
|
|
@@ -173,6 +173,7 @@ export * from './cluster-slow-log-stats';
|
|
|
173
173
|
export * from './cluster-slow-log-template';
|
|
174
174
|
export * from './cluster-slow-log-template-list';
|
|
175
175
|
export * from './cluster-storage-usage-history';
|
|
176
|
+
export * from './cluster-storage-usage-history-instance';
|
|
176
177
|
export * from './cluster-storage-usage-history-point';
|
|
177
178
|
export * from './cluster-tags';
|
|
178
179
|
export * from './cluster-termination-policy';
|
|
@@ -578,6 +579,7 @@ export * from './postgresql-session';
|
|
|
578
579
|
export * from './postgresql-space-analysis';
|
|
579
580
|
export * from './postgresql-space-source';
|
|
580
581
|
export * from './postgresql-space-summary';
|
|
582
|
+
export * from './postgresql-storage-instance-usage';
|
|
581
583
|
export * from './postgresql-storage-overview';
|
|
582
584
|
export * from './postgresql-table-space';
|
|
583
585
|
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
|
+
* 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 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
|
-
*
|
|
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
|
-
'
|
|
31
|
+
'source': string;
|
|
53
32
|
/**
|
|
54
|
-
*
|
|
55
|
-
* @type {
|
|
33
|
+
* Physical PostgreSQL replica storage usage split by pod/PVC/role.
|
|
34
|
+
* @type {Array<PostgresqlStorageInstanceUsage>}
|
|
56
35
|
* @memberof PostgresqlStorageOverview
|
|
57
36
|
*/
|
|
58
|
-
'
|
|
37
|
+
'instances': Array<PostgresqlStorageInstanceUsage>;
|
|
59
38
|
}
|
|
60
39
|
|