Package com.datadog.api.client.v2.api
Class ApmRetentionFiltersApi
java.lang.Object
com.datadog.api.client.v2.api.ApmRetentionFiltersApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ApmRetentionFiltersApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a retention filter.Create a retention filter.Create a retention filter to index spans in your organization.Create a retention filter.voiddeleteApmRetentionFilter(String filterId) Delete a retention filter.deleteApmRetentionFilterAsync(String filterId) Delete a retention filter.deleteApmRetentionFilterWithHttpInfo(String filterId) Delete a specific retention filter from your organization.Delete a retention filter.Get the API client.getApmRetentionFilter(String filterId) Get a given APM retention filter.getApmRetentionFilterAsync(String filterId) Get a given APM retention filter.getApmRetentionFilterWithHttpInfo(String filterId) Get an APM retention filter.getApmRetentionFilterWithHttpInfoAsync(String filterId) Get a given APM retention filter.List all APM retention filters.List all APM retention filters.Get the list of APM retention filters.List all APM retention filters.voidRe-order retention filters.Re-order retention filters.Re-order the execution order of retention filters.Re-order retention filters.voidsetApiClient(ApiClient apiClient) Set the API client.updateApmRetentionFilter(String filterId, RetentionFilterUpdateRequest body) Update a retention filter.updateApmRetentionFilterAsync(String filterId, RetentionFilterUpdateRequest body) Update a retention filter.updateApmRetentionFilterWithHttpInfo(String filterId, RetentionFilterUpdateRequest body) Update a retention filter from your organization.Update a retention filter.
-
Constructor Details
-
ApmRetentionFiltersApi
public ApmRetentionFiltersApi() -
ApmRetentionFiltersApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createApmRetentionFilter
public RetentionFilterCreateResponse createApmRetentionFilter(RetentionFilterCreateRequest body) throws ApiException Create a retention filter.See
createApmRetentionFilterWithHttpInfo(com.datadog.api.client.v2.model.RetentionFilterCreateRequest).- Parameters:
body- The definition of the new retention filter. (required)- Returns:
- RetentionFilterCreateResponse
- Throws:
ApiException- if fails to make API call
-
createApmRetentionFilterAsync
public CompletableFuture<RetentionFilterCreateResponse> createApmRetentionFilterAsync(RetentionFilterCreateRequest body) Create a retention filter.- Parameters:
body- The definition of the new retention filter. (required)- Returns:
- CompletableFuture<RetentionFilterCreateResponse>
-
createApmRetentionFilterWithHttpInfo
public ApiResponse<RetentionFilterCreateResponse> createApmRetentionFilterWithHttpInfo(RetentionFilterCreateRequest body) throws ApiException Create a retention filter to index spans in your organization. Returns the retention filter definition when the request is successful.Default filters with types spans-errors-sampling-processor and spans-appsec-sampling-processor cannot be created.
- Parameters:
body- The definition of the new retention filter. (required)- Returns:
- ApiResponse<RetentionFilterCreateResponse>
- 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 -
-
createApmRetentionFilterWithHttpInfoAsync
public CompletableFuture<ApiResponse<RetentionFilterCreateResponse>> createApmRetentionFilterWithHttpInfoAsync(RetentionFilterCreateRequest body) Create a retention filter.See
createApmRetentionFilterWithHttpInfo(com.datadog.api.client.v2.model.RetentionFilterCreateRequest).- Parameters:
body- The definition of the new retention filter. (required)- Returns:
- CompletableFuture<ApiResponse<RetentionFilterCreateResponse>>
-
deleteApmRetentionFilter
Delete a retention filter.- Parameters:
filterId- The ID of the retention filter. (required)- Throws:
ApiException- if fails to make API call
-
deleteApmRetentionFilterAsync
Delete a retention filter.See
deleteApmRetentionFilterWithHttpInfoAsync(java.lang.String).- Parameters:
filterId- The ID of the retention filter. (required)- Returns:
- CompletableFuture
-
deleteApmRetentionFilterWithHttpInfo
Delete a specific retention filter from your organization.Default filters with types spans-errors-sampling-processor and spans-appsec-sampling-processor cannot be deleted.
- Parameters:
filterId- The ID of the retention filter. (required)- Returns:
- ApiResponse<Void>
- 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 -
-
deleteApmRetentionFilterWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteApmRetentionFilterWithHttpInfoAsync(String filterId) Delete a retention filter.- Parameters:
filterId- The ID of the retention filter. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
getApmRetentionFilter
Get a given APM retention filter.- Parameters:
filterId- The ID of the retention filter. (required)- Returns:
- RetentionFilterResponse
- Throws:
ApiException- if fails to make API call
-
getApmRetentionFilterAsync
Get a given APM retention filter.See
getApmRetentionFilterWithHttpInfoAsync(java.lang.String).- Parameters:
filterId- The ID of the retention filter. (required)- Returns:
- CompletableFuture<RetentionFilterResponse>
-
getApmRetentionFilterWithHttpInfo
public ApiResponse<RetentionFilterResponse> getApmRetentionFilterWithHttpInfo(String filterId) throws ApiException Get an APM retention filter.- Parameters:
filterId- The ID of the retention filter. (required)- Returns:
- ApiResponse<RetentionFilterResponse>
- 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 -
-
getApmRetentionFilterWithHttpInfoAsync
public CompletableFuture<ApiResponse<RetentionFilterResponse>> getApmRetentionFilterWithHttpInfoAsync(String filterId) Get a given APM retention filter.- Parameters:
filterId- The ID of the retention filter. (required)- Returns:
- CompletableFuture<ApiResponse<RetentionFilterResponse>>
-
listApmRetentionFilters
List all APM retention filters.- Returns:
- RetentionFiltersResponse
- Throws:
ApiException- if fails to make API call
-
listApmRetentionFiltersAsync
List all APM retention filters.- Returns:
- CompletableFuture<RetentionFiltersResponse>
-
listApmRetentionFiltersWithHttpInfo
public ApiResponse<RetentionFiltersResponse> listApmRetentionFiltersWithHttpInfo() throws ApiExceptionGet the list of APM retention filters.- Returns:
- ApiResponse<RetentionFiltersResponse>
- 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 -
-
listApmRetentionFiltersWithHttpInfoAsync
public CompletableFuture<ApiResponse<RetentionFiltersResponse>> listApmRetentionFiltersWithHttpInfoAsync()List all APM retention filters.- Returns:
- CompletableFuture<ApiResponse<RetentionFiltersResponse>>
-
reorderApmRetentionFilters
Re-order retention filters.- Parameters:
body- The list of retention filters in the new order. (required)- Throws:
ApiException- if fails to make API call
-
reorderApmRetentionFiltersAsync
Re-order retention filters.- Parameters:
body- The list of retention filters in the new order. (required)- Returns:
- CompletableFuture
-
reorderApmRetentionFiltersWithHttpInfo
public ApiResponse<Void> reorderApmRetentionFiltersWithHttpInfo(ReorderRetentionFiltersRequest body) throws ApiException Re-order the execution order of retention filters.- Parameters:
body- The list of retention filters in the new order. (required)- Returns:
- ApiResponse<Void>
- 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 - 429 Too many requests -
-
reorderApmRetentionFiltersWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> reorderApmRetentionFiltersWithHttpInfoAsync(ReorderRetentionFiltersRequest body) Re-order retention filters.- Parameters:
body- The list of retention filters in the new order. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
updateApmRetentionFilter
public RetentionFilterResponse updateApmRetentionFilter(String filterId, RetentionFilterUpdateRequest body) throws ApiException Update a retention filter.- Parameters:
filterId- The ID of the retention filter. (required)body- The updated definition of the retention filter. (required)- Returns:
- RetentionFilterResponse
- Throws:
ApiException- if fails to make API call
-
updateApmRetentionFilterAsync
public CompletableFuture<RetentionFilterResponse> updateApmRetentionFilterAsync(String filterId, RetentionFilterUpdateRequest body) Update a retention filter.- Parameters:
filterId- The ID of the retention filter. (required)body- The updated definition of the retention filter. (required)- Returns:
- CompletableFuture<RetentionFilterResponse>
-
updateApmRetentionFilterWithHttpInfo
public ApiResponse<RetentionFilterResponse> updateApmRetentionFilterWithHttpInfo(String filterId, RetentionFilterUpdateRequest body) throws ApiException Update a retention filter from your organization.Default filters (filters with types spans-errors-sampling-processor and spans-appsec-sampling-processor) cannot be renamed or removed.
- Parameters:
filterId- The ID of the retention filter. (required)body- The updated definition of the retention filter. (required)- Returns:
- ApiResponse<RetentionFilterResponse>
- 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 -
-
updateApmRetentionFilterWithHttpInfoAsync
public CompletableFuture<ApiResponse<RetentionFilterResponse>> updateApmRetentionFilterWithHttpInfoAsync(String filterId, RetentionFilterUpdateRequest body) Update a retention filter.- Parameters:
filterId- The ID of the retention filter. (required)body- The updated definition of the retention filter. (required)- Returns:
- CompletableFuture<ApiResponse<RetentionFilterResponse>>
-