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
5 changes: 5 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118751,6 +118751,11 @@ paths:
name: filter[provider]
schema:
type: string
- 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.
in: query
name: filter[metric]
schema:
type: string
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 @@ -1287,6 +1287,11 @@ def __init__(self, api_client=None):
"attribute": "filter[provider]",
"location": "query",
},
"filter_metric": {
"openapi_types": (str,),
"attribute": "filter[metric]",
"location": "query",
},
},
headers_map={
"accept": ["application/json"],
Expand Down Expand Up @@ -2884,6 +2889,7 @@ def list_cost_tag_key_sources(
filter_month: str,
*,
filter_provider: Union[str, UnsetType] = unset,
filter_metric: Union[str, UnsetType] = unset,
) -> CostTagKeySourcesResponse:
"""List Cloud Cost Management tag sources.

Expand All @@ -2893,6 +2899,8 @@ def list_cost_tag_key_sources(
: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_metric: 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.
:type filter_metric: str, optional
:rtype: CostTagKeySourcesResponse
"""
kwargs: Dict[str, Any] = {}
Expand All @@ -2901,6 +2909,9 @@ def list_cost_tag_key_sources(
if filter_provider is not unset:
kwargs["filter_provider"] = filter_provider

if filter_metric is not unset:
kwargs["filter_metric"] = filter_metric

return self._list_cost_tag_key_sources_endpoint.call_with_http_info(**kwargs)

def list_cost_tag_metadata(
Expand Down
Loading