@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class SpansMetricsApi extends Object
| Constructor and Description |
|---|
SpansMetricsApi() |
SpansMetricsApi(ApiClient apiClient) |
public SpansMetricsApi()
public SpansMetricsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic SpansMetricResponse createSpansMetric(SpansMetricCreateRequest body) throws ApiException
See createSpansMetricWithHttpInfo(com.datadog.api.client.v2.model.SpansMetricCreateRequest).
body - The definition of the new span-based metric. (required)ApiException - if fails to make API callpublic CompletableFuture<SpansMetricResponse> createSpansMetricAsync(SpansMetricCreateRequest body)
See createSpansMetricWithHttpInfoAsync(com.datadog.api.client.v2.model.SpansMetricCreateRequest).
body - The definition of the new span-based metric. (required)public ApiResponse<SpansMetricResponse> createSpansMetricWithHttpInfo(SpansMetricCreateRequest body) throws ApiException
body - The definition of the new span-based metric. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SpansMetricResponse>> createSpansMetricWithHttpInfoAsync(SpansMetricCreateRequest body)
See createSpansMetricWithHttpInfo(com.datadog.api.client.v2.model.SpansMetricCreateRequest).
body - The definition of the new span-based metric. (required)public void deleteSpansMetric(String metricId) throws ApiException
metricId - The name of the span-based metric. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteSpansMetricAsync(String metricId)
metricId - The name of the span-based metric. (required)public ApiResponse<Void> deleteSpansMetricWithHttpInfo(String metricId) throws ApiException
metricId - The name of the span-based metric. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | OK | - |
| 403 | Not Authorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteSpansMetricWithHttpInfoAsync(String metricId)
metricId - The name of the span-based metric. (required)public SpansMetricResponse getSpansMetric(String metricId) throws ApiException
metricId - The name of the span-based metric. (required)ApiException - if fails to make API callpublic CompletableFuture<SpansMetricResponse> getSpansMetricAsync(String metricId)
metricId - The name of the span-based metric. (required)public ApiResponse<SpansMetricResponse> getSpansMetricWithHttpInfo(String metricId) throws ApiException
metricId - The name of the span-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<SpansMetricResponse>> getSpansMetricWithHttpInfoAsync(String metricId)
metricId - The name of the span-based metric. (required)public SpansMetricsResponse listSpansMetrics() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<SpansMetricsResponse> listSpansMetricsAsync()
public ApiResponse<SpansMetricsResponse> listSpansMetricsWithHttpInfo() 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<SpansMetricsResponse>> listSpansMetricsWithHttpInfoAsync()
public SpansMetricResponse updateSpansMetric(String metricId, SpansMetricUpdateRequest body) throws ApiException
metricId - The name of the span-based metric. (required)body - New definition of the span-based metric. (required)ApiException - if fails to make API callpublic CompletableFuture<SpansMetricResponse> updateSpansMetricAsync(String metricId, SpansMetricUpdateRequest body)
metricId - The name of the span-based metric. (required)body - New definition of the span-based metric. (required)public ApiResponse<SpansMetricResponse> updateSpansMetricWithHttpInfo(String metricId, SpansMetricUpdateRequest body) throws ApiException
metricId - The name of the span-based metric. (required)body - New definition of the span-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 | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SpansMetricResponse>> updateSpansMetricWithHttpInfoAsync(String metricId, SpansMetricUpdateRequest body)
metricId - The name of the span-based metric. (required)body - New definition of the span-based metric. (required)Copyright © 2024. All rights reserved.