Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125771,6 +125771,12 @@ paths:
name: filter[provider]
schema:
type: string
- 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.
example: true
in: query
name: filter[enabled_metrics_only]
schema:
type: boolean
responses:
"200":
content:
Expand Down
1 change: 1 addition & 0 deletions features/scenarios_model_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2843,6 +2843,7 @@
"v2.ListCostTagMetadataMetrics" => {
"filter_month" => "String",
"filter_provider" => "String",
"filter_enabled_metrics_only" => "Boolean",
},
"v2.ListCostTagMetadataMonths" => {
"filter_provider" => "String",
Expand Down
2 changes: 2 additions & 0 deletions lib/datadog_api_client/v2/api/cloud_cost_management_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3181,6 +3181,7 @@ def list_cost_tag_metadata_metrics(filter_month, opts = {})
# @param filter_month [String] The month to scope the query to, in `YYYY-MM` format.
# @param opts [Hash] the optional parameters
# @option opts [String] :filter_provider Filter results to a specific provider. Common cloud values are `aws`, `azure`, `gcp`, `Oracle` (OCI), and `custom`. SaaS billing integrations (for example, `Snowflake`, `MongoDB`, `Databricks`) are also accepted using their display-name string. Values are case-sensitive.
# @option opts [Boolean] :filter_enabled_metrics_only 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.
# @return [Array<(CostMetricsResponse, Integer, Hash)>] CostMetricsResponse data, response status code and response headers
def list_cost_tag_metadata_metrics_with_http_info(filter_month, opts = {})
unstable_enabled = @api_client.config.unstable_operations["v2.list_cost_tag_metadata_metrics".to_sym]
Expand All @@ -3204,6 +3205,7 @@ def list_cost_tag_metadata_metrics_with_http_info(filter_month, opts = {})
query_params = opts[:query_params] || {}
query_params[:'filter[month]'] = filter_month
query_params[:'filter[provider]'] = opts[:'filter_provider'] if !opts[:'filter_provider'].nil?
query_params[:'filter[enabled_metrics_only]'] = opts[:'filter_enabled_metrics_only'] if !opts[:'filter_enabled_metrics_only'].nil?

# header parameters
header_params = opts[:header_params] || {}
Expand Down
Loading