kb-cloud-client-typescript 2.3.0-alpha.118 → 2.3.0-alpha.120
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adminapi/apis/cluster-api.d.ts +72 -0
- package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-api.js +79 -0
- package/dist/adminapi/apis/cluster-api.js.map +1 -1
- package/dist/adminapi/apis/diagnostics-api.d.ts +5 -5
- package/dist/adminapi/apis/diagnostics-api.js +4 -4
- package/dist/adminapi/apis/shared-api.d.ts +72 -0
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +79 -0
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts +43 -0
- package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts.map +1 -0
- package/dist/adminapi/models/{postgresql-space-pvc.js → cluster-storage-usage-history-point.js} +1 -1
- package/dist/adminapi/models/cluster-storage-usage-history-point.js.map +1 -0
- package/dist/adminapi/models/cluster-storage-usage-history.d.ts +56 -0
- package/dist/adminapi/models/cluster-storage-usage-history.d.ts.map +1 -0
- package/dist/adminapi/models/{postgresql-space-cannot-prove.js → cluster-storage-usage-history.js} +1 -1
- package/dist/adminapi/models/cluster-storage-usage-history.js.map +1 -0
- package/dist/adminapi/models/index.d.ts +3 -3
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +3 -3
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/postgresql-database-space.d.ts +0 -12
- package/dist/adminapi/models/postgresql-database-space.d.ts.map +1 -1
- package/dist/adminapi/models/postgresql-index-space.d.ts +0 -12
- package/dist/adminapi/models/postgresql-index-space.d.ts.map +1 -1
- package/dist/adminapi/models/postgresql-space-analysis.d.ts +3 -17
- package/dist/adminapi/models/postgresql-space-analysis.d.ts.map +1 -1
- package/dist/adminapi/models/postgresql-space-summary.d.ts +0 -12
- package/dist/adminapi/models/postgresql-space-summary.d.ts.map +1 -1
- package/dist/adminapi/models/postgresql-storage-overview.d.ts +55 -0
- package/dist/adminapi/models/postgresql-storage-overview.d.ts.map +1 -0
- package/dist/adminapi/models/{postgresql-space-risk-hint.js → postgresql-storage-overview.js} +1 -1
- package/dist/adminapi/models/postgresql-storage-overview.js.map +1 -0
- package/dist/adminapi/models/postgresql-table-space.d.ts +0 -12
- package/dist/adminapi/models/postgresql-table-space.d.ts.map +1 -1
- package/dist/adminapi/models/postgresql-toast-relation-space.d.ts +0 -12
- package/dist/adminapi/models/postgresql-toast-relation-space.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-api.d.ts +72 -0
- package/dist/openapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-api.js +79 -0
- package/dist/openapi/apis/cluster-api.js.map +1 -1
- package/dist/openapi/apis/diagnostics-api.d.ts +5 -5
- package/dist/openapi/apis/diagnostics-api.js +4 -4
- package/dist/openapi/apis/shared-api.d.ts +72 -0
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +79 -0
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/{postgresql-space-pvc.d.ts → cluster-storage-usage-history-point.d.ts} +16 -16
- package/dist/openapi/models/cluster-storage-usage-history-point.d.ts.map +1 -0
- package/dist/openapi/models/{postgresql-space-cannot-prove.js → cluster-storage-usage-history-point.js} +1 -1
- package/dist/openapi/models/cluster-storage-usage-history-point.js.map +1 -0
- package/dist/openapi/models/{postgresql-space-risk-hint.d.ts → cluster-storage-usage-history.d.ts} +23 -28
- package/dist/openapi/models/cluster-storage-usage-history.d.ts.map +1 -0
- package/dist/openapi/models/{postgresql-space-pvc.js → cluster-storage-usage-history.js} +1 -1
- package/dist/openapi/models/cluster-storage-usage-history.js.map +1 -0
- package/dist/openapi/models/index.d.ts +3 -3
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +3 -3
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/postgresql-database-space.d.ts +0 -12
- package/dist/openapi/models/postgresql-database-space.d.ts.map +1 -1
- package/dist/openapi/models/postgresql-index-space.d.ts +0 -12
- package/dist/openapi/models/postgresql-index-space.d.ts.map +1 -1
- package/dist/openapi/models/postgresql-space-analysis.d.ts +3 -17
- package/dist/openapi/models/postgresql-space-analysis.d.ts.map +1 -1
- package/dist/openapi/models/postgresql-space-summary.d.ts +0 -12
- package/dist/openapi/models/postgresql-space-summary.d.ts.map +1 -1
- package/dist/openapi/models/postgresql-storage-overview.d.ts +55 -0
- package/dist/openapi/models/postgresql-storage-overview.d.ts.map +1 -0
- package/dist/openapi/models/{postgresql-space-risk-hint.js → postgresql-storage-overview.js} +1 -1
- package/dist/openapi/models/postgresql-storage-overview.js.map +1 -0
- package/dist/openapi/models/postgresql-table-space.d.ts +0 -12
- package/dist/openapi/models/postgresql-table-space.d.ts.map +1 -1
- package/dist/openapi/models/postgresql-toast-relation-space.d.ts +0 -12
- package/dist/openapi/models/postgresql-toast-relation-space.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +3 -3
- package/src/adminapi/apis/cluster-api.ts +127 -0
- package/src/adminapi/apis/diagnostics-api.ts +5 -5
- package/src/adminapi/apis/shared-api.ts +127 -0
- package/src/adminapi/models/{postgresql-space-pvc.ts → cluster-storage-usage-history-point.ts} +15 -15
- package/src/adminapi/models/cluster-storage-usage-history.ts +63 -0
- package/src/adminapi/models/index.ts +3 -3
- package/src/adminapi/models/postgresql-database-space.ts +0 -12
- package/src/adminapi/models/postgresql-index-space.ts +0 -12
- package/src/adminapi/models/postgresql-space-analysis.ts +5 -23
- package/src/adminapi/models/postgresql-space-summary.ts +0 -12
- package/src/adminapi/models/postgresql-storage-overview.ts +60 -0
- package/src/adminapi/models/postgresql-table-space.ts +0 -12
- package/src/adminapi/models/postgresql-toast-relation-space.ts +0 -12
- package/src/adminapi.yaml +112 -94
- package/src/openapi/.openapi-generator/FILES +3 -3
- package/src/openapi/apis/cluster-api.ts +127 -0
- package/src/openapi/apis/diagnostics-api.ts +5 -5
- package/src/openapi/apis/shared-api.ts +127 -0
- package/src/openapi/models/{postgresql-space-pvc.ts → cluster-storage-usage-history-point.ts} +15 -15
- package/src/openapi/models/cluster-storage-usage-history.ts +63 -0
- package/src/openapi/models/index.ts +3 -3
- package/src/openapi/models/postgresql-database-space.ts +0 -12
- package/src/openapi/models/postgresql-index-space.ts +0 -12
- package/src/openapi/models/postgresql-space-analysis.ts +5 -23
- package/src/openapi/models/postgresql-space-summary.ts +0 -12
- package/src/openapi/models/{postgresql-space-risk-hint.ts → postgresql-storage-overview.ts} +23 -29
- package/src/openapi/models/postgresql-table-space.ts +0 -12
- package/src/openapi/models/postgresql-toast-relation-space.ts +0 -12
- package/src/openapi.yaml +112 -94
- package/dist/adminapi/models/postgresql-space-cannot-prove.d.ts +0 -43
- package/dist/adminapi/models/postgresql-space-cannot-prove.d.ts.map +0 -1
- package/dist/adminapi/models/postgresql-space-cannot-prove.js.map +0 -1
- package/dist/adminapi/models/postgresql-space-pvc.d.ts +0 -43
- package/dist/adminapi/models/postgresql-space-pvc.d.ts.map +0 -1
- package/dist/adminapi/models/postgresql-space-pvc.js.map +0 -1
- package/dist/adminapi/models/postgresql-space-risk-hint.d.ts +0 -61
- package/dist/adminapi/models/postgresql-space-risk-hint.d.ts.map +0 -1
- package/dist/adminapi/models/postgresql-space-risk-hint.js.map +0 -1
- package/dist/openapi/models/postgresql-space-cannot-prove.d.ts +0 -43
- package/dist/openapi/models/postgresql-space-cannot-prove.d.ts.map +0 -1
- package/dist/openapi/models/postgresql-space-cannot-prove.js.map +0 -1
- package/dist/openapi/models/postgresql-space-pvc.d.ts.map +0 -1
- package/dist/openapi/models/postgresql-space-pvc.js.map +0 -1
- package/dist/openapi/models/postgresql-space-risk-hint.d.ts.map +0 -1
- package/dist/openapi/models/postgresql-space-risk-hint.js.map +0 -1
- package/src/adminapi/models/postgresql-space-cannot-prove.ts +0 -48
- package/src/adminapi/models/postgresql-space-risk-hint.ts +0 -66
- package/src/openapi/models/postgresql-space-cannot-prove.ts +0 -48
|
@@ -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
|
package/src/openapi/models/{postgresql-space-pvc.ts → cluster-storage-usage-history-point.ts}
RENAMED
|
@@ -17,32 +17,32 @@
|
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
19
|
* @export
|
|
20
|
-
* @interface
|
|
20
|
+
* @interface ClusterStorageUsageHistoryPoint
|
|
21
21
|
*/
|
|
22
|
-
export interface
|
|
22
|
+
export interface ClusterStorageUsageHistoryPoint {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
25
|
-
* @type {
|
|
26
|
-
* @memberof
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof ClusterStorageUsageHistoryPoint
|
|
27
27
|
*/
|
|
28
|
-
'
|
|
28
|
+
'timestamp': string;
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
|
-
* @type {
|
|
32
|
-
* @memberof
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof ClusterStorageUsageHistoryPoint
|
|
33
33
|
*/
|
|
34
|
-
'
|
|
34
|
+
'usedBytes': number;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @type {
|
|
38
|
-
* @memberof
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof ClusterStorageUsageHistoryPoint
|
|
39
39
|
*/
|
|
40
|
-
'
|
|
40
|
+
'totalBytes': number;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {
|
|
44
|
-
* @memberof
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof ClusterStorageUsageHistoryPoint
|
|
45
45
|
*/
|
|
46
|
-
'
|
|
46
|
+
'usageRatio': number;
|
|
47
47
|
}
|
|
48
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';
|
|
@@ -570,11 +572,9 @@ export * from './postgresql-lock-analysis';
|
|
|
570
572
|
export * from './postgresql-lock-row';
|
|
571
573
|
export * from './postgresql-session';
|
|
572
574
|
export * from './postgresql-space-analysis';
|
|
573
|
-
export * from './postgresql-space-cannot-prove';
|
|
574
|
-
export * from './postgresql-space-pvc';
|
|
575
|
-
export * from './postgresql-space-risk-hint';
|
|
576
575
|
export * from './postgresql-space-source';
|
|
577
576
|
export * from './postgresql-space-summary';
|
|
577
|
+
export * from './postgresql-storage-overview';
|
|
578
578
|
export * from './postgresql-table-space';
|
|
579
579
|
export * from './postgresql-toast-relation-space';
|
|
580
580
|
export * from './postgresql-wait-graph';
|
|
@@ -32,17 +32,5 @@ export interface PostgresqlDatabaseSpace {
|
|
|
32
32
|
* @memberof PostgresqlDatabaseSpace
|
|
33
33
|
*/
|
|
34
34
|
'sizeBytes'?: number;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {boolean}
|
|
38
|
-
* @memberof PostgresqlDatabaseSpace
|
|
39
|
-
*/
|
|
40
|
-
'noHistoryYet': boolean;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @type {boolean}
|
|
44
|
-
* @memberof PostgresqlDatabaseSpace
|
|
45
|
-
*/
|
|
46
|
-
'cannotProveGrowth': boolean;
|
|
47
35
|
}
|
|
48
36
|
|
|
@@ -92,17 +92,5 @@ export interface PostgresqlIndexSpace {
|
|
|
92
92
|
* @memberof PostgresqlIndexSpace
|
|
93
93
|
*/
|
|
94
94
|
'tuplesFetch'?: number;
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @type {boolean}
|
|
98
|
-
* @memberof PostgresqlIndexSpace
|
|
99
|
-
*/
|
|
100
|
-
'noHistoryYet': boolean;
|
|
101
|
-
/**
|
|
102
|
-
*
|
|
103
|
-
* @type {boolean}
|
|
104
|
-
* @memberof PostgresqlIndexSpace
|
|
105
|
-
*/
|
|
106
|
-
'cannotProveGrowth': boolean;
|
|
107
95
|
}
|
|
108
96
|
|
|
@@ -21,21 +21,15 @@ import type { PostgresqlDatabaseSpace } from './postgresql-database-space';
|
|
|
21
21
|
import type { PostgresqlIndexSpace } from './postgresql-index-space';
|
|
22
22
|
// May contain unused imports in some cases
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import type { PostgresqlSpaceCannotProve } from './postgresql-space-cannot-prove';
|
|
25
|
-
// May contain unused imports in some cases
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
import type { PostgresqlSpacePVC } from './postgresql-space-pvc';
|
|
28
|
-
// May contain unused imports in some cases
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import type { PostgresqlSpaceRiskHint } from './postgresql-space-risk-hint';
|
|
31
|
-
// May contain unused imports in some cases
|
|
32
|
-
// @ts-ignore
|
|
33
24
|
import type { PostgresqlSpaceSource } from './postgresql-space-source';
|
|
34
25
|
// May contain unused imports in some cases
|
|
35
26
|
// @ts-ignore
|
|
36
27
|
import type { PostgresqlSpaceSummary } from './postgresql-space-summary';
|
|
37
28
|
// May contain unused imports in some cases
|
|
38
29
|
// @ts-ignore
|
|
30
|
+
import type { PostgresqlStorageOverview } from './postgresql-storage-overview';
|
|
31
|
+
// May contain unused imports in some cases
|
|
32
|
+
// @ts-ignore
|
|
39
33
|
import type { PostgresqlTableSpace } from './postgresql-table-space';
|
|
40
34
|
// May contain unused imports in some cases
|
|
41
35
|
// @ts-ignore
|
|
@@ -55,10 +49,10 @@ export interface PostgresqlSpaceAnalysis {
|
|
|
55
49
|
'summary': PostgresqlSpaceSummary;
|
|
56
50
|
/**
|
|
57
51
|
*
|
|
58
|
-
* @type {
|
|
52
|
+
* @type {PostgresqlStorageOverview}
|
|
59
53
|
* @memberof PostgresqlSpaceAnalysis
|
|
60
54
|
*/
|
|
61
|
-
'
|
|
55
|
+
'storageOverview': PostgresqlStorageOverview;
|
|
62
56
|
/**
|
|
63
57
|
*
|
|
64
58
|
* @type {Array<PostgresqlDatabaseSpace>}
|
|
@@ -83,18 +77,6 @@ export interface PostgresqlSpaceAnalysis {
|
|
|
83
77
|
* @memberof PostgresqlSpaceAnalysis
|
|
84
78
|
*/
|
|
85
79
|
'toastRelations': Array<PostgresqlToastRelationSpace>;
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @type {Array<PostgresqlSpaceRiskHint>}
|
|
89
|
-
* @memberof PostgresqlSpaceAnalysis
|
|
90
|
-
*/
|
|
91
|
-
'riskHints': Array<PostgresqlSpaceRiskHint>;
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @type {PostgresqlSpaceCannotProve}
|
|
95
|
-
* @memberof PostgresqlSpaceAnalysis
|
|
96
|
-
*/
|
|
97
|
-
'cannotProve': PostgresqlSpaceCannotProve;
|
|
98
80
|
/**
|
|
99
81
|
*
|
|
100
82
|
* @type {Array<PostgresqlSpaceSource>}
|
|
@@ -74,17 +74,5 @@ export interface PostgresqlSpaceSummary {
|
|
|
74
74
|
* @memberof PostgresqlSpaceSummary
|
|
75
75
|
*/
|
|
76
76
|
'indexListTruncated': boolean;
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
* @type {boolean}
|
|
80
|
-
* @memberof PostgresqlSpaceSummary
|
|
81
|
-
*/
|
|
82
|
-
'noHistoryYet': boolean;
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* @type {boolean}
|
|
86
|
-
* @memberof PostgresqlSpaceSummary
|
|
87
|
-
*/
|
|
88
|
-
'cannotProveGrowth': boolean;
|
|
89
77
|
}
|
|
90
78
|
|
|
@@ -17,50 +17,44 @@
|
|
|
17
17
|
/**
|
|
18
18
|
*
|
|
19
19
|
* @export
|
|
20
|
-
* @interface
|
|
20
|
+
* @interface PostgresqlStorageOverview
|
|
21
21
|
*/
|
|
22
|
-
export interface
|
|
22
|
+
export interface PostgresqlStorageOverview {
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
25
|
-
* @type {
|
|
26
|
-
* @memberof
|
|
24
|
+
* Current total PVC capacity in bytes when backend-owned metrics are available.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof PostgresqlStorageOverview
|
|
27
27
|
*/
|
|
28
|
-
'
|
|
28
|
+
'totalBytes'?: number;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
* @type {
|
|
32
|
-
* @memberof
|
|
30
|
+
* Current PVC used bytes when backend-owned metrics are available.
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof PostgresqlStorageOverview
|
|
33
33
|
*/
|
|
34
|
-
'
|
|
34
|
+
'usedBytes'?: number;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
37
|
-
* @type {
|
|
38
|
-
* @memberof
|
|
36
|
+
* Current available PVC bytes derived from totalBytes - usedBytes when both values are available.
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof PostgresqlStorageOverview
|
|
39
39
|
*/
|
|
40
|
-
'
|
|
40
|
+
'availableBytes'?: number;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
43
|
-
* @type {
|
|
44
|
-
* @memberof
|
|
45
|
-
*/
|
|
46
|
-
'objectKind'?: string;
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* @type {string}
|
|
50
|
-
* @memberof PostgresqlSpaceRiskHint
|
|
42
|
+
* Current usedBytes / totalBytes ratio when both values are available.
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof PostgresqlStorageOverview
|
|
51
45
|
*/
|
|
52
|
-
'
|
|
46
|
+
'usageRatio'?: number;
|
|
53
47
|
/**
|
|
54
|
-
*
|
|
48
|
+
* Metrics collection timestamp in UTC.
|
|
55
49
|
* @type {string}
|
|
56
|
-
* @memberof
|
|
50
|
+
* @memberof PostgresqlStorageOverview
|
|
57
51
|
*/
|
|
58
|
-
'
|
|
52
|
+
'updatedAt'?: string;
|
|
59
53
|
/**
|
|
60
54
|
*
|
|
61
55
|
* @type {string}
|
|
62
|
-
* @memberof
|
|
56
|
+
* @memberof PostgresqlStorageOverview
|
|
63
57
|
*/
|
|
64
|
-
'
|
|
58
|
+
'source': string;
|
|
65
59
|
}
|
|
66
60
|
|
|
@@ -122,17 +122,5 @@ export interface PostgresqlTableSpace {
|
|
|
122
122
|
* @memberof PostgresqlTableSpace
|
|
123
123
|
*/
|
|
124
124
|
'lastAutoAnalyze'?: string;
|
|
125
|
-
/**
|
|
126
|
-
*
|
|
127
|
-
* @type {boolean}
|
|
128
|
-
* @memberof PostgresqlTableSpace
|
|
129
|
-
*/
|
|
130
|
-
'noHistoryYet': boolean;
|
|
131
|
-
/**
|
|
132
|
-
*
|
|
133
|
-
* @type {boolean}
|
|
134
|
-
* @memberof PostgresqlTableSpace
|
|
135
|
-
*/
|
|
136
|
-
'cannotProveGrowth': boolean;
|
|
137
125
|
}
|
|
138
126
|
|
|
@@ -56,17 +56,5 @@ export interface PostgresqlToastRelationSpace {
|
|
|
56
56
|
* @memberof PostgresqlToastRelationSpace
|
|
57
57
|
*/
|
|
58
58
|
'toastBytes'?: number;
|
|
59
|
-
/**
|
|
60
|
-
*
|
|
61
|
-
* @type {boolean}
|
|
62
|
-
* @memberof PostgresqlToastRelationSpace
|
|
63
|
-
*/
|
|
64
|
-
'noHistoryYet': boolean;
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {boolean}
|
|
68
|
-
* @memberof PostgresqlToastRelationSpace
|
|
69
|
-
*/
|
|
70
|
-
'cannotProveGrowth': boolean;
|
|
71
59
|
}
|
|
72
60
|
|