Skip to content

Commit 080d308

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 23b5e7e of spec repo (#3233)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 7ae24b4 commit 080d308

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
@@ -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/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)