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/services/metrics/src/v1/MetricsApi.ts b/services/metrics/src/v1/MetricsApi.ts index c9b93115cac5..0e02c9c2318a 100644 --- a/services/metrics/src/v1/MetricsApi.ts +++ b/services/metrics/src/v1/MetricsApi.ts @@ -1042,6 +1042,8 @@ export class MetricsApi { } /** + * **Note**: This endpoint is deprecated. Use `/api/v2/metrics` instead. + * * Search for metrics from the last 24 hours in Datadog. * @param param The request object */