diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 0e0b198a8d7..291fd75a09d 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -32533,7 +32533,11 @@ paths: - timeseries_query /api/v1/search: get: - description: Search for metrics from the last 24 hours in Datadog. + deprecated: true + description: '**Note**: This endpoint is deprecated. Use `/api/v2/metrics` instead. + + + Search for metrics from the last 24 hours in Datadog.' operationId: ListMetrics parameters: - description: Query string to search metrics upon. Can optionally be prefixed diff --git a/src/main/java/com/datadog/api/client/v1/api/MetricsApi.java b/src/main/java/com/datadog/api/client/v1/api/MetricsApi.java index 444753a9d0a..b4213e5dbe3 100644 --- a/src/main/java/com/datadog/api/client/v1/api/MetricsApi.java +++ b/src/main/java/com/datadog/api/client/v1/api/MetricsApi.java @@ -408,7 +408,9 @@ public CompletableFuture> listActiveMetricsWith * . (required) * @return MetricSearchResponse * @throws ApiException if fails to make API call + * @deprecated */ + @Deprecated public MetricSearchResponse listMetrics(String q) throws ApiException { return listMetricsWithHttpInfo(q).getData(); } @@ -421,7 +423,9 @@ public MetricSearchResponse listMetrics(String q) throws ApiException { * @param q Query string to search metrics upon. Can optionally be prefixed with metrics: * . (required) * @return CompletableFuture<MetricSearchResponse> + * @deprecated */ + @Deprecated public CompletableFuture listMetricsAsync(String q) { return listMetricsWithHttpInfoAsync(q) .thenApply( @@ -431,7 +435,9 @@ public CompletableFuture listMetricsAsync(String q) { } /** - * Search for metrics from the last 24 hours in Datadog. + * Note: This endpoint is deprecated. Use /api/v2/metrics instead. + * + *

Search for metrics from the last 24 hours in Datadog. * * @param q Query string to search metrics upon. Can optionally be prefixed with metrics: * . (required) @@ -446,7 +452,10 @@ public CompletableFuture listMetricsAsync(String q) { * 403 Forbidden - * 429 Too many requests - * + * + * @deprecated */ + @Deprecated public ApiResponse listMetricsWithHttpInfo(String q) throws ApiException { Object localVarPostBody = null; @@ -490,7 +499,9 @@ public ApiResponse listMetricsWithHttpInfo(String q) throw * @param q Query string to search metrics upon. Can optionally be prefixed with metrics: * . (required) * @return CompletableFuture<ApiResponse<MetricSearchResponse>> + * @deprecated */ + @Deprecated public CompletableFuture> listMetricsWithHttpInfoAsync( String q) { Object localVarPostBody = null;