Package com.datadog.api.client.v2.api
Class SpansMetricsApi
java.lang.Object
com.datadog.api.client.v2.api.SpansMetricsApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class SpansMetricsApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a span-based metric.Create a span-based metric.Create a metric based on your ingested spans in your organization.Create a span-based metric.voiddeleteSpansMetric(String metricId) Delete a span-based metric.deleteSpansMetricAsync(String metricId) Delete a span-based metric.deleteSpansMetricWithHttpInfo(String metricId) Delete a specific span-based metric from your organization.deleteSpansMetricWithHttpInfoAsync(String metricId) Delete a span-based metric.Get the API client.getSpansMetric(String metricId) Get a span-based metric.getSpansMetricAsync(String metricId) Get a span-based metric.getSpansMetricWithHttpInfo(String metricId) Get a specific span-based metric from your organization.getSpansMetricWithHttpInfoAsync(String metricId) Get a span-based metric.Get all span-based metrics.Get all span-based metrics.Get the list of configured span-based metrics with their definitions.Get all span-based metrics.voidsetApiClient(ApiClient apiClient) Set the API client.updateSpansMetric(String metricId, SpansMetricUpdateRequest body) Update a span-based metric.updateSpansMetricAsync(String metricId, SpansMetricUpdateRequest body) Update a span-based metric.updateSpansMetricWithHttpInfo(String metricId, SpansMetricUpdateRequest body) Update a specific span-based metric from your organization.updateSpansMetricWithHttpInfoAsync(String metricId, SpansMetricUpdateRequest body) Update a span-based metric.
-
Constructor Details
-
SpansMetricsApi
public SpansMetricsApi() -
SpansMetricsApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createSpansMetric
Create a span-based metric.See
createSpansMetricWithHttpInfo(com.datadog.api.client.v2.model.SpansMetricCreateRequest).- Parameters:
body- The definition of the new span-based metric. (required)- Returns:
- SpansMetricResponse
- Throws:
ApiException- if fails to make API call
-
createSpansMetricAsync
Create a span-based metric.See
createSpansMetricWithHttpInfoAsync(com.datadog.api.client.v2.model.SpansMetricCreateRequest).- Parameters:
body- The definition of the new span-based metric. (required)- Returns:
- CompletableFuture<SpansMetricResponse>
-
createSpansMetricWithHttpInfo
public ApiResponse<SpansMetricResponse> createSpansMetricWithHttpInfo(SpansMetricCreateRequest body) throws ApiException Create a metric based on your ingested spans in your organization. Returns the span-based metric object from the request body when the request is successful.- Parameters:
body- The definition of the new span-based metric. (required)- Returns:
- ApiResponse<SpansMetricResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Not Authorized - 409 Conflict - 429 Too many requests -
-
createSpansMetricWithHttpInfoAsync
public CompletableFuture<ApiResponse<SpansMetricResponse>> createSpansMetricWithHttpInfoAsync(SpansMetricCreateRequest body) Create a span-based metric.See
createSpansMetricWithHttpInfo(com.datadog.api.client.v2.model.SpansMetricCreateRequest).- Parameters:
body- The definition of the new span-based metric. (required)- Returns:
- CompletableFuture<ApiResponse<SpansMetricResponse>>
-
deleteSpansMetric
Delete a span-based metric.- Parameters:
metricId- The name of the span-based metric. (required)- Throws:
ApiException- if fails to make API call
-
deleteSpansMetricAsync
Delete a span-based metric.- Parameters:
metricId- The name of the span-based metric. (required)- Returns:
- CompletableFuture
-
deleteSpansMetricWithHttpInfo
Delete a specific span-based metric from your organization.- Parameters:
metricId- The name of the span-based metric. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 OK - 403 Not Authorized - 404 Not Found - 429 Too many requests -
-
deleteSpansMetricWithHttpInfoAsync
Delete a span-based metric.- Parameters:
metricId- The name of the span-based metric. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
getSpansMetric
Get a span-based metric.- Parameters:
metricId- The name of the span-based metric. (required)- Returns:
- SpansMetricResponse
- Throws:
ApiException- if fails to make API call
-
getSpansMetricAsync
Get a span-based metric.- Parameters:
metricId- The name of the span-based metric. (required)- Returns:
- CompletableFuture<SpansMetricResponse>
-
getSpansMetricWithHttpInfo
public ApiResponse<SpansMetricResponse> getSpansMetricWithHttpInfo(String metricId) throws ApiException Get a specific span-based metric from your organization.- Parameters:
metricId- The name of the span-based metric. (required)- Returns:
- ApiResponse<SpansMetricResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Not Authorized - 404 Not Found - 429 Too many requests -
-
getSpansMetricWithHttpInfoAsync
public CompletableFuture<ApiResponse<SpansMetricResponse>> getSpansMetricWithHttpInfoAsync(String metricId) Get a span-based metric.- Parameters:
metricId- The name of the span-based metric. (required)- Returns:
- CompletableFuture<ApiResponse<SpansMetricResponse>>
-
listSpansMetrics
Get all span-based metrics.- Returns:
- SpansMetricsResponse
- Throws:
ApiException- if fails to make API call
-
listSpansMetricsAsync
Get all span-based metrics.- Returns:
- CompletableFuture<SpansMetricsResponse>
-
listSpansMetricsWithHttpInfo
Get the list of configured span-based metrics with their definitions.- Returns:
- ApiResponse<SpansMetricsResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Not Authorized - 429 Too many requests -
-
listSpansMetricsWithHttpInfoAsync
Get all span-based metrics.- Returns:
- CompletableFuture<ApiResponse<SpansMetricsResponse>>
-
updateSpansMetric
public SpansMetricResponse updateSpansMetric(String metricId, SpansMetricUpdateRequest body) throws ApiException Update a span-based metric.- Parameters:
metricId- The name of the span-based metric. (required)body- New definition of the span-based metric. (required)- Returns:
- SpansMetricResponse
- Throws:
ApiException- if fails to make API call
-
updateSpansMetricAsync
public CompletableFuture<SpansMetricResponse> updateSpansMetricAsync(String metricId, SpansMetricUpdateRequest body) Update a span-based metric.- Parameters:
metricId- The name of the span-based metric. (required)body- New definition of the span-based metric. (required)- Returns:
- CompletableFuture<SpansMetricResponse>
-
updateSpansMetricWithHttpInfo
public ApiResponse<SpansMetricResponse> updateSpansMetricWithHttpInfo(String metricId, SpansMetricUpdateRequest body) throws ApiException Update a specific span-based metric from your organization. Returns the span-based metric object from the request body when the request is successful.- Parameters:
metricId- The name of the span-based metric. (required)body- New definition of the span-based metric. (required)- Returns:
- ApiResponse<SpansMetricResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Not Authorized - 404 Not Found - 429 Too many requests -
-
updateSpansMetricWithHttpInfoAsync
public CompletableFuture<ApiResponse<SpansMetricResponse>> updateSpansMetricWithHttpInfoAsync(String metricId, SpansMetricUpdateRequest body) Update a span-based metric.- Parameters:
metricId- The name of the span-based metric. (required)body- New definition of the span-based metric. (required)- Returns:
- CompletableFuture<ApiResponse<SpansMetricResponse>>
-