Skip to content

Commit 0f313c8

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 23b5e7e of spec repo (#3448)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 37b44d6 commit 0f313c8

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

api/datadogV1/api_metrics.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,11 @@ func (a *MetricsApi) ListActiveMetrics(ctx _context.Context, from int64, o ...Li
210210
}
211211

212212
// ListMetrics Search metrics.
213+
// **Note**: This endpoint is deprecated. Use `/api/v2/metrics` instead.
214+
//
213215
// Search for metrics from the last 24 hours in Datadog.
216+
//
217+
// Deprecated: This API is deprecated.
214218
func (a *MetricsApi) ListMetrics(ctx _context.Context, q string) (MetricSearchResponse, *_nethttp.Response, error) {
215219
var (
216220
localVarHTTPMethod = _nethttp.MethodGet

0 commit comments

Comments
 (0)