diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 4656cbfda7c..afefc6d0217 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/main/java/com/datadog/api/client/v2/api/MetricsApi.java b/src/main/java/com/datadog/api/client/v2/api/MetricsApi.java index ddfe59d71bd..f3366a60d92 100644 --- a/src/main/java/com/datadog/api/client/v2/api/MetricsApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/MetricsApi.java @@ -3609,10 +3609,12 @@ public ListTagConfigurationsOptionalParameters filterQueried(Boolean filterQueri /** * Set filterQueriedWindowSeconds. * - * @param filterQueriedWindowSeconds 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: + * @param filterQueriedWindowSeconds 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. (optional, * default to 2592000) * @return ListTagConfigurationsOptionalParameters @@ -3679,9 +3681,10 @@ public ListTagConfigurationsOptionalParameters sort(String sort) { /** * Set windowSeconds. * - * @param windowSeconds 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. (optional, default to 3600) + * @param windowSeconds 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. (optional, default to 3600) * @return ListTagConfigurationsOptionalParameters */ public ListTagConfigurationsOptionalParameters windowSeconds(Long windowSeconds) { diff --git a/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationMetricTypeCategory.java b/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationMetricTypeCategory.java index c96510bba91..b4e028b4943 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationMetricTypeCategory.java +++ b/src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationMetricTypeCategory.java @@ -26,12 +26,18 @@ public class MetricTagConfigurationMetricTypeCategory extends ModelEnum { private static final Set allowedValues = - new HashSet(Arrays.asList("non_distribution", "distribution")); + new HashSet( + Arrays.asList( + "non_distribution", "distribution", "exponential_histogram", "explicit_histogram")); public static final MetricTagConfigurationMetricTypeCategory NON_DISTRIBUTION = new MetricTagConfigurationMetricTypeCategory("non_distribution"); public static final MetricTagConfigurationMetricTypeCategory DISTRIBUTION = new MetricTagConfigurationMetricTypeCategory("distribution"); + public static final MetricTagConfigurationMetricTypeCategory EXPONENTIAL_HISTOGRAM = + new MetricTagConfigurationMetricTypeCategory("exponential_histogram"); + public static final MetricTagConfigurationMetricTypeCategory EXPLICIT_HISTOGRAM = + new MetricTagConfigurationMetricTypeCategory("explicit_histogram"); MetricTagConfigurationMetricTypeCategory(String value) { super(value, allowedValues);