Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 12 additions & 1 deletion src/main/java/com/datadog/api/client/v1/api/MetricsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,9 @@ public CompletableFuture<ApiResponse<MetricsListResponse>> listActiveMetricsWith
* </code>. (required)
* @return MetricSearchResponse
* @throws ApiException if fails to make API call
* @deprecated
*/
@Deprecated
public MetricSearchResponse listMetrics(String q) throws ApiException {
return listMetricsWithHttpInfo(q).getData();
}
Expand All @@ -421,7 +423,9 @@ public MetricSearchResponse listMetrics(String q) throws ApiException {
* @param q Query string to search metrics upon. Can optionally be prefixed with <code>metrics:
* </code>. (required)
* @return CompletableFuture&lt;MetricSearchResponse&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<MetricSearchResponse> listMetricsAsync(String q) {
return listMetricsWithHttpInfoAsync(q)
.thenApply(
Expand All @@ -431,7 +435,9 @@ public CompletableFuture<MetricSearchResponse> listMetricsAsync(String q) {
}

/**
* Search for metrics from the last 24 hours in Datadog.
* <strong>Note</strong>: This endpoint is deprecated. Use <code>/api/v2/metrics</code> instead.
*
* <p>Search for metrics from the last 24 hours in Datadog.
*
* @param q Query string to search metrics upon. Can optionally be prefixed with <code>metrics:
* </code>. (required)
Expand All @@ -446,7 +452,10 @@ public CompletableFuture<MetricSearchResponse> listMetricsAsync(String q) {
* <tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
* </table>
*
* @deprecated
*/
@Deprecated
public ApiResponse<MetricSearchResponse> listMetricsWithHttpInfo(String q) throws ApiException {
Object localVarPostBody = null;

Expand Down Expand Up @@ -490,7 +499,9 @@ public ApiResponse<MetricSearchResponse> listMetricsWithHttpInfo(String q) throw
* @param q Query string to search metrics upon. Can optionally be prefixed with <code>metrics:
* </code>. (required)
* @return CompletableFuture&lt;ApiResponse&lt;MetricSearchResponse&gt;&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<ApiResponse<MetricSearchResponse>> listMetricsWithHttpInfoAsync(
String q) {
Object localVarPostBody = null;
Expand Down
Loading