diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 99b25f0ac8..e4a35d331b 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/src/datadog_api_client/v2/api/cloud_cost_management_api.py b/src/datadog_api_client/v2/api/cloud_cost_management_api.py index f2d35f381a..3fabdfb428 100644 --- a/src/datadog_api_client/v2/api/cloud_cost_management_api.py +++ b/src/datadog_api_client/v2/api/cloud_cost_management_api.py @@ -1363,6 +1363,11 @@ def __init__(self, api_client=None): "attribute": "filter[provider]", "location": "query", }, + "filter_enabled_metrics_only": { + "openapi_types": (bool,), + "attribute": "filter[enabled_metrics_only]", + "location": "query", + }, }, headers_map={ "accept": ["application/json"], @@ -2961,6 +2966,7 @@ def list_cost_tag_metadata_metrics( filter_month: str, *, filter_provider: Union[str, UnsetType] = unset, + filter_enabled_metrics_only: Union[bool, UnsetType] = unset, ) -> CostMetricsResponse: """List available Cloud Cost Management metrics. @@ -2970,6 +2976,8 @@ def list_cost_tag_metadata_metrics( :type filter_month: str :param 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. :type filter_provider: str, optional + :param 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. + :type filter_enabled_metrics_only: bool, optional :rtype: CostMetricsResponse """ kwargs: Dict[str, Any] = {} @@ -2978,6 +2986,9 @@ def list_cost_tag_metadata_metrics( if filter_provider is not unset: kwargs["filter_provider"] = filter_provider + if filter_enabled_metrics_only is not unset: + kwargs["filter_enabled_metrics_only"] = filter_enabled_metrics_only + return self._list_cost_tag_metadata_metrics_endpoint.call_with_http_info(**kwargs) def list_cost_tag_metadata_months(