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
11 changes: 11 additions & 0 deletions src/datadog_api_client/v2/api/cloud_cost_management_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down Expand Up @@ -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.

Expand All @@ -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] = {}
Expand All @@ -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(
Expand Down
Loading