From ca85f6334f908e58ea08832e1d9bffee0ea6d8e0 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 4 Nov 2025 19:26:17 +0000 Subject: [PATCH] Regenerate client from commit 23b5e7e of spec repo --- .generator/schemas/v1/openapi.yaml | 6 +++++- lib/datadog_api_client/v1/api/metrics_api.rb | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 0e0b198a8d7e..291fd75a09d3 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/lib/datadog_api_client/v1/api/metrics_api.rb b/lib/datadog_api_client/v1/api/metrics_api.rb index 781501336335..c9f24365a742 100644 --- a/lib/datadog_api_client/v1/api/metrics_api.rb +++ b/lib/datadog_api_client/v1/api/metrics_api.rb @@ -168,12 +168,17 @@ def list_metrics(q, opts = {}) # Search metrics. # + # **Note**: This endpoint is deprecated. Use `/api/v2/metrics` instead. + # # Search for metrics from the last 24 hours in Datadog. # + # @deprecated This API is deprecated. + # # @param q [String] Query string to search metrics upon. Can optionally be prefixed with `metrics:`. # @param opts [Hash] the optional parameters # @return [Array<(MetricSearchResponse, Integer, Hash)>] MetricSearchResponse data, response status code and response headers def list_metrics_with_http_info(q, opts = {}) + warn "[DEPRECATION] `ListMetrics` is deprecated." if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: MetricsAPI.list_metrics ...'