Docs
Live demo
GET/api/v2/activity/chart
Signed-in sessionConsole session only

How many events and operations of the organization fall into each time bucket of a window, by result: the bars of the Activity chart. Operations are the ones GET /activity/operations lists. Events are the audit events of the organization without the ones an operation already shows and without installation events. The Activity stream leaves out the routine records (successful operations nobody started and routine completion events), and the Routine stream holds only them. Only records from from up to before to count. Buckets start on whole multiples of bucket_seconds since the Unix epoch: the first one holds from and the last one holds to.

Parameters

Query3 required of 4
fromstring · date-timequeryrequired

Start of the window (RFC3339).

tostring · date-timequeryrequired

End of the window (RFC3339), after from. Records at this time do not count.

bucket_secondsintegerqueryrequired

Length of one bucket in seconds, from a minute to a week. The window holds at most 1000 buckets.

min 60 · max 604800
streamstringquery

Which records to count. Activity by default.

activityroutine

Responses

200

OK

ActivityChartResponse · 4 fields
fromstring · date-timerequired

Start of the first bucket, at or before the requested from.

tostring · date-timerequired

End of the last bucket, at or after the requested to.

bucket_secondsintegerrequired
bucketsarray of ActivityChartBucketrequired
6 fields
startstring · date-timerequired
okintegerrequired

Successful operations and events.

failedintegerrequired

Failed operations and events, and the ones that ended with a warning or partly.

deniedintegerrequired

Events that Principal denied.

runningintegerrequired

Operations that still run or wait for a decision.

driftintegerrequired

Drift signals.

403

Insufficient permissions

Common errors: 400 401 429 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close