Dozor
Sessions

KPI aggregate for the sessions list stats strip

VIEWER+. Returns four KPIs scoped to the caller's active org: total sessions, total duration, average duration (rounded), active today (created in the last 24 h). Single SQL round-trip via `$queryRaw` with conditional aggregation.

GET/api/sessions/summary

VIEWER+. Returns four KPIs scoped to the caller's active org: total sessions, total duration, average duration (rounded), active today (created in the last 24 h). Single SQL round-trip via $queryRaw with conditional aggregation.

Response Body

application/json

curl -X GET "https://loading/api/sessions/summary"
{
  "totalSessions": 1247,
  "totalDuration": 6834120,
  "avgDuration": 5481,
  "activeToday": 42
}
Empty
Empty
Empty