qovery-typescript-axios 1.1.848 → 1.1.850
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/api.ts +134 -0
- package/dist/api.d.ts +88 -0
- package/dist/api.js +78 -0
- package/dist/esm/api.d.ts +88 -0
- package/dist/esm/api.js +78 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -7616,6 +7616,44 @@ export interface DeployRequest {
|
|
|
7616
7616
|
*/
|
|
7617
7617
|
'git_commit_id': string;
|
|
7618
7618
|
}
|
|
7619
|
+
/**
|
|
7620
|
+
*
|
|
7621
|
+
* @export
|
|
7622
|
+
* @interface DeploymentBuildUsageReportRequest
|
|
7623
|
+
*/
|
|
7624
|
+
export interface DeploymentBuildUsageReportRequest {
|
|
7625
|
+
/**
|
|
7626
|
+
* The deployment execution ID (format environment_id-version)
|
|
7627
|
+
* @type {string}
|
|
7628
|
+
* @memberof DeploymentBuildUsageReportRequest
|
|
7629
|
+
*/
|
|
7630
|
+
'execution_id': string;
|
|
7631
|
+
/**
|
|
7632
|
+
* The number of seconds the report will be publicly available
|
|
7633
|
+
* @type {number}
|
|
7634
|
+
* @memberof DeploymentBuildUsageReportRequest
|
|
7635
|
+
*/
|
|
7636
|
+
'report_expiration_in_seconds': number;
|
|
7637
|
+
}
|
|
7638
|
+
/**
|
|
7639
|
+
*
|
|
7640
|
+
* @export
|
|
7641
|
+
* @interface DeploymentBuildUsageReportResponse
|
|
7642
|
+
*/
|
|
7643
|
+
export interface DeploymentBuildUsageReportResponse {
|
|
7644
|
+
/**
|
|
7645
|
+
* The publicly accessible URL of the Grafana snapshot report showing build pod resource usage
|
|
7646
|
+
* @type {string}
|
|
7647
|
+
* @memberof DeploymentBuildUsageReportResponse
|
|
7648
|
+
*/
|
|
7649
|
+
'report_url'?: string;
|
|
7650
|
+
/**
|
|
7651
|
+
* The URL to pro-actively delete the report before it expires
|
|
7652
|
+
* @type {string}
|
|
7653
|
+
* @memberof DeploymentBuildUsageReportResponse
|
|
7654
|
+
*/
|
|
7655
|
+
'delete_report_url'?: string;
|
|
7656
|
+
}
|
|
7619
7657
|
/**
|
|
7620
7658
|
*
|
|
7621
7659
|
* @export
|
|
@@ -8315,6 +8353,12 @@ export interface DeploymentHistoryServiceDetailsOneOf {
|
|
|
8315
8353
|
* @memberof DeploymentHistoryServiceDetailsOneOf
|
|
8316
8354
|
*/
|
|
8317
8355
|
'commit': Commit | null;
|
|
8356
|
+
/**
|
|
8357
|
+
* The build pod name prefix for monitoring build runner usage. Format build-{execution_id}-0
|
|
8358
|
+
* @type {string}
|
|
8359
|
+
* @memberof DeploymentHistoryServiceDetailsOneOf
|
|
8360
|
+
*/
|
|
8361
|
+
'build_pod_name': string;
|
|
8318
8362
|
}
|
|
8319
8363
|
/**
|
|
8320
8364
|
* ContainerDeploymentHistoryData
|
|
@@ -8383,6 +8427,12 @@ export interface DeploymentHistoryServiceDetailsOneOf2 {
|
|
|
8383
8427
|
* @memberof DeploymentHistoryServiceDetailsOneOf2
|
|
8384
8428
|
*/
|
|
8385
8429
|
'job_type': DeploymentHistoryServiceDetailsOneOf2JobTypeEnum;
|
|
8430
|
+
/**
|
|
8431
|
+
* The build pod name prefix. Only set for jobs with a git source (Docker build). Null for container-source jobs.
|
|
8432
|
+
* @type {string}
|
|
8433
|
+
* @memberof DeploymentHistoryServiceDetailsOneOf2
|
|
8434
|
+
*/
|
|
8435
|
+
'build_pod_name'?: string | null;
|
|
8386
8436
|
}
|
|
8387
8437
|
|
|
8388
8438
|
export const DeploymentHistoryServiceDetailsOneOf2JobTypeEnum = {
|
|
@@ -19910,6 +19960,7 @@ export const StateEnum = {
|
|
|
19910
19960
|
STOPPING: 'STOPPING',
|
|
19911
19961
|
STOP_ERROR: 'STOP_ERROR',
|
|
19912
19962
|
STOP_QUEUED: 'STOP_QUEUED',
|
|
19963
|
+
UNAVAILABLE: 'UNAVAILABLE',
|
|
19913
19964
|
WAITING_DELETING: 'WAITING_DELETING',
|
|
19914
19965
|
WAITING_RESTARTING: 'WAITING_RESTARTING',
|
|
19915
19966
|
WAITING_RUNNING: 'WAITING_RUNNING',
|
|
@@ -44186,6 +44237,51 @@ export class EnvironmentActionsApi extends BaseAPI {
|
|
|
44186
44237
|
*/
|
|
44187
44238
|
export const EnvironmentDeploymentHistoryApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44188
44239
|
return {
|
|
44240
|
+
/**
|
|
44241
|
+
* Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
|
|
44242
|
+
* @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
|
|
44243
|
+
* @param {string} environmentId Environment ID
|
|
44244
|
+
* @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
|
|
44245
|
+
* @param {*} [options] Override http request option.
|
|
44246
|
+
* @throws {RequiredError}
|
|
44247
|
+
*/
|
|
44248
|
+
generateDeploymentBuildUsageReport: async (environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44249
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
44250
|
+
assertParamExists('generateDeploymentBuildUsageReport', 'environmentId', environmentId)
|
|
44251
|
+
const localVarPath = `/environment/{environmentId}/deploymentBuildUsageReport`
|
|
44252
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
44253
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44254
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
44255
|
+
let baseOptions;
|
|
44256
|
+
if (configuration) {
|
|
44257
|
+
baseOptions = configuration.baseOptions;
|
|
44258
|
+
}
|
|
44259
|
+
|
|
44260
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
44261
|
+
const localVarHeaderParameter = {} as any;
|
|
44262
|
+
const localVarQueryParameter = {} as any;
|
|
44263
|
+
|
|
44264
|
+
// authentication ApiKeyAuth required
|
|
44265
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
44266
|
+
|
|
44267
|
+
// authentication bearerAuth required
|
|
44268
|
+
// http bearer authentication required
|
|
44269
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
44270
|
+
|
|
44271
|
+
|
|
44272
|
+
|
|
44273
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
44274
|
+
|
|
44275
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
44276
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
44277
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
44278
|
+
localVarRequestOptions.data = serializeDataIfNeeded(deploymentBuildUsageReportRequest, localVarRequestOptions, configuration)
|
|
44279
|
+
|
|
44280
|
+
return {
|
|
44281
|
+
url: toPathString(localVarUrlObj),
|
|
44282
|
+
options: localVarRequestOptions,
|
|
44283
|
+
};
|
|
44284
|
+
},
|
|
44189
44285
|
/**
|
|
44190
44286
|
* List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
|
|
44191
44287
|
* @summary List environment deployments
|
|
@@ -44288,6 +44384,20 @@ export const EnvironmentDeploymentHistoryApiAxiosParamCreator = function (config
|
|
|
44288
44384
|
export const EnvironmentDeploymentHistoryApiFp = function(configuration?: Configuration) {
|
|
44289
44385
|
const localVarAxiosParamCreator = EnvironmentDeploymentHistoryApiAxiosParamCreator(configuration)
|
|
44290
44386
|
return {
|
|
44387
|
+
/**
|
|
44388
|
+
* Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
|
|
44389
|
+
* @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
|
|
44390
|
+
* @param {string} environmentId Environment ID
|
|
44391
|
+
* @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
|
|
44392
|
+
* @param {*} [options] Override http request option.
|
|
44393
|
+
* @throws {RequiredError}
|
|
44394
|
+
*/
|
|
44395
|
+
async generateDeploymentBuildUsageReport(environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentBuildUsageReportResponse>> {
|
|
44396
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options);
|
|
44397
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
44398
|
+
const localVarOperationServerBasePath = operationServerMap['EnvironmentDeploymentHistoryApi.generateDeploymentBuildUsageReport']?.[localVarOperationServerIndex]?.url;
|
|
44399
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
44400
|
+
},
|
|
44291
44401
|
/**
|
|
44292
44402
|
* List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
|
|
44293
44403
|
* @summary List environment deployments
|
|
@@ -44326,6 +44436,17 @@ export const EnvironmentDeploymentHistoryApiFp = function(configuration?: Config
|
|
|
44326
44436
|
export const EnvironmentDeploymentHistoryApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
44327
44437
|
const localVarFp = EnvironmentDeploymentHistoryApiFp(configuration)
|
|
44328
44438
|
return {
|
|
44439
|
+
/**
|
|
44440
|
+
* Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
|
|
44441
|
+
* @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
|
|
44442
|
+
* @param {string} environmentId Environment ID
|
|
44443
|
+
* @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
|
|
44444
|
+
* @param {*} [options] Override http request option.
|
|
44445
|
+
* @throws {RequiredError}
|
|
44446
|
+
*/
|
|
44447
|
+
generateDeploymentBuildUsageReport(environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeploymentBuildUsageReportResponse> {
|
|
44448
|
+
return localVarFp.generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options).then((request) => request(axios, basePath));
|
|
44449
|
+
},
|
|
44329
44450
|
/**
|
|
44330
44451
|
* List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
|
|
44331
44452
|
* @summary List environment deployments
|
|
@@ -44358,6 +44479,19 @@ export const EnvironmentDeploymentHistoryApiFactory = function (configuration?:
|
|
|
44358
44479
|
* @extends {BaseAPI}
|
|
44359
44480
|
*/
|
|
44360
44481
|
export class EnvironmentDeploymentHistoryApi extends BaseAPI {
|
|
44482
|
+
/**
|
|
44483
|
+
* Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
|
|
44484
|
+
* @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
|
|
44485
|
+
* @param {string} environmentId Environment ID
|
|
44486
|
+
* @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
|
|
44487
|
+
* @param {*} [options] Override http request option.
|
|
44488
|
+
* @throws {RequiredError}
|
|
44489
|
+
* @memberof EnvironmentDeploymentHistoryApi
|
|
44490
|
+
*/
|
|
44491
|
+
public generateDeploymentBuildUsageReport(environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig) {
|
|
44492
|
+
return EnvironmentDeploymentHistoryApiFp(this.configuration).generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
44493
|
+
}
|
|
44494
|
+
|
|
44361
44495
|
/**
|
|
44362
44496
|
* List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
|
|
44363
44497
|
* @summary List environment deployments
|
package/dist/api.d.ts
CHANGED
|
@@ -7397,6 +7397,44 @@ export interface DeployRequest {
|
|
|
7397
7397
|
*/
|
|
7398
7398
|
'git_commit_id': string;
|
|
7399
7399
|
}
|
|
7400
|
+
/**
|
|
7401
|
+
*
|
|
7402
|
+
* @export
|
|
7403
|
+
* @interface DeploymentBuildUsageReportRequest
|
|
7404
|
+
*/
|
|
7405
|
+
export interface DeploymentBuildUsageReportRequest {
|
|
7406
|
+
/**
|
|
7407
|
+
* The deployment execution ID (format environment_id-version)
|
|
7408
|
+
* @type {string}
|
|
7409
|
+
* @memberof DeploymentBuildUsageReportRequest
|
|
7410
|
+
*/
|
|
7411
|
+
'execution_id': string;
|
|
7412
|
+
/**
|
|
7413
|
+
* The number of seconds the report will be publicly available
|
|
7414
|
+
* @type {number}
|
|
7415
|
+
* @memberof DeploymentBuildUsageReportRequest
|
|
7416
|
+
*/
|
|
7417
|
+
'report_expiration_in_seconds': number;
|
|
7418
|
+
}
|
|
7419
|
+
/**
|
|
7420
|
+
*
|
|
7421
|
+
* @export
|
|
7422
|
+
* @interface DeploymentBuildUsageReportResponse
|
|
7423
|
+
*/
|
|
7424
|
+
export interface DeploymentBuildUsageReportResponse {
|
|
7425
|
+
/**
|
|
7426
|
+
* The publicly accessible URL of the Grafana snapshot report showing build pod resource usage
|
|
7427
|
+
* @type {string}
|
|
7428
|
+
* @memberof DeploymentBuildUsageReportResponse
|
|
7429
|
+
*/
|
|
7430
|
+
'report_url'?: string;
|
|
7431
|
+
/**
|
|
7432
|
+
* The URL to pro-actively delete the report before it expires
|
|
7433
|
+
* @type {string}
|
|
7434
|
+
* @memberof DeploymentBuildUsageReportResponse
|
|
7435
|
+
*/
|
|
7436
|
+
'delete_report_url'?: string;
|
|
7437
|
+
}
|
|
7400
7438
|
/**
|
|
7401
7439
|
*
|
|
7402
7440
|
* @export
|
|
@@ -8069,6 +8107,12 @@ export interface DeploymentHistoryServiceDetailsOneOf {
|
|
|
8069
8107
|
* @memberof DeploymentHistoryServiceDetailsOneOf
|
|
8070
8108
|
*/
|
|
8071
8109
|
'commit': Commit | null;
|
|
8110
|
+
/**
|
|
8111
|
+
* The build pod name prefix for monitoring build runner usage. Format build-{execution_id}-0
|
|
8112
|
+
* @type {string}
|
|
8113
|
+
* @memberof DeploymentHistoryServiceDetailsOneOf
|
|
8114
|
+
*/
|
|
8115
|
+
'build_pod_name': string;
|
|
8072
8116
|
}
|
|
8073
8117
|
/**
|
|
8074
8118
|
* ContainerDeploymentHistoryData
|
|
@@ -8137,6 +8181,12 @@ export interface DeploymentHistoryServiceDetailsOneOf2 {
|
|
|
8137
8181
|
* @memberof DeploymentHistoryServiceDetailsOneOf2
|
|
8138
8182
|
*/
|
|
8139
8183
|
'job_type': DeploymentHistoryServiceDetailsOneOf2JobTypeEnum;
|
|
8184
|
+
/**
|
|
8185
|
+
* The build pod name prefix. Only set for jobs with a git source (Docker build). Null for container-source jobs.
|
|
8186
|
+
* @type {string}
|
|
8187
|
+
* @memberof DeploymentHistoryServiceDetailsOneOf2
|
|
8188
|
+
*/
|
|
8189
|
+
'build_pod_name'?: string | null;
|
|
8140
8190
|
}
|
|
8141
8191
|
export declare const DeploymentHistoryServiceDetailsOneOf2JobTypeEnum: {
|
|
8142
8192
|
readonly CRON: "CRON";
|
|
@@ -19261,6 +19311,7 @@ export declare const StateEnum: {
|
|
|
19261
19311
|
readonly STOPPING: "STOPPING";
|
|
19262
19312
|
readonly STOP_ERROR: "STOP_ERROR";
|
|
19263
19313
|
readonly STOP_QUEUED: "STOP_QUEUED";
|
|
19314
|
+
readonly UNAVAILABLE: "UNAVAILABLE";
|
|
19264
19315
|
readonly WAITING_DELETING: "WAITING_DELETING";
|
|
19265
19316
|
readonly WAITING_RESTARTING: "WAITING_RESTARTING";
|
|
19266
19317
|
readonly WAITING_RUNNING: "WAITING_RUNNING";
|
|
@@ -31337,6 +31388,15 @@ export declare class EnvironmentActionsApi extends BaseAPI {
|
|
|
31337
31388
|
* @export
|
|
31338
31389
|
*/
|
|
31339
31390
|
export declare const EnvironmentDeploymentHistoryApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
31391
|
+
/**
|
|
31392
|
+
* Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
|
|
31393
|
+
* @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
|
|
31394
|
+
* @param {string} environmentId Environment ID
|
|
31395
|
+
* @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
|
|
31396
|
+
* @param {*} [options] Override http request option.
|
|
31397
|
+
* @throws {RequiredError}
|
|
31398
|
+
*/
|
|
31399
|
+
generateDeploymentBuildUsageReport: (environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31340
31400
|
/**
|
|
31341
31401
|
* List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
|
|
31342
31402
|
* @summary List environment deployments
|
|
@@ -31361,6 +31421,15 @@ export declare const EnvironmentDeploymentHistoryApiAxiosParamCreator: (configur
|
|
|
31361
31421
|
* @export
|
|
31362
31422
|
*/
|
|
31363
31423
|
export declare const EnvironmentDeploymentHistoryApiFp: (configuration?: Configuration) => {
|
|
31424
|
+
/**
|
|
31425
|
+
* Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
|
|
31426
|
+
* @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
|
|
31427
|
+
* @param {string} environmentId Environment ID
|
|
31428
|
+
* @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
|
|
31429
|
+
* @param {*} [options] Override http request option.
|
|
31430
|
+
* @throws {RequiredError}
|
|
31431
|
+
*/
|
|
31432
|
+
generateDeploymentBuildUsageReport(environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentBuildUsageReportResponse>>;
|
|
31364
31433
|
/**
|
|
31365
31434
|
* List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
|
|
31366
31435
|
* @summary List environment deployments
|
|
@@ -31385,6 +31454,15 @@ export declare const EnvironmentDeploymentHistoryApiFp: (configuration?: Configu
|
|
|
31385
31454
|
* @export
|
|
31386
31455
|
*/
|
|
31387
31456
|
export declare const EnvironmentDeploymentHistoryApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
31457
|
+
/**
|
|
31458
|
+
* Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
|
|
31459
|
+
* @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
|
|
31460
|
+
* @param {string} environmentId Environment ID
|
|
31461
|
+
* @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
|
|
31462
|
+
* @param {*} [options] Override http request option.
|
|
31463
|
+
* @throws {RequiredError}
|
|
31464
|
+
*/
|
|
31465
|
+
generateDeploymentBuildUsageReport(environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeploymentBuildUsageReportResponse>;
|
|
31388
31466
|
/**
|
|
31389
31467
|
* List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
|
|
31390
31468
|
* @summary List environment deployments
|
|
@@ -31411,6 +31489,16 @@ export declare const EnvironmentDeploymentHistoryApiFactory: (configuration?: Co
|
|
|
31411
31489
|
* @extends {BaseAPI}
|
|
31412
31490
|
*/
|
|
31413
31491
|
export declare class EnvironmentDeploymentHistoryApi extends BaseAPI {
|
|
31492
|
+
/**
|
|
31493
|
+
* Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
|
|
31494
|
+
* @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
|
|
31495
|
+
* @param {string} environmentId Environment ID
|
|
31496
|
+
* @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
|
|
31497
|
+
* @param {*} [options] Override http request option.
|
|
31498
|
+
* @throws {RequiredError}
|
|
31499
|
+
* @memberof EnvironmentDeploymentHistoryApi
|
|
31500
|
+
*/
|
|
31501
|
+
generateDeploymentBuildUsageReport(environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeploymentBuildUsageReportResponse, any, {}>>;
|
|
31414
31502
|
/**
|
|
31415
31503
|
* List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
|
|
31416
31504
|
* @summary List environment deployments
|
package/dist/api.js
CHANGED
|
@@ -1225,6 +1225,7 @@ exports.StateEnum = {
|
|
|
1225
1225
|
STOPPING: 'STOPPING',
|
|
1226
1226
|
STOP_ERROR: 'STOP_ERROR',
|
|
1227
1227
|
STOP_QUEUED: 'STOP_QUEUED',
|
|
1228
|
+
UNAVAILABLE: 'UNAVAILABLE',
|
|
1228
1229
|
WAITING_DELETING: 'WAITING_DELETING',
|
|
1229
1230
|
WAITING_RESTARTING: 'WAITING_RESTARTING',
|
|
1230
1231
|
WAITING_RUNNING: 'WAITING_RUNNING',
|
|
@@ -22240,6 +22241,43 @@ exports.EnvironmentActionsApi = EnvironmentActionsApi;
|
|
|
22240
22241
|
*/
|
|
22241
22242
|
const EnvironmentDeploymentHistoryApiAxiosParamCreator = function (configuration) {
|
|
22242
22243
|
return {
|
|
22244
|
+
/**
|
|
22245
|
+
* Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
|
|
22246
|
+
* @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
|
|
22247
|
+
* @param {string} environmentId Environment ID
|
|
22248
|
+
* @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
|
|
22249
|
+
* @param {*} [options] Override http request option.
|
|
22250
|
+
* @throws {RequiredError}
|
|
22251
|
+
*/
|
|
22252
|
+
generateDeploymentBuildUsageReport: (environmentId_1, deploymentBuildUsageReportRequest_1, ...args_1) => __awaiter(this, [environmentId_1, deploymentBuildUsageReportRequest_1, ...args_1], void 0, function* (environmentId, deploymentBuildUsageReportRequest, options = {}) {
|
|
22253
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
22254
|
+
(0, common_1.assertParamExists)('generateDeploymentBuildUsageReport', 'environmentId', environmentId);
|
|
22255
|
+
const localVarPath = `/environment/{environmentId}/deploymentBuildUsageReport`
|
|
22256
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
22257
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22258
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22259
|
+
let baseOptions;
|
|
22260
|
+
if (configuration) {
|
|
22261
|
+
baseOptions = configuration.baseOptions;
|
|
22262
|
+
}
|
|
22263
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
22264
|
+
const localVarHeaderParameter = {};
|
|
22265
|
+
const localVarQueryParameter = {};
|
|
22266
|
+
// authentication ApiKeyAuth required
|
|
22267
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
22268
|
+
// authentication bearerAuth required
|
|
22269
|
+
// http bearer authentication required
|
|
22270
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
22271
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22272
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
22273
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22274
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22275
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deploymentBuildUsageReportRequest, localVarRequestOptions, configuration);
|
|
22276
|
+
return {
|
|
22277
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
22278
|
+
options: localVarRequestOptions,
|
|
22279
|
+
};
|
|
22280
|
+
}),
|
|
22243
22281
|
/**
|
|
22244
22282
|
* List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
|
|
22245
22283
|
* @summary List environment deployments
|
|
@@ -22326,6 +22364,23 @@ exports.EnvironmentDeploymentHistoryApiAxiosParamCreator = EnvironmentDeployment
|
|
|
22326
22364
|
const EnvironmentDeploymentHistoryApiFp = function (configuration) {
|
|
22327
22365
|
const localVarAxiosParamCreator = (0, exports.EnvironmentDeploymentHistoryApiAxiosParamCreator)(configuration);
|
|
22328
22366
|
return {
|
|
22367
|
+
/**
|
|
22368
|
+
* Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
|
|
22369
|
+
* @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
|
|
22370
|
+
* @param {string} environmentId Environment ID
|
|
22371
|
+
* @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
|
|
22372
|
+
* @param {*} [options] Override http request option.
|
|
22373
|
+
* @throws {RequiredError}
|
|
22374
|
+
*/
|
|
22375
|
+
generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options) {
|
|
22376
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22377
|
+
var _a, _b, _c;
|
|
22378
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options);
|
|
22379
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
22380
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['EnvironmentDeploymentHistoryApi.generateDeploymentBuildUsageReport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
22381
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22382
|
+
});
|
|
22383
|
+
},
|
|
22329
22384
|
/**
|
|
22330
22385
|
* List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
|
|
22331
22386
|
* @summary List environment deployments
|
|
@@ -22370,6 +22425,17 @@ exports.EnvironmentDeploymentHistoryApiFp = EnvironmentDeploymentHistoryApiFp;
|
|
|
22370
22425
|
const EnvironmentDeploymentHistoryApiFactory = function (configuration, basePath, axios) {
|
|
22371
22426
|
const localVarFp = (0, exports.EnvironmentDeploymentHistoryApiFp)(configuration);
|
|
22372
22427
|
return {
|
|
22428
|
+
/**
|
|
22429
|
+
* Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
|
|
22430
|
+
* @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
|
|
22431
|
+
* @param {string} environmentId Environment ID
|
|
22432
|
+
* @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
|
|
22433
|
+
* @param {*} [options] Override http request option.
|
|
22434
|
+
* @throws {RequiredError}
|
|
22435
|
+
*/
|
|
22436
|
+
generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options) {
|
|
22437
|
+
return localVarFp.generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options).then((request) => request(axios, basePath));
|
|
22438
|
+
},
|
|
22373
22439
|
/**
|
|
22374
22440
|
* List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
|
|
22375
22441
|
* @summary List environment deployments
|
|
@@ -22402,6 +22468,18 @@ exports.EnvironmentDeploymentHistoryApiFactory = EnvironmentDeploymentHistoryApi
|
|
|
22402
22468
|
* @extends {BaseAPI}
|
|
22403
22469
|
*/
|
|
22404
22470
|
class EnvironmentDeploymentHistoryApi extends base_1.BaseAPI {
|
|
22471
|
+
/**
|
|
22472
|
+
* Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
|
|
22473
|
+
* @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
|
|
22474
|
+
* @param {string} environmentId Environment ID
|
|
22475
|
+
* @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
|
|
22476
|
+
* @param {*} [options] Override http request option.
|
|
22477
|
+
* @throws {RequiredError}
|
|
22478
|
+
* @memberof EnvironmentDeploymentHistoryApi
|
|
22479
|
+
*/
|
|
22480
|
+
generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options) {
|
|
22481
|
+
return (0, exports.EnvironmentDeploymentHistoryApiFp)(this.configuration).generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
22482
|
+
}
|
|
22405
22483
|
/**
|
|
22406
22484
|
* List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
|
|
22407
22485
|
* @summary List environment deployments
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -7397,6 +7397,44 @@ export interface DeployRequest {
|
|
|
7397
7397
|
*/
|
|
7398
7398
|
'git_commit_id': string;
|
|
7399
7399
|
}
|
|
7400
|
+
/**
|
|
7401
|
+
*
|
|
7402
|
+
* @export
|
|
7403
|
+
* @interface DeploymentBuildUsageReportRequest
|
|
7404
|
+
*/
|
|
7405
|
+
export interface DeploymentBuildUsageReportRequest {
|
|
7406
|
+
/**
|
|
7407
|
+
* The deployment execution ID (format environment_id-version)
|
|
7408
|
+
* @type {string}
|
|
7409
|
+
* @memberof DeploymentBuildUsageReportRequest
|
|
7410
|
+
*/
|
|
7411
|
+
'execution_id': string;
|
|
7412
|
+
/**
|
|
7413
|
+
* The number of seconds the report will be publicly available
|
|
7414
|
+
* @type {number}
|
|
7415
|
+
* @memberof DeploymentBuildUsageReportRequest
|
|
7416
|
+
*/
|
|
7417
|
+
'report_expiration_in_seconds': number;
|
|
7418
|
+
}
|
|
7419
|
+
/**
|
|
7420
|
+
*
|
|
7421
|
+
* @export
|
|
7422
|
+
* @interface DeploymentBuildUsageReportResponse
|
|
7423
|
+
*/
|
|
7424
|
+
export interface DeploymentBuildUsageReportResponse {
|
|
7425
|
+
/**
|
|
7426
|
+
* The publicly accessible URL of the Grafana snapshot report showing build pod resource usage
|
|
7427
|
+
* @type {string}
|
|
7428
|
+
* @memberof DeploymentBuildUsageReportResponse
|
|
7429
|
+
*/
|
|
7430
|
+
'report_url'?: string;
|
|
7431
|
+
/**
|
|
7432
|
+
* The URL to pro-actively delete the report before it expires
|
|
7433
|
+
* @type {string}
|
|
7434
|
+
* @memberof DeploymentBuildUsageReportResponse
|
|
7435
|
+
*/
|
|
7436
|
+
'delete_report_url'?: string;
|
|
7437
|
+
}
|
|
7400
7438
|
/**
|
|
7401
7439
|
*
|
|
7402
7440
|
* @export
|
|
@@ -8069,6 +8107,12 @@ export interface DeploymentHistoryServiceDetailsOneOf {
|
|
|
8069
8107
|
* @memberof DeploymentHistoryServiceDetailsOneOf
|
|
8070
8108
|
*/
|
|
8071
8109
|
'commit': Commit | null;
|
|
8110
|
+
/**
|
|
8111
|
+
* The build pod name prefix for monitoring build runner usage. Format build-{execution_id}-0
|
|
8112
|
+
* @type {string}
|
|
8113
|
+
* @memberof DeploymentHistoryServiceDetailsOneOf
|
|
8114
|
+
*/
|
|
8115
|
+
'build_pod_name': string;
|
|
8072
8116
|
}
|
|
8073
8117
|
/**
|
|
8074
8118
|
* ContainerDeploymentHistoryData
|
|
@@ -8137,6 +8181,12 @@ export interface DeploymentHistoryServiceDetailsOneOf2 {
|
|
|
8137
8181
|
* @memberof DeploymentHistoryServiceDetailsOneOf2
|
|
8138
8182
|
*/
|
|
8139
8183
|
'job_type': DeploymentHistoryServiceDetailsOneOf2JobTypeEnum;
|
|
8184
|
+
/**
|
|
8185
|
+
* The build pod name prefix. Only set for jobs with a git source (Docker build). Null for container-source jobs.
|
|
8186
|
+
* @type {string}
|
|
8187
|
+
* @memberof DeploymentHistoryServiceDetailsOneOf2
|
|
8188
|
+
*/
|
|
8189
|
+
'build_pod_name'?: string | null;
|
|
8140
8190
|
}
|
|
8141
8191
|
export declare const DeploymentHistoryServiceDetailsOneOf2JobTypeEnum: {
|
|
8142
8192
|
readonly CRON: "CRON";
|
|
@@ -19261,6 +19311,7 @@ export declare const StateEnum: {
|
|
|
19261
19311
|
readonly STOPPING: "STOPPING";
|
|
19262
19312
|
readonly STOP_ERROR: "STOP_ERROR";
|
|
19263
19313
|
readonly STOP_QUEUED: "STOP_QUEUED";
|
|
19314
|
+
readonly UNAVAILABLE: "UNAVAILABLE";
|
|
19264
19315
|
readonly WAITING_DELETING: "WAITING_DELETING";
|
|
19265
19316
|
readonly WAITING_RESTARTING: "WAITING_RESTARTING";
|
|
19266
19317
|
readonly WAITING_RUNNING: "WAITING_RUNNING";
|
|
@@ -31337,6 +31388,15 @@ export declare class EnvironmentActionsApi extends BaseAPI {
|
|
|
31337
31388
|
* @export
|
|
31338
31389
|
*/
|
|
31339
31390
|
export declare const EnvironmentDeploymentHistoryApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
31391
|
+
/**
|
|
31392
|
+
* Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
|
|
31393
|
+
* @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
|
|
31394
|
+
* @param {string} environmentId Environment ID
|
|
31395
|
+
* @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
|
|
31396
|
+
* @param {*} [options] Override http request option.
|
|
31397
|
+
* @throws {RequiredError}
|
|
31398
|
+
*/
|
|
31399
|
+
generateDeploymentBuildUsageReport: (environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31340
31400
|
/**
|
|
31341
31401
|
* List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
|
|
31342
31402
|
* @summary List environment deployments
|
|
@@ -31361,6 +31421,15 @@ export declare const EnvironmentDeploymentHistoryApiAxiosParamCreator: (configur
|
|
|
31361
31421
|
* @export
|
|
31362
31422
|
*/
|
|
31363
31423
|
export declare const EnvironmentDeploymentHistoryApiFp: (configuration?: Configuration) => {
|
|
31424
|
+
/**
|
|
31425
|
+
* Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
|
|
31426
|
+
* @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
|
|
31427
|
+
* @param {string} environmentId Environment ID
|
|
31428
|
+
* @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
|
|
31429
|
+
* @param {*} [options] Override http request option.
|
|
31430
|
+
* @throws {RequiredError}
|
|
31431
|
+
*/
|
|
31432
|
+
generateDeploymentBuildUsageReport(environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentBuildUsageReportResponse>>;
|
|
31364
31433
|
/**
|
|
31365
31434
|
* List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
|
|
31366
31435
|
* @summary List environment deployments
|
|
@@ -31385,6 +31454,15 @@ export declare const EnvironmentDeploymentHistoryApiFp: (configuration?: Configu
|
|
|
31385
31454
|
* @export
|
|
31386
31455
|
*/
|
|
31387
31456
|
export declare const EnvironmentDeploymentHistoryApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
31457
|
+
/**
|
|
31458
|
+
* Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
|
|
31459
|
+
* @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
|
|
31460
|
+
* @param {string} environmentId Environment ID
|
|
31461
|
+
* @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
|
|
31462
|
+
* @param {*} [options] Override http request option.
|
|
31463
|
+
* @throws {RequiredError}
|
|
31464
|
+
*/
|
|
31465
|
+
generateDeploymentBuildUsageReport(environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeploymentBuildUsageReportResponse>;
|
|
31388
31466
|
/**
|
|
31389
31467
|
* List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
|
|
31390
31468
|
* @summary List environment deployments
|
|
@@ -31411,6 +31489,16 @@ export declare const EnvironmentDeploymentHistoryApiFactory: (configuration?: Co
|
|
|
31411
31489
|
* @extends {BaseAPI}
|
|
31412
31490
|
*/
|
|
31413
31491
|
export declare class EnvironmentDeploymentHistoryApi extends BaseAPI {
|
|
31492
|
+
/**
|
|
31493
|
+
* Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
|
|
31494
|
+
* @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
|
|
31495
|
+
* @param {string} environmentId Environment ID
|
|
31496
|
+
* @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
|
|
31497
|
+
* @param {*} [options] Override http request option.
|
|
31498
|
+
* @throws {RequiredError}
|
|
31499
|
+
* @memberof EnvironmentDeploymentHistoryApi
|
|
31500
|
+
*/
|
|
31501
|
+
generateDeploymentBuildUsageReport(environmentId: string, deploymentBuildUsageReportRequest?: DeploymentBuildUsageReportRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeploymentBuildUsageReportResponse, any, {}>>;
|
|
31414
31502
|
/**
|
|
31415
31503
|
* List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
|
|
31416
31504
|
* @summary List environment deployments
|
package/dist/esm/api.js
CHANGED
|
@@ -1212,6 +1212,7 @@ export const StateEnum = {
|
|
|
1212
1212
|
STOPPING: 'STOPPING',
|
|
1213
1213
|
STOP_ERROR: 'STOP_ERROR',
|
|
1214
1214
|
STOP_QUEUED: 'STOP_QUEUED',
|
|
1215
|
+
UNAVAILABLE: 'UNAVAILABLE',
|
|
1215
1216
|
WAITING_DELETING: 'WAITING_DELETING',
|
|
1216
1217
|
WAITING_RESTARTING: 'WAITING_RESTARTING',
|
|
1217
1218
|
WAITING_RUNNING: 'WAITING_RUNNING',
|
|
@@ -22071,6 +22072,43 @@ export class EnvironmentActionsApi extends BaseAPI {
|
|
|
22071
22072
|
*/
|
|
22072
22073
|
export const EnvironmentDeploymentHistoryApiAxiosParamCreator = function (configuration) {
|
|
22073
22074
|
return {
|
|
22075
|
+
/**
|
|
22076
|
+
* Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
|
|
22077
|
+
* @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
|
|
22078
|
+
* @param {string} environmentId Environment ID
|
|
22079
|
+
* @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
|
|
22080
|
+
* @param {*} [options] Override http request option.
|
|
22081
|
+
* @throws {RequiredError}
|
|
22082
|
+
*/
|
|
22083
|
+
generateDeploymentBuildUsageReport: (environmentId_1, deploymentBuildUsageReportRequest_1, ...args_1) => __awaiter(this, [environmentId_1, deploymentBuildUsageReportRequest_1, ...args_1], void 0, function* (environmentId, deploymentBuildUsageReportRequest, options = {}) {
|
|
22084
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
22085
|
+
assertParamExists('generateDeploymentBuildUsageReport', 'environmentId', environmentId);
|
|
22086
|
+
const localVarPath = `/environment/{environmentId}/deploymentBuildUsageReport`
|
|
22087
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
22088
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22089
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
22090
|
+
let baseOptions;
|
|
22091
|
+
if (configuration) {
|
|
22092
|
+
baseOptions = configuration.baseOptions;
|
|
22093
|
+
}
|
|
22094
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
22095
|
+
const localVarHeaderParameter = {};
|
|
22096
|
+
const localVarQueryParameter = {};
|
|
22097
|
+
// authentication ApiKeyAuth required
|
|
22098
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
22099
|
+
// authentication bearerAuth required
|
|
22100
|
+
// http bearer authentication required
|
|
22101
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
22102
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22103
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22104
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22105
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22106
|
+
localVarRequestOptions.data = serializeDataIfNeeded(deploymentBuildUsageReportRequest, localVarRequestOptions, configuration);
|
|
22107
|
+
return {
|
|
22108
|
+
url: toPathString(localVarUrlObj),
|
|
22109
|
+
options: localVarRequestOptions,
|
|
22110
|
+
};
|
|
22111
|
+
}),
|
|
22074
22112
|
/**
|
|
22075
22113
|
* List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
|
|
22076
22114
|
* @summary List environment deployments
|
|
@@ -22156,6 +22194,23 @@ export const EnvironmentDeploymentHistoryApiAxiosParamCreator = function (config
|
|
|
22156
22194
|
export const EnvironmentDeploymentHistoryApiFp = function (configuration) {
|
|
22157
22195
|
const localVarAxiosParamCreator = EnvironmentDeploymentHistoryApiAxiosParamCreator(configuration);
|
|
22158
22196
|
return {
|
|
22197
|
+
/**
|
|
22198
|
+
* Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
|
|
22199
|
+
* @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
|
|
22200
|
+
* @param {string} environmentId Environment ID
|
|
22201
|
+
* @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
|
|
22202
|
+
* @param {*} [options] Override http request option.
|
|
22203
|
+
* @throws {RequiredError}
|
|
22204
|
+
*/
|
|
22205
|
+
generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options) {
|
|
22206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22207
|
+
var _a, _b, _c;
|
|
22208
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options);
|
|
22209
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
22210
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnvironmentDeploymentHistoryApi.generateDeploymentBuildUsageReport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
22211
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22212
|
+
});
|
|
22213
|
+
},
|
|
22159
22214
|
/**
|
|
22160
22215
|
* List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
|
|
22161
22216
|
* @summary List environment deployments
|
|
@@ -22199,6 +22254,17 @@ export const EnvironmentDeploymentHistoryApiFp = function (configuration) {
|
|
|
22199
22254
|
export const EnvironmentDeploymentHistoryApiFactory = function (configuration, basePath, axios) {
|
|
22200
22255
|
const localVarFp = EnvironmentDeploymentHistoryApiFp(configuration);
|
|
22201
22256
|
return {
|
|
22257
|
+
/**
|
|
22258
|
+
* Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
|
|
22259
|
+
* @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
|
|
22260
|
+
* @param {string} environmentId Environment ID
|
|
22261
|
+
* @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
|
|
22262
|
+
* @param {*} [options] Override http request option.
|
|
22263
|
+
* @throws {RequiredError}
|
|
22264
|
+
*/
|
|
22265
|
+
generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options) {
|
|
22266
|
+
return localVarFp.generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options).then((request) => request(axios, basePath));
|
|
22267
|
+
},
|
|
22202
22268
|
/**
|
|
22203
22269
|
* List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
|
|
22204
22270
|
* @summary List environment deployments
|
|
@@ -22230,6 +22296,18 @@ export const EnvironmentDeploymentHistoryApiFactory = function (configuration, b
|
|
|
22230
22296
|
* @extends {BaseAPI}
|
|
22231
22297
|
*/
|
|
22232
22298
|
export class EnvironmentDeploymentHistoryApi extends BaseAPI {
|
|
22299
|
+
/**
|
|
22300
|
+
* Generate a Grafana snapshot report that shows the resource usage (CPU, memory) of build runner pods for a specific deployment execution. The report is publicly accessible for the specified duration.
|
|
22301
|
+
* @summary Generate a Grafana snapshot report showing build runner pod usage for a specific deployment
|
|
22302
|
+
* @param {string} environmentId Environment ID
|
|
22303
|
+
* @param {DeploymentBuildUsageReportRequest} [deploymentBuildUsageReportRequest]
|
|
22304
|
+
* @param {*} [options] Override http request option.
|
|
22305
|
+
* @throws {RequiredError}
|
|
22306
|
+
* @memberof EnvironmentDeploymentHistoryApi
|
|
22307
|
+
*/
|
|
22308
|
+
generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options) {
|
|
22309
|
+
return EnvironmentDeploymentHistoryApiFp(this.configuration).generateDeploymentBuildUsageReport(environmentId, deploymentBuildUsageReportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
22310
|
+
}
|
|
22233
22311
|
/**
|
|
22234
22312
|
* List previous and current environment deployments with the status deployment and the related services. By default it returns the 20 last results. The response is paginated. In order to request the next page, you can use the startId query parameter
|
|
22235
22313
|
* @summary List environment deployments
|