Skip to content

Commit fc92cfa

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 23b5e7e of spec repo (DataDog#2762)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 6a510cc commit fc92cfa

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32563,7 +32563,11 @@ paths:
3256332563
- timeseries_query
3256432564
/api/v1/search:
3256532565
get:
32566-
description: Search for metrics from the last 24 hours in Datadog.
32566+
deprecated: true
32567+
description: '**Note**: This endpoint is deprecated. Use `/api/v2/metrics` instead.
32568+
32569+
32570+
Search for metrics from the last 24 hours in Datadog.'
3256732571
operationId: ListMetrics
3256832572
parameters:
3256932573
- description: Query string to search metrics upon. Can optionally be prefixed

lib/datadog_api_client/v1/api/metrics_api.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,17 @@ def list_metrics(q, opts = {})
168168

169169
# Search metrics.
170170
#
171+
# **Note**: This endpoint is deprecated. Use `/api/v2/metrics` instead.
172+
#
171173
# Search for metrics from the last 24 hours in Datadog.
172174
#
175+
# @deprecated This API is deprecated.
176+
#
173177
# @param q [String] Query string to search metrics upon. Can optionally be prefixed with `metrics:`.
174178
# @param opts [Hash] the optional parameters
175179
# @return [Array<(MetricSearchResponse, Integer, Hash)>] MetricSearchResponse data, response status code and response headers
176180
def list_metrics_with_http_info(q, opts = {})
181+
warn "[DEPRECATION] `ListMetrics` is deprecated."
177182

178183
if @api_client.config.debugging
179184
@api_client.config.logger.debug 'Calling API: MetricsAPI.list_metrics ...'

0 commit comments

Comments
 (0)