API and Webhooks
Learn how to use Aviator's API and webhooks to detect flaky tests and subscribe to these flaky test webhooks to take actions based on the event payload.
API
Get flaky tests in the last 30 days.
Request Body
Name
Type
Description
{
"repository": {
"name": "repo_name",
"org": "repo_org"
},
"github_check": {
"name": "ci/circleci: unit-tests",
"provider": "CircleCI"
},
"test_cases": [
{
"name": "test_invalid_security_code",
"class_name": "core.payments.SecurityCodeTest",
"first_occurrence": "2022-11-16T17:21:41.350499",
"last_occurrence": "2022-11-18T11:13:23.12361",
"details_url": "https://app.aviator.co/flaky/test_case/101063",
"last_24_hours_count": 5
},
{
"name": "test_valid_security_code",
"class_name": "core.payments.ValidCodeTest",
...
},
..
]
}Webhooks
Event payload
Event actions
Last updated
Was this helpful?
