Aggregate tests events

POST {{baseUrl}}/api/v2/ci/tests/analytics/aggregate

The API endpoint to aggregate CI Visibility test events into buckets of computed metrics and timeseries.

Request Body

{"compute"=>[{"aggregation"=>"delta", "interval"=>"<string>", "metric"=>"<string>", "type"=>"total"}, {"aggregation"=>"pc90", "interval"=>"<string>", "metric"=>"<string>", "type"=>"total"}], "filter"=>{"from"=>"now-15m", "query"=>"*", "to"=>"now"}, "group_by"=>[{"facet"=>"<string>", "histogram"=>{"interval"=>"<double>", "min"=>"<double>", "max"=>"<double>"}, "limit"=>10, "missing"=>"<string>", "sort"=>{"aggregation"=>"pc98", "metric"=>"<string>", "order"=>"desc", "type"=>"alphabetical"}, "total"=>"<boolean>"}, {"facet"=>"<string>", "histogram"=>{"interval"=>"<double>", "min"=>"<double>", "max"=>"<double>"}, "limit"=>10, "missing"=>"<string>", "sort"=>{"aggregation"=>"pc90", "metric"=>"<string>", "order"=>"asc", "type"=>"alphabetical"}, "total"=>"<boolean>"}], "options"=>{"time_offset"=>"<long>", "timezone"=>"UTC"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:{&quot;buckets&quot;:[{&quot;by&quot;:{&quot;adipisicing_68&quot;:{&quot;description&quot;:&quot;The values for each group-by.&quot;},&quot;cupidatat7c&quot;:{&quot;description&quot;:&quot;The values for each group-by.&quot;}},&quot;computes&quot;:{&quot;Lorem_8&quot;:&quot;\u003cstring\u003e&quot;}},{&quot;by&quot;:{&quot;inb&quot;:{&quot;description&quot;:&quot;The values for each group-by.&quot;},&quot;inf&quot;:{&quot;description&quot;:&quot;The values for each group-by.&quot;}},&quot;computes&quot;:{&quot;dolore98_&quot;:&quot;\u003cstring\u003e&quot;}}]},&quot;links&quot;:{&quot;next&quot;:&quot;\u003cstring\u003e&quot;},&quot;meta&quot;:{&quot;elapsed&quot;:&quot;\u003clong\u003e&quot;,&quot;page&quot;:{&quot;after&quot;:&quot;\u003cstring\u003e&quot;},&quot;request_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;timeout&quot;,&quot;warnings&quot;:[{&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;detail&quot;:&quot;\u003cstring\u003e&quot;,&quot;title&quot;:&quot;\u003cstring\u003e&quot;},{&quot;code&quot;:&quot;\u003cstring\u003e&quot;,&quot;detail&quot;:&quot;\u003cstring\u003e&quot;,&quot;title&quot;:&quot;\u003cstring\u003e&quot;}]}}