v1
latestOpenAPI 3.0.02026-07-141,4077,1665.2 MBCI Visibility Tests
Aggregate tests events
The API endpoint to aggregate CI Visibility test events into buckets of computed metrics and timeseries.
post/api/v2/ci/tests/analytics/aggregate
Request body
Example request
{
"compute": [
{
"aggregation": "pc90",
"interval": "5m",
"metric": "@duration"
}
],
"filter": {
"from": "now-15m",
"query": "@test.service:web-ui-tests AND @test.status:fail",
"to": "now"
},
"group_by": [
{
"facet": "@test.service",
"histogram": {
"interval": 10,
"max": 100,
"min": 50
},
"sort": {
"aggregation": "count",
"order": "asc"
}
}
],
"options": {
"timezone": "GMT"
}
}Response
OK
Example response
{
"data": {
"buckets": [
{
"by": {
"@test.service": "web-ui-tests",
"@test.status": "skip"
}
}
]
},
"links": {
"next": "https://app.datadoghq.com/api/v2/ci/tests/events?filter[query]=foo&page[cursor]=eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ=="
},
"meta": {
"elapsed": 132,
"page": {
"after": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ=="
},
"request_id": "MWlFUjVaWGZTTTZPYzM0VXp1OXU2d3xLSVpEMjZKQ0VKUTI0dEYtM3RSOFVR",
"status": "done",
"warnings": [
{
"code": "unknown_index",
"detail": "indexes: foo, bar",
"title": "One or several indexes are missing or invalid, results hold data from the other indexes"
}
]
}
}