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