@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class TestOptimizationApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestOptimizationApi.SearchFlakyTestsOptionalParameters
Manage optional parameters to searchFlakyTests.
|
| Constructor and Description |
|---|
TestOptimizationApi() |
TestOptimizationApi(ApiClient apiClient) |
public TestOptimizationApi()
public TestOptimizationApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic FlakyTestsSearchResponse searchFlakyTests() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<FlakyTestsSearchResponse> searchFlakyTestsAsync()
public FlakyTestsSearchResponse searchFlakyTests(TestOptimizationApi.SearchFlakyTestsOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<FlakyTestsSearchResponse> searchFlakyTestsAsync(TestOptimizationApi.SearchFlakyTestsOptionalParameters parameters)
parameters - Optional parameters for the request.public PaginationIterable<FlakyTest> searchFlakyTestsWithPagination()
public PaginationIterable<FlakyTest> searchFlakyTestsWithPagination(TestOptimizationApi.SearchFlakyTestsOptionalParameters parameters)
public ApiResponse<FlakyTestsSearchResponse> searchFlakyTestsWithHttpInfo(TestOptimizationApi.SearchFlakyTestsOptionalParameters parameters) throws ApiException
The response includes comprehensive test information including: - Test identification and metadata (module, suite, name) - Flaky state and categorization - First and last flake occurrences (timestamp, branch, commit SHA) - Test execution statistics from the last 7 days (failure rate) - Pipeline impact metrics (failed pipelines count, total lost time) - Complete status change history (optional, ordered from most recent to oldest)
Set include_history to true in the request to receive the status
change history for each test. History is disabled by default for better performance.
Results support filtering by various facets including service, environment, repository, branch, and test state.
parameters - Optional parameters for the request.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<FlakyTestsSearchResponse>> searchFlakyTestsWithHttpInfoAsync(TestOptimizationApi.SearchFlakyTestsOptionalParameters parameters)
parameters - Optional parameters for the request.public UpdateFlakyTestsResponse updateFlakyTests(UpdateFlakyTestsRequest body) throws ApiException
See updateFlakyTestsWithHttpInfo(com.datadog.api.client.v2.model.UpdateFlakyTestsRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<UpdateFlakyTestsResponse> updateFlakyTestsAsync(UpdateFlakyTestsRequest body)
See updateFlakyTestsWithHttpInfoAsync(com.datadog.api.client.v2.model.UpdateFlakyTestsRequest).
body - (required)public ApiResponse<UpdateFlakyTestsResponse> updateFlakyTestsWithHttpInfo(UpdateFlakyTestsRequest body) throws ApiException
body - (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<UpdateFlakyTestsResponse>> updateFlakyTestsWithHttpInfoAsync(UpdateFlakyTestsRequest body)
See updateFlakyTestsWithHttpInfo(com.datadog.api.client.v2.model.UpdateFlakyTestsRequest).
body - (required)Copyright © 2026. All rights reserved.