provider Test Optimization POST
/api/v2/test/flaky-test-management/tests @utdk/datadog
/api/v2/test/flaky-test-management/tests Search flaky tests
List endpoint returning flaky tests from Flaky Test Management. Results are paginated.
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.
Try it
Authentication
Configure credentials for Datadog API V2 Collection
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import datadog from '@utdk/datadog';
await datadog.searchflakytests()