From c1dd244e190d20dbdfc8f8d83d9b5779c7c8aea0 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 5 May 2026 18:39:13 +0000 Subject: [PATCH] Regenerate client from commit beacd46 of spec repo --- .generator/schemas/v2/openapi.yaml | 12 ++++++--- .../datadog/api/client/v2/api/MetricsApi.java | 27 +++++++++++++------ 2 files changed, 27 insertions(+), 12 deletions(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 95a832b986b..fb7cde48c92 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -107887,6 +107887,8 @@ paths: get: description: |- Get a list of actively reporting metrics for your organization. Pagination is optional using the `page[cursor]` and `page[size]` query parameters. + + Query parameters use bracket notation (for example, `filter[tags]`, `filter[queried][window][seconds]`). Pass them as standard URL query strings, URL-encoding the brackets if your client does not handle them. For example: `GET /api/v2/metrics?filter[tags]=env:prod&window[seconds]=86400&page[size]=500`. operationId: ListTagConfigurations parameters: - description: Only return custom metrics that have been configured with Metrics Without Limits. @@ -107926,7 +107928,7 @@ paths: schema: type: boolean - description: |- - Only return metrics that have been queried or not queried in the specified window. Dependent on being sent with `filter[queried]`. 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. + 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`. example: 15552000 in: query name: filter[queried][window][seconds] @@ -107938,7 +107940,7 @@ paths: minimum: 1 type: integer - description: |- - Only return metrics that were submitted with tags matching this expression. You can use AND, OR, IN, and wildcards (for example, service:web*). + 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*`. example: "env IN (staging,test) AND service:web*" in: query name: filter[tags] @@ -107965,7 +107967,8 @@ paths: maximum: 2592000 minimum: 1 type: integer - - description: Maximum number of results per page. Use with `page[cursor]` for pagination. The default value is 10000, the maximum value is 10000, and the minimum value is 1. + - 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. in: query name: page[size] required: false @@ -108369,7 +108372,8 @@ paths: operationId: EstimateMetricsOutputSeries parameters: - $ref: "#/components/parameters/MetricName" - - description: Filtered tag keys that the metric is configured to query with. + - description: |- + Comma-separated list of tag keys that the metric is configured to query with. For example: `filter[groups]=app,host`. example: "app,host" in: query name: filter[groups] 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 302a3f37aac..0694c174a0a 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 @@ -674,7 +674,8 @@ public static class EstimateMetricsOutputSeriesOptionalParameters { /** * Set filterGroups. * - * @param filterGroups Filtered tag keys that the metric is configured to query with. (optional) + * @param filterGroups Comma-separated list of tag keys that the metric is configured to query + * with. For example: filter[groups]=app,host. (optional) * @return EstimateMetricsOutputSeriesOptionalParameters */ public EstimateMetricsOutputSeriesOptionalParameters filterGroups(String filterGroups) { @@ -1670,10 +1671,12 @@ public ListTagConfigurationsOptionalParameters filterQueried(Boolean filterQueri /** * Set filterQueriedWindowSeconds. * - * @param filterQueriedWindowSeconds Only return metrics that have been queried or not queried - * in the specified window. Dependent on being sent with filter[queried]. 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. (optional, default to 2592000) + * @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: + * filter[queried]=true&filter[queried][window][seconds]=604800. (optional, + * default to 2592000) * @return ListTagConfigurationsOptionalParameters */ public ListTagConfigurationsOptionalParameters filterQueriedWindowSeconds( @@ -1686,7 +1689,8 @@ public ListTagConfigurationsOptionalParameters filterQueriedWindowSeconds( * Set filterTags. * * @param filterTags Only return metrics that were submitted with tags matching this expression. - * You can use AND, OR, IN, and wildcards (for example, service:web*). (optional) + * You can use AND, OR, IN, and wildcards. For example: + * filter[tags]=env IN (staging,test) AND service:web*. (optional) * @return ListTagConfigurationsOptionalParameters */ public ListTagConfigurationsOptionalParameters filterTags(String filterTags) { @@ -1723,8 +1727,10 @@ public ListTagConfigurationsOptionalParameters windowSeconds(Long windowSeconds) /** * Set pageSize. * - * @param pageSize Maximum number of results per page. Use with page[cursor] for - * pagination. The default value is 10000, the maximum value is 10000, and the minimum value + * @param pageSize 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. (optional, default to 10000) * @return ListTagConfigurationsOptionalParameters */ @@ -1867,6 +1873,11 @@ public PaginationIterable listTagConfiguratio * Get a list of actively reporting metrics for your organization. Pagination is optional using * the page[cursor] and page[size] query parameters. * + *

Query parameters use bracket notation (for example, filter[tags], + * filter[queried][window][seconds]). Pass them as standard URL query strings, URL-encoding + * the brackets if your client does not handle them. For example: + * GET /api/v2/metrics?filter[tags]=env:prod&window[seconds]=86400&page[size]=500. + * * @param parameters Optional parameters for the request. * @return ApiResponse<MetricsAndMetricTagConfigurationsResponse> * @throws ApiException if fails to make API call