@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ApmRetentionFiltersApi extends Object
| Constructor and Description |
|---|
ApmRetentionFiltersApi() |
ApmRetentionFiltersApi(ApiClient apiClient) |
public ApmRetentionFiltersApi()
public ApmRetentionFiltersApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic RetentionFilterCreateResponse createApmRetentionFilter(RetentionFilterCreateRequest body) throws ApiException
See createApmRetentionFilterWithHttpInfo(com.datadog.api.client.v2.model.RetentionFilterCreateRequest).
body - The definition of the new retention filter. (required)ApiException - if fails to make API callpublic CompletableFuture<RetentionFilterCreateResponse> createApmRetentionFilterAsync(RetentionFilterCreateRequest body)
body - The definition of the new retention filter. (required)public ApiResponse<RetentionFilterCreateResponse> createApmRetentionFilterWithHttpInfo(RetentionFilterCreateRequest body) throws ApiException
Default filters with types spans-errors-sampling-processor and spans-appsec-sampling-processor cannot be created.
body - The definition of the new retention filter. (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<RetentionFilterCreateResponse>> createApmRetentionFilterWithHttpInfoAsync(RetentionFilterCreateRequest body)
See createApmRetentionFilterWithHttpInfo(com.datadog.api.client.v2.model.RetentionFilterCreateRequest).
body - The definition of the new retention filter. (required)public void deleteApmRetentionFilter(String filterId) throws ApiException
filterId - The ID of the retention filter. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteApmRetentionFilterAsync(String filterId)
See deleteApmRetentionFilterWithHttpInfoAsync(java.lang.String).
filterId - The ID of the retention filter. (required)public ApiResponse<Void> deleteApmRetentionFilterWithHttpInfo(String filterId) throws ApiException
Default filters with types spans-errors-sampling-processor and spans-appsec-sampling-processor cannot be deleted.
filterId - The ID of the retention filter. (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<Void>> deleteApmRetentionFilterWithHttpInfoAsync(String filterId)
filterId - The ID of the retention filter. (required)public RetentionFilterResponse getApmRetentionFilter(String filterId) throws ApiException
filterId - The ID of the retention filter. (required)ApiException - if fails to make API callpublic CompletableFuture<RetentionFilterResponse> getApmRetentionFilterAsync(String filterId)
See getApmRetentionFilterWithHttpInfoAsync(java.lang.String).
filterId - The ID of the retention filter. (required)public ApiResponse<RetentionFilterResponse> getApmRetentionFilterWithHttpInfo(String filterId) throws ApiException
filterId - The ID of the retention filter. (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<RetentionFilterResponse>> getApmRetentionFilterWithHttpInfoAsync(String filterId)
filterId - The ID of the retention filter. (required)public RetentionFiltersResponse listApmRetentionFilters() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<RetentionFiltersResponse> listApmRetentionFiltersAsync()
public ApiResponse<RetentionFiltersResponse> listApmRetentionFiltersWithHttpInfo() 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<RetentionFiltersResponse>> listApmRetentionFiltersWithHttpInfoAsync()
public void reorderApmRetentionFilters(ReorderRetentionFiltersRequest body) throws ApiException
body - The list of retention filters in the new order. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> reorderApmRetentionFiltersAsync(ReorderRetentionFiltersRequest body)
body - The list of retention filters in the new order. (required)public ApiResponse<Void> reorderApmRetentionFiltersWithHttpInfo(ReorderRetentionFiltersRequest body) throws ApiException
body - The list of retention filters in the new order. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> reorderApmRetentionFiltersWithHttpInfoAsync(ReorderRetentionFiltersRequest body)
body - The list of retention filters in the new order. (required)public RetentionFilterResponse updateApmRetentionFilter(String filterId, RetentionFilterUpdateRequest body) throws ApiException
filterId - The ID of the retention filter. (required)body - The updated definition of the retention filter. (required)ApiException - if fails to make API callpublic CompletableFuture<RetentionFilterResponse> updateApmRetentionFilterAsync(String filterId, RetentionFilterUpdateRequest body)
filterId - The ID of the retention filter. (required)body - The updated definition of the retention filter. (required)public ApiResponse<RetentionFilterResponse> updateApmRetentionFilterWithHttpInfo(String filterId, RetentionFilterUpdateRequest body) throws ApiException
Default filters (filters with types spans-errors-sampling-processor and spans-appsec-sampling-processor) cannot be renamed or removed.
filterId - The ID of the retention filter. (required)body - The updated definition of the retention filter. (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<RetentionFilterResponse>> updateApmRetentionFilterWithHttpInfoAsync(String filterId, RetentionFilterUpdateRequest body)
filterId - The ID of the retention filter. (required)body - The updated definition of the retention filter. (required)Copyright © 2024. All rights reserved.