Aggregate RUM events

POST {{baseUrl}}/api/v2/rum/analytics/aggregate

The API endpoint to aggregate RUM events into buckets of computed metrics and timeseries.

Request Body

{"compute"=>[{"aggregation"=>"pc90", "interval"=>"5m", "metric"=>"@duration", "type"=>"total"}, {"aggregation"=>"pc90", "interval"=>"5m", "metric"=>"@duration", "type"=>"total"}], "filter"=>{"from"=>"now-15m", "query"=>"@type:session AND @session.type:user", "to"=>"now"}, "group_by"=>[{"facet"=>"@view.time_spent", "histogram"=>{"interval"=>10, "min"=>50, "max"=>100}, "limit"=>10, "missing"=>"nulla aute Ut dolor", "sort"=>{"aggregation"=>"count", "order"=>"asc"}, "total"=>true}, {"facet"=>"@view.time_spent", "histogram"=>{"interval"=>10, "min"=>50, "max"=>100}, "limit"=>10, "missing"=>"minim", "sort"=>{"aggregation"=>"count", "order"=>"asc"}, "total"=>false}], "options"=>{"time_offset"=>44886083, "timezone"=>"GMT"}, "page"=>{"cursor"=>"eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", "limit"=>25}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"data":{"buckets":[{"by":{"@session.type":"user","@type":"view"},"computes":{"Duis_e":"ut reprehenderit et id occaecat","minim27":"eiusmod sed"}},{"by":{"@session.type":"user","@type":"view"},"computes":{"Duis_046":"consectetur sed id","irure_a5":"reprehenderit laborum sit","in_e2b":"consequat cillum","commodo_f4c":"mollit"}}]},"links":{"next":"https://app.datadoghq.com/api/v2/rum/event?filter[query]=foo\u0026page[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"},{"code":"unknown_index","detail":"indexes: foo, bar","title":"One or several indexes are missing or invalid, results hold data from the other indexes"}]}}