Report a handler run
Records that a local handler ran or was skipped for an incident event, with its outcome and timings but never its output.
Body
The confirmed stream event id. Reports are idempotent per runner, event, handler and stage.
All other fields7 fields
Optional event creation time from the stream, in Unix milliseconds. The server records received_at itself.
Required for finished reports. Handler output is never accepted or stored.
Required for skipped reports. lock_unavailable: the CLI could not reach upfour for the lock and did not run the handler. not_acting comes only from CLIs before the lock.
Returns
A successful request returns 201 with application/json.
Response fields 1 top-level fields
| Field | Type | Description | ||||||
|---|---|---|---|---|---|---|---|---|
data | RunnerRunResponse | |||||||
RunnerRunResponse · 1 fields
| ||||||||
Errors
Only the errors this operation can return. Every error uses the same envelope.
| Status | Code | Meaning |
|---|---|---|
| 400 | bad_request | The request is malformed or fails validation. |
| 404 | not_found | The requested resource does not exist or is outside the caller's scope. |
| 409 | runner_report_limit | The incident already holds the most machine reports upfour stores for one incident. When: POST /v1/runner/runs with a new report for an incident that has reached the limit in error.details.max_reports. A repeated report that upfour already stored is still answered with its original id. Fix: Nothing to retry: the incident's history keeps the reports it has. Check whether a handler or script sends reports in a loop. |
| 404 | documented response | The incident is missing or outside the API key's client scope. |
| 409 | documented response | runner_report_limit when the incident already holds the most reports upfour stores for one incident (error.details.max_reports). A repeated report that upfour already stored is still answered with its id. |
Every call can also return unauthorized (401), rate_limit_exceeded (429) or internal_error (500 / 502). See Responses and errors.