diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 99b25f0ac87f..e4a35d331be6 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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: diff --git a/features/scenarios_model_mapping.rb b/features/scenarios_model_mapping.rb index 8d27a626e6cf..5550c3a65ccf 100644 --- a/features/scenarios_model_mapping.rb +++ b/features/scenarios_model_mapping.rb @@ -2843,6 +2843,7 @@ "v2.ListCostTagMetadataMetrics" => { "filter_month" => "String", "filter_provider" => "String", + "filter_enabled_metrics_only" => "Boolean", }, "v2.ListCostTagMetadataMonths" => { "filter_provider" => "String", diff --git a/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb b/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb index f08216a7ad1b..7b3ff08fd906 100644 --- a/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb +++ b/lib/datadog_api_client/v2/api/cloud_cost_management_api.rb @@ -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] @@ -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] || {}