Skip to content

Commit b712eb4

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b2a1c28 of spec repo
1 parent f15169a commit b712eb4

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32533,7 +32533,12 @@ paths:
3253332533
- timeseries_query
3253432534
/api/v1/search:
3253532535
get:
32536-
description: Search for metrics from the last 24 hours in Datadog.
32536+
deprecated: true
32537+
description: '**Note**: This endpoint is deprecated. Please use `/api/v2/metrics`
32538+
instead.
32539+
32540+
32541+
Search for metrics from the last 24 hours in Datadog.'
3253732542
operationId: ListMetrics
3253832543
parameters:
3253932544
- 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. Please 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)