@@ -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<MetricSearchResponse>
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<ApiResponse<MetricSearchResponse>>
502+ * @deprecated
493503 */
504+ @ Deprecated
494505 public CompletableFuture <ApiResponse <MetricSearchResponse >> listMetricsWithHttpInfoAsync (
495506 String q ) {
496507 Object localVarPostBody = null ;
0 commit comments