Skip to content

Commit f0976ac

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[METEXP-2068] Deprecate api/v1/search Endpoint (#1008)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 467474e commit f0976ac

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-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

src/datadogV1/api/api_metrics.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,8 @@ impl MetricsAPI {
437437
}
438438
}
439439

440+
/// **Note**: This endpoint is deprecated. Use `/api/v2/metrics` instead.
441+
///
440442
/// Search for metrics from the last 24 hours in Datadog.
441443
pub async fn list_metrics(
442444
&self,
@@ -457,6 +459,8 @@ impl MetricsAPI {
457459
}
458460
}
459461

462+
/// **Note**: This endpoint is deprecated. Use `/api/v2/metrics` instead.
463+
///
460464
/// Search for metrics from the last 24 hours in Datadog.
461465
pub async fn list_metrics_with_http_info(
462466
&self,

0 commit comments

Comments
 (0)