@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class RumMetricsApi extends Object
| Constructor and Description |
|---|
RumMetricsApi() |
RumMetricsApi(ApiClient apiClient) |
public RumMetricsApi()
public RumMetricsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic RumMetricResponse createRumMetric(RumMetricCreateRequest body) throws ApiException
See createRumMetricWithHttpInfo(com.datadog.api.client.v2.model.RumMetricCreateRequest).
body - The definition of the new RUM-based metric. (required)ApiException - if fails to make API callpublic CompletableFuture<RumMetricResponse> createRumMetricAsync(RumMetricCreateRequest body)
See createRumMetricWithHttpInfoAsync(com.datadog.api.client.v2.model.RumMetricCreateRequest).
body - The definition of the new RUM-based metric. (required)public ApiResponse<RumMetricResponse> createRumMetricWithHttpInfo(RumMetricCreateRequest body) throws ApiException
body - The definition of the new RUM-based metric. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | Created | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<RumMetricResponse>> createRumMetricWithHttpInfoAsync(RumMetricCreateRequest body)
See createRumMetricWithHttpInfo(com.datadog.api.client.v2.model.RumMetricCreateRequest).
body - The definition of the new RUM-based metric. (required)public void deleteRumMetric(String metricId) throws ApiException
metricId - The name of the RUM-based metric. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteRumMetricAsync(String metricId)
metricId - The name of the RUM-based metric. (required)public ApiResponse<Void> deleteRumMetricWithHttpInfo(String metricId) throws ApiException
metricId - The name of the RUM-based metric. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 403 | Not Authorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteRumMetricWithHttpInfoAsync(String metricId)
metricId - The name of the RUM-based metric. (required)public RumMetricResponse getRumMetric(String metricId) throws ApiException
metricId - The name of the RUM-based metric. (required)ApiException - if fails to make API callpublic CompletableFuture<RumMetricResponse> getRumMetricAsync(String metricId)
metricId - The name of the RUM-based metric. (required)public ApiResponse<RumMetricResponse> getRumMetricWithHttpInfo(String metricId) throws ApiException
metricId - The name of the RUM-based metric. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Not Authorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<RumMetricResponse>> getRumMetricWithHttpInfoAsync(String metricId)
metricId - The name of the RUM-based metric. (required)public RumMetricsResponse listRumMetrics() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<RumMetricsResponse> listRumMetricsAsync()
public ApiResponse<RumMetricsResponse> listRumMetricsWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Not Authorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<RumMetricsResponse>> listRumMetricsWithHttpInfoAsync()
public RumMetricResponse updateRumMetric(String metricId, RumMetricUpdateRequest body) throws ApiException
metricId - The name of the RUM-based metric. (required)body - New definition of the RUM-based metric. (required)ApiException - if fails to make API callpublic CompletableFuture<RumMetricResponse> updateRumMetricAsync(String metricId, RumMetricUpdateRequest body)
metricId - The name of the RUM-based metric. (required)body - New definition of the RUM-based metric. (required)public ApiResponse<RumMetricResponse> updateRumMetricWithHttpInfo(String metricId, RumMetricUpdateRequest body) throws ApiException
metricId - The name of the RUM-based metric. (required)body - New definition of the RUM-based metric. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 404 | Not Found | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<RumMetricResponse>> updateRumMetricWithHttpInfoAsync(String metricId, RumMetricUpdateRequest body)
metricId - The name of the RUM-based metric. (required)body - New definition of the RUM-based metric. (required)Copyright © 2026. All rights reserved.