Skip to content

Commit 8c7da8e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 20c8623 of spec repo
1 parent b3dc405 commit 8c7da8e

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125771,6 +125771,12 @@ paths:
125771125771
name: filter[provider]
125772125772
schema:
125773125773
type: string
125774+
- description: When `true`, only return metrics for currently enabled accounts. When omitted or `false`, return all metrics present in tag metadata. Metrics not recognized by Cloud Cost Management are always excluded.
125775+
example: true
125776+
in: query
125777+
name: filter[enabled_metrics_only]
125778+
schema:
125779+
type: boolean
125774125780
responses:
125775125781
"200":
125776125782
content:

private/bdd_runner/src/support/scenarios_model_mapping.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8078,6 +8078,10 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
80788078
type: "string",
80798079
format: "",
80808080
},
8081+
filterEnabledMetricsOnly: {
8082+
type: "boolean",
8083+
format: "",
8084+
},
80818085
operationResponseType: "CostMetricsResponse",
80828086
},
80838087
"CloudCostManagementApi.V2.ListCostTagMetadataMonths": {

services/cloud_cost_management/src/v2/CloudCostManagementApi.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2811,6 +2811,7 @@ export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory
28112811
public async listCostTagMetadataMetrics(
28122812
filterMonth: string,
28132813
filterProvider?: string,
2814+
filterEnabledMetricsOnly?: boolean,
28142815
_options?: Configuration,
28152816
): Promise<RequestContext> {
28162817
const _config = _options || this.configuration;
@@ -2866,6 +2867,13 @@ export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory
28662867
"",
28672868
);
28682869
}
2870+
if (filterEnabledMetricsOnly !== undefined) {
2871+
requestContext.setQueryParam(
2872+
"filter[enabled_metrics_only]",
2873+
serialize(filterEnabledMetricsOnly, TypingInfo, "boolean", ""),
2874+
"",
2875+
);
2876+
}
28692877

28702878
// Apply auth methods
28712879
applySecurityAuthentication(_config, requestContext, [
@@ -8549,6 +8557,11 @@ export interface CloudCostManagementApiListCostTagMetadataMetricsRequest {
85498557
* @type string
85508558
*/
85518559
filterProvider?: string;
8560+
/**
8561+
* When `true`, only return metrics for currently enabled accounts. When omitted or `false`, return all metrics present in tag metadata. Metrics not recognized by Cloud Cost Management are always excluded.
8562+
* @type boolean
8563+
*/
8564+
filterEnabledMetricsOnly?: boolean;
85528565
}
85538566

85548567
export interface CloudCostManagementApiListCostTagMetadataMonthsRequest {
@@ -9808,6 +9821,7 @@ export class CloudCostManagementApi {
98089821
this.requestFactory.listCostTagMetadataMetrics(
98099822
param.filterMonth,
98109823
param.filterProvider,
9824+
param.filterEnabledMetricsOnly,
98119825
options,
98129826
);
98139827
return requestContextPromise.then((requestContext) => {

0 commit comments

Comments
 (0)