Skip to content

Commit 6116768

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 23b5e7e of spec repo
1 parent 81af379 commit 6116768

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

src/main/java/com/datadog/api/client/v1/api/MetricsApi.java

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,9 @@ public CompletableFuture<ApiResponse<MetricsListResponse>> listActiveMetricsWith
408408
* </code>. (required)
409409
* @return MetricSearchResponse
410410
* @throws ApiException if fails to make API call
411+
* @deprecated
411412
*/
413+
@Deprecated
412414
public MetricSearchResponse listMetrics(String q) throws ApiException {
413415
return listMetricsWithHttpInfo(q).getData();
414416
}
@@ -421,7 +423,9 @@ public MetricSearchResponse listMetrics(String q) throws ApiException {
421423
* @param q Query string to search metrics upon. Can optionally be prefixed with <code>metrics:
422424
* </code>. (required)
423425
* @return CompletableFuture&lt;MetricSearchResponse&gt;
426+
* @deprecated
424427
*/
428+
@Deprecated
425429
public CompletableFuture<MetricSearchResponse> listMetricsAsync(String q) {
426430
return listMetricsWithHttpInfoAsync(q)
427431
.thenApply(
@@ -431,7 +435,9 @@ public CompletableFuture<MetricSearchResponse> listMetricsAsync(String q) {
431435
}
432436

433437
/**
434-
* Search for metrics from the last 24 hours in Datadog.
438+
* <strong>Note</strong>: This endpoint is deprecated. Use <code>/api/v2/metrics</code> instead.
439+
*
440+
* <p>Search for metrics from the last 24 hours in Datadog.
435441
*
436442
* @param q Query string to search metrics upon. Can optionally be prefixed with <code>metrics:
437443
* </code>. (required)
@@ -446,7 +452,10 @@ public CompletableFuture<MetricSearchResponse> listMetricsAsync(String q) {
446452
* <tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
447453
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
448454
* </table>
455+
*
456+
* @deprecated
449457
*/
458+
@Deprecated
450459
public ApiResponse<MetricSearchResponse> listMetricsWithHttpInfo(String q) throws ApiException {
451460
Object localVarPostBody = null;
452461

@@ -490,7 +499,9 @@ public ApiResponse<MetricSearchResponse> listMetricsWithHttpInfo(String q) throw
490499
* @param q Query string to search metrics upon. Can optionally be prefixed with <code>metrics:
491500
* </code>. (required)
492501
* @return CompletableFuture&lt;ApiResponse&lt;MetricSearchResponse&gt;&gt;
502+
* @deprecated
493503
*/
504+
@Deprecated
494505
public CompletableFuture<ApiResponse<MetricSearchResponse>> listMetricsWithHttpInfoAsync(
495506
String q) {
496507
Object localVarPostBody = null;

0 commit comments

Comments
 (0)