File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
src/datadog_api_client/v1/api Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -32533,7 +32533,11 @@ 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. Use `/api/v2/metrics` instead.
32538+
32539+
32540+ Search for metrics from the last 24 hours in Datadog.'
3253732541 operationId: ListMetrics
3253832542 parameters:
3253932543 - description: Query string to search metrics upon. Can optionally be prefixed
Original file line number Diff line number Diff line change 44from __future__ import annotations
55
66from typing import Any , Dict , Union
7+ import warnings
78
89from datadog_api_client .api_client import ApiClient , Endpoint as _Endpoint
910from datadog_api_client .configuration import Configuration
@@ -289,7 +290,9 @@ def list_metrics(
289290 self ,
290291 q : str ,
291292 ) -> MetricSearchResponse :
292- """Search metrics.
293+ """Search metrics. **Deprecated**.
294+
295+ **Note** : This endpoint is deprecated. Use ``/api/v2/metrics`` instead.
293296
294297 Search for metrics from the last 24 hours in Datadog.
295298
@@ -300,6 +303,7 @@ def list_metrics(
300303 kwargs : Dict [str , Any ] = {}
301304 kwargs ["q" ] = q
302305
306+ warnings .warn ("list_metrics is deprecated" , DeprecationWarning , stacklevel = 2 )
303307 return self ._list_metrics_endpoint .call_with_http_info (** kwargs )
304308
305309 def query_metrics (
You can’t perform that action at this time.
0 commit comments