diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 0e0b198a8..291fd75a0 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/datadogV1/api/api_metrics.rs b/src/datadogV1/api/api_metrics.rs index cb5886694..b18058892 100644 --- a/src/datadogV1/api/api_metrics.rs +++ b/src/datadogV1/api/api_metrics.rs @@ -437,6 +437,8 @@ impl MetricsAPI { } } + /// **Note**: This endpoint is deprecated. Use `/api/v2/metrics` instead. + /// /// Search for metrics from the last 24 hours in Datadog. pub async fn list_metrics( &self, @@ -457,6 +459,8 @@ impl MetricsAPI { } } + /// **Note**: This endpoint is deprecated. Use `/api/v2/metrics` instead. + /// /// Search for metrics from the last 24 hours in Datadog. pub async fn list_metrics_with_http_info( &self,