diff --git a/.apigentools-info b/.apigentools-info index 350c116409..dd66b0192f 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-02-06 14:56:59.904084", - "spec_repo_commit": "3c39fb0c" + "regenerated": "2025-02-06 17:59:44.328977", + "spec_repo_commit": "b89b292b" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-02-06 14:56:59.918861", - "spec_repo_commit": "3c39fb0c" + "regenerated": "2025-02-06 17:59:44.354899", + "spec_repo_commit": "b89b292b" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index d5fbf684de..194508f81c 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -40196,7 +40196,7 @@ paths: required: false schema: type: boolean - - description: '(Beta) Filter custom metrics that have or have not been queried + - description: '(Preview) Filter custom metrics that have or have not been queried in the specified window[seconds]. If no window is provided or the window is less than 2 hours, a default of @@ -40217,6 +40217,14 @@ paths: required: false schema: type: string + - description: (Preview) Filter metrics that are used in dashboards, monitors, + notebooks, SLOs. + example: true + in: query + name: filter[related_assets] + required: false + schema: + type: boolean - description: 'The number of seconds of look back (from now) to apply to a filter[tag] or filter[queried] query. diff --git a/src/datadog_api_client/v2/api/metrics_api.py b/src/datadog_api_client/v2/api/metrics_api.py index 179e687237..35a00b39d7 100644 --- a/src/datadog_api_client/v2/api/metrics_api.py +++ b/src/datadog_api_client/v2/api/metrics_api.py @@ -328,6 +328,11 @@ def __init__(self, api_client=None): "attribute": "filter[tags]", "location": "query", }, + "filter_related_assets": { + "openapi_types": (bool,), + "attribute": "filter[related_assets]", + "location": "query", + }, "window_seconds": { "openapi_types": (int,), "attribute": "window[seconds]", @@ -691,6 +696,7 @@ def list_tag_configurations( filter_include_percentiles: Union[bool, UnsetType] = unset, filter_queried: Union[bool, UnsetType] = unset, filter_tags: Union[str, UnsetType] = unset, + filter_related_assets: Union[bool, UnsetType] = unset, window_seconds: Union[int, UnsetType] = unset, page_size: Union[int, UnsetType] = unset, page_cursor: Union[str, UnsetType] = unset, @@ -711,12 +717,14 @@ def list_tag_configurations( :param filter_include_percentiles: Filter distributions with additional percentile aggregations enabled or disabled. :type filter_include_percentiles: bool, optional - :param filter_queried: (Beta) Filter custom metrics that have or have not been queried in the specified window[seconds]. + :param filter_queried: (Preview) Filter custom metrics that have or have not been queried in the specified window[seconds]. If no window is provided or the window is less than 2 hours, a default of 2 hours will be applied. :type filter_queried: bool, optional :param filter_tags: Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Can only be combined with the filter[queried] filter. :type filter_tags: str, optional + :param filter_related_assets: (Preview) Filter metrics that are used in dashboards, monitors, notebooks, SLOs. + :type filter_related_assets: bool, optional :param window_seconds: The number of seconds of look back (from now) to apply to a filter[tag] or filter[queried] query. Default value is 3600 (1 hour), maximum value is 2,592,000 (30 days). :type window_seconds: int, optional @@ -747,6 +755,9 @@ def list_tag_configurations( if filter_tags is not unset: kwargs["filter_tags"] = filter_tags + if filter_related_assets is not unset: + kwargs["filter_related_assets"] = filter_related_assets + if window_seconds is not unset: kwargs["window_seconds"] = window_seconds @@ -767,6 +778,7 @@ def list_tag_configurations_with_pagination( filter_include_percentiles: Union[bool, UnsetType] = unset, filter_queried: Union[bool, UnsetType] = unset, filter_tags: Union[str, UnsetType] = unset, + filter_related_assets: Union[bool, UnsetType] = unset, window_seconds: Union[int, UnsetType] = unset, page_size: Union[int, UnsetType] = unset, page_cursor: Union[str, UnsetType] = unset, @@ -784,12 +796,14 @@ def list_tag_configurations_with_pagination( :param filter_include_percentiles: Filter distributions with additional percentile aggregations enabled or disabled. :type filter_include_percentiles: bool, optional - :param filter_queried: (Beta) Filter custom metrics that have or have not been queried in the specified window[seconds]. + :param filter_queried: (Preview) Filter custom metrics that have or have not been queried in the specified window[seconds]. If no window is provided or the window is less than 2 hours, a default of 2 hours will be applied. :type filter_queried: bool, optional :param filter_tags: Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions. Can only be combined with the filter[queried] filter. :type filter_tags: str, optional + :param filter_related_assets: (Preview) Filter metrics that are used in dashboards, monitors, notebooks, SLOs. + :type filter_related_assets: bool, optional :param window_seconds: The number of seconds of look back (from now) to apply to a filter[tag] or filter[queried] query. Default value is 3600 (1 hour), maximum value is 2,592,000 (30 days). :type window_seconds: int, optional @@ -822,6 +836,9 @@ def list_tag_configurations_with_pagination( if filter_tags is not unset: kwargs["filter_tags"] = filter_tags + if filter_related_assets is not unset: + kwargs["filter_related_assets"] = filter_related_assets + if window_seconds is not unset: kwargs["window_seconds"] = window_seconds