Spoar
Jobs

Roll up speed

POST
/v2/admin/jobs/rollup

Runs the session bot signals (session_velocity, ip_fanout) over the previous UTC day first, which adds each reason once, so a rerun changes nothing, and copies session bot scores onto their speed rows. Then writes daily p50 to p99 and rating counts per project, route, device and metric and drops raw speed rows past 30 days. rowsWritten counts rollup rows plus events the session signals raised. Needs the cron secret.

Authorization

cronSecret
AuthorizationBearer <token>

The CRON_SECRET the scheduled jobs workflow sends.

In: header

Query Parameters

days?string

How many past UTC days of speed samples to roll up, from 1 to 90; 2 by default.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v2/admin/jobs/rollup"
{  "data": {    "job": "rollup",    "status": "ok",    "startDay": "2026-09-19",    "days": 8,    "rowsWritten": 1880,    "durationMs": 4120  }}