From b6d0df3ca87c4c693be8c55622847022a46f49ce Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 21 Oct 2026 18:47:27 +0000 Subject: [PATCH] Regenerate client from commit fe702d3 of spec repo --- .generator/schemas/v2/openapi.yaml | 14 +++++++++----- src/datadog_api_client/v2/api/metrics_api.py | 14 +++++++------- ...etric_tag_configuration_metric_type_category.py | 12 +++++++++++- 3 files changed, 27 insertions(+), 13 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 4656cbfda7..afefc6d021 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -79277,11 +79277,15 @@ components: enum: - non_distribution - distribution + - exponential_histogram + - explicit_histogram example: distribution type: string x-enum-varnames: - NON_DISTRIBUTION - DISTRIBUTION + - EXPONENTIAL_HISTOGRAM + - EXPLICIT_HISTOGRAM MetricTagConfigurationMetricTypes: default: gauge description: The metric's type. @@ -199125,7 +199129,7 @@ paths: schema: type: boolean - description: |- - This parameter has no effect unless `filter[queried]` is also set. Only return metrics that have been queried or not queried in the specified window. The default value is 2,592,000 seconds (30 days), the maximum value is 15,552,000 seconds (180 days), and the minimum value is 1 second. For example: `filter[queried]=true&filter[queried][window][seconds]=604800`. + The look-back window for `filter[queried]`, in seconds. You must also set `filter[queried]`, or the request returns a 400 error. The default value is 2,592,000 seconds (30 days), the maximum value is 15,552,000 seconds (180 days), and the minimum value is 0. With `0`, the window ends now, so `filter[queried]=true` returns almost no metrics and `filter[queried]=false` returns all metrics. For example: `filter[queried]=true&filter[queried][window][seconds]=604800`. example: 15552000 in: query name: filter[queried][window][seconds] @@ -199134,7 +199138,7 @@ paths: default: 2592000 format: int64 maximum: 15552000 - minimum: 1 + minimum: 0 type: integer - description: |- Only return metrics that were submitted with tags matching this expression. You can use AND, OR, IN, and wildcards. For example: `filter[tags]=env IN (staging,test) AND service:web*`. @@ -199167,7 +199171,7 @@ paths: schema: type: string - description: |- - Only return metrics that have been actively reporting in the specified window. The default value is 3600 seconds (1 hour), the maximum value is 2,592,000 seconds (30 days), and the minimum value is 1 second. + Only return metrics that have been actively reporting in this window. The default value is 3,600 seconds (1 hour), the maximum value is 5,184,000 seconds (60 days), and the minimum value is 0. With `0`, the API returns only metrics that reported in the last few minutes. example: 3600 in: query name: window[seconds] @@ -199175,8 +199179,8 @@ paths: schema: default: 3600 format: int64 - maximum: 2592000 - minimum: 1 + maximum: 5184000 + minimum: 0 type: integer - description: |- Maximum number of results per page. Send `page[size]` on the first request to opt in to pagination. On each subsequent request, send `page[cursor]` set to the value of `meta.pagination.next_cursor` from the previous response. The default value is 10000, the maximum value is 10000, and the minimum value is 1. diff --git a/src/datadog_api_client/v2/api/metrics_api.py b/src/datadog_api_client/v2/api/metrics_api.py index 9ed514a287..558a38505f 100644 --- a/src/datadog_api_client/v2/api/metrics_api.py +++ b/src/datadog_api_client/v2/api/metrics_api.py @@ -644,7 +644,7 @@ def __init__(self, api_client=None): "filter_queried_window_seconds": { "validation": { "inclusive_maximum": 15552000, - "inclusive_minimum": 1, + "inclusive_minimum": 0, }, "openapi_types": (int,), "attribute": "filter[queried][window][seconds]", @@ -672,8 +672,8 @@ def __init__(self, api_client=None): }, "window_seconds": { "validation": { - "inclusive_maximum": 2592000, - "inclusive_minimum": 1, + "inclusive_maximum": 5184000, + "inclusive_minimum": 0, }, "openapi_types": (int,), "attribute": "window[seconds]", @@ -1489,7 +1489,7 @@ def list_tag_configurations( :type filter_include_percentiles: bool, optional :param filter_queried: Only return metrics that have been queried (true) or not queried (false) in the look back window. Set the window with ``filter[queried][window][seconds]`` ; if omitted, a default window is used. :type filter_queried: bool, optional - :param filter_queried_window_seconds: This parameter has no effect unless ``filter[queried]`` is also set. Only return metrics that have been queried or not queried in the specified window. The default value is 2,592,000 seconds (30 days), the maximum value is 15,552,000 seconds (180 days), and the minimum value is 1 second. For example: ``filter[queried]=true&filter[queried][window][seconds]=604800``. + :param filter_queried_window_seconds: The look-back window for ``filter[queried]`` , in seconds. You must also set ``filter[queried]`` , or the request returns a 400 error. The default value is 2,592,000 seconds (30 days), the maximum value is 15,552,000 seconds (180 days), and the minimum value is 0. With ``0`` , the window ends now, so ``filter[queried]=true`` returns almost no metrics and ``filter[queried]=false`` returns all metrics. For example: ``filter[queried]=true&filter[queried][window][seconds]=604800``. :type filter_queried_window_seconds: int, optional :param filter_tags: Only return metrics that were submitted with tags matching this expression. You can use AND, OR, IN, and wildcards. For example: ``filter[tags]=env IN (staging,test) AND service:web*``. :type filter_tags: str, optional @@ -1499,7 +1499,7 @@ def list_tag_configurations( :type include: str, optional :param sort: Sort results by metric volume. Prefix a key with ``-`` for descending order. Supported keys: ``metric_volumes.indexed_volume`` , ``metric_volumes.ingested_volume`` , ``metric_volumes.indexed_volume_delta`` , ``metric_volumes.ingested_volume_delta``. Requires a paginated request ( ``page[size]`` or ``page[cursor]`` ). :type sort: str, optional - :param window_seconds: Only return metrics that have been actively reporting in the specified window. The default value is 3600 seconds (1 hour), the maximum value is 2,592,000 seconds (30 days), and the minimum value is 1 second. + :param window_seconds: Only return metrics that have been actively reporting in this window. The default value is 3,600 seconds (1 hour), the maximum value is 5,184,000 seconds (60 days), and the minimum value is 0. With ``0`` , the API returns only metrics that reported in the last few minutes. :type window_seconds: int, optional :param page_size: Maximum number of results per page. Send ``page[size]`` on the first request to opt in to pagination. On each subsequent request, send ``page[cursor]`` set to the value of ``meta.pagination.next_cursor`` from the previous response. The default value is 10000, the maximum value is 10000, and the minimum value is 1. :type page_size: int, optional @@ -1586,7 +1586,7 @@ def list_tag_configurations_with_pagination( :type filter_include_percentiles: bool, optional :param filter_queried: Only return metrics that have been queried (true) or not queried (false) in the look back window. Set the window with ``filter[queried][window][seconds]`` ; if omitted, a default window is used. :type filter_queried: bool, optional - :param filter_queried_window_seconds: This parameter has no effect unless ``filter[queried]`` is also set. Only return metrics that have been queried or not queried in the specified window. The default value is 2,592,000 seconds (30 days), the maximum value is 15,552,000 seconds (180 days), and the minimum value is 1 second. For example: ``filter[queried]=true&filter[queried][window][seconds]=604800``. + :param filter_queried_window_seconds: The look-back window for ``filter[queried]`` , in seconds. You must also set ``filter[queried]`` , or the request returns a 400 error. The default value is 2,592,000 seconds (30 days), the maximum value is 15,552,000 seconds (180 days), and the minimum value is 0. With ``0`` , the window ends now, so ``filter[queried]=true`` returns almost no metrics and ``filter[queried]=false`` returns all metrics. For example: ``filter[queried]=true&filter[queried][window][seconds]=604800``. :type filter_queried_window_seconds: int, optional :param filter_tags: Only return metrics that were submitted with tags matching this expression. You can use AND, OR, IN, and wildcards. For example: ``filter[tags]=env IN (staging,test) AND service:web*``. :type filter_tags: str, optional @@ -1596,7 +1596,7 @@ def list_tag_configurations_with_pagination( :type include: str, optional :param sort: Sort results by metric volume. Prefix a key with ``-`` for descending order. Supported keys: ``metric_volumes.indexed_volume`` , ``metric_volumes.ingested_volume`` , ``metric_volumes.indexed_volume_delta`` , ``metric_volumes.ingested_volume_delta``. Requires a paginated request ( ``page[size]`` or ``page[cursor]`` ). :type sort: str, optional - :param window_seconds: Only return metrics that have been actively reporting in the specified window. The default value is 3600 seconds (1 hour), the maximum value is 2,592,000 seconds (30 days), and the minimum value is 1 second. + :param window_seconds: Only return metrics that have been actively reporting in this window. The default value is 3,600 seconds (1 hour), the maximum value is 5,184,000 seconds (60 days), and the minimum value is 0. With ``0`` , the API returns only metrics that reported in the last few minutes. :type window_seconds: int, optional :param page_size: Maximum number of results per page. Send ``page[size]`` on the first request to opt in to pagination. On each subsequent request, send ``page[cursor]`` set to the value of ``meta.pagination.next_cursor`` from the previous response. The default value is 10000, the maximum value is 10000, and the minimum value is 1. :type page_size: int, optional diff --git a/src/datadog_api_client/v2/model/metric_tag_configuration_metric_type_category.py b/src/datadog_api_client/v2/model/metric_tag_configuration_metric_type_category.py index 89fa0d9046..2c59767dd1 100644 --- a/src/datadog_api_client/v2/model/metric_tag_configuration_metric_type_category.py +++ b/src/datadog_api_client/v2/model/metric_tag_configuration_metric_type_category.py @@ -16,16 +16,20 @@ class MetricTagConfigurationMetricTypeCategory(ModelSimple): """ The metric's type category. - :param value: If omitted defaults to "distribution". Must be one of ["non_distribution", "distribution"]. + :param value: If omitted defaults to "distribution". Must be one of ["non_distribution", "distribution", "exponential_histogram", "explicit_histogram"]. :type value: str """ allowed_values = { "non_distribution", "distribution", + "exponential_histogram", + "explicit_histogram", } NON_DISTRIBUTION: ClassVar["MetricTagConfigurationMetricTypeCategory"] DISTRIBUTION: ClassVar["MetricTagConfigurationMetricTypeCategory"] + EXPONENTIAL_HISTOGRAM: ClassVar["MetricTagConfigurationMetricTypeCategory"] + EXPLICIT_HISTOGRAM: ClassVar["MetricTagConfigurationMetricTypeCategory"] @cached_property def openapi_types(_): @@ -36,3 +40,9 @@ def openapi_types(_): MetricTagConfigurationMetricTypeCategory.NON_DISTRIBUTION = MetricTagConfigurationMetricTypeCategory("non_distribution") MetricTagConfigurationMetricTypeCategory.DISTRIBUTION = MetricTagConfigurationMetricTypeCategory("distribution") +MetricTagConfigurationMetricTypeCategory.EXPONENTIAL_HISTOGRAM = MetricTagConfigurationMetricTypeCategory( + "exponential_histogram" +) +MetricTagConfigurationMetricTypeCategory.EXPLICIT_HISTOGRAM = MetricTagConfigurationMetricTypeCategory( + "explicit_histogram" +)