Skip to content

Commit cbc377b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 7c67677 of spec repo (#4416)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 6acdfd1 commit cbc377b

3 files changed

Lines changed: 23 additions & 0 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122198,6 +122198,11 @@ paths:
122198122198
name: filter[provider]
122199122199
schema:
122200122200
type: string
122201+
- description: Filter results to tag keys that have data for a specific Cloud Cost Management metric (for example, `aws.cost.net.amortized`). When omitted, all tag keys for the requested period are returned.
122202+
in: query
122203+
name: filter[metric]
122204+
schema:
122205+
type: string
122201122206
responses:
122202122207
"200":
122203122208
content:

features/support/scenarios_model_mapping.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7819,6 +7819,10 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
78197819
"type": "string",
78207820
"format": "",
78217821
},
7822+
"filterMetric": {
7823+
"type": "string",
7824+
"format": "",
7825+
},
78227826
"operationResponseType": "CostTagKeySourcesResponse",
78237827
},
78247828
"v2.ListCostTags": {

packages/datadog-api-client-v2/apis/CloudCostManagementApi.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,6 +2174,7 @@ export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory
21742174
public async listCostTagKeySources(
21752175
filterMonth: string,
21762176
filterProvider?: string,
2177+
filterMetric?: string,
21772178
_options?: Configuration
21782179
): Promise<RequestContext> {
21792180
const _config = _options || this.configuration;
@@ -2213,6 +2214,13 @@ export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory
22132214
""
22142215
);
22152216
}
2217+
if (filterMetric !== undefined) {
2218+
requestContext.setQueryParam(
2219+
"filter[metric]",
2220+
ObjectSerializer.serialize(filterMetric, "string", ""),
2221+
""
2222+
);
2223+
}
22162224

22172225
// Apply auth methods
22182226
applySecurityAuthentication(_config, requestContext, [
@@ -7949,6 +7957,11 @@ export interface CloudCostManagementApiListCostTagKeySourcesRequest {
79497957
* @type string
79507958
*/
79517959
filterProvider?: string;
7960+
/**
7961+
* Filter results to tag keys that have data for a specific Cloud Cost Management metric (for example, `aws.cost.net.amortized`). When omitted, all tag keys for the requested period are returned.
7962+
* @type string
7963+
*/
7964+
filterMetric?: string;
79527965
}
79537966

79547967
export interface CloudCostManagementApiListCostTagMetadataRequest {
@@ -9197,6 +9210,7 @@ export class CloudCostManagementApi {
91979210
const requestContextPromise = this.requestFactory.listCostTagKeySources(
91989211
param.filterMonth,
91999212
param.filterProvider,
9213+
param.filterMetric,
92009214
options
92019215
);
92029216
return requestContextPromise.then((requestContext) => {

0 commit comments

Comments
 (0)