Docs

Type a word or a question. Esc closes the search.

Sign in Start free

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.

POST https://app.upfour.io/v1/runner/runs
POST https://app.upfour.io/v1/runner/runs

A real request. Sending it changes data in your upfour account.

Authorization
AuthorizationA pls_ key. It stays in this browser tab. Needs runner.report.write.
Body
kindrequired
stagerequired
More fields7
outcome Required for finished reports. Handler output is never accepted or stored.
Headers

Sent directly from your browser to https://app.upfour.io/v1. Mutating calls get an automatic Idempotency-Key when the field is empty.

Request
Responsenot sent yet
Fill in a key and press Send request (⌘↵).
The answer appears here.
scope runner.report.write stable Idempotency-Key supported returns 201

Body

application/json optional 15 fields

event_idstringrequired

The confirmed stream event id. Reports are idempotent per runner, event, handler and stage.

handlerstringrequired
hoststringrequired
incident_iduuidrequired
kindstringrequired
execforwardnotify
runner_iduuidrequired
runner_namestringrequired
stagestringrequired
deliveredstartedfinishedskipped
All other fields7 fields
duration_msinteger · nullable
event_created_at_msinteger · nullable

Optional event creation time from the stream, in Unix milliseconds. The server records received_at itself.

exit_codeinteger · nullable
finished_atstring (date-time) · nullable
outcomestring

Required for finished reports. Handler output is never accepted or stored.

succeededfailedtimeout
skip_reasonstring

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.

too_oldcooldownhourly_limitnot_actingsimulated_not_allowedconcurrency_limitdry_runlock_unavailable
started_atstring (date-time) · nullable

Returns

A successful request returns 201 with application/json.

Response fields 1 top-level fields
FieldTypeDescription
data RunnerRunResponse
RunnerRunResponse · 1 fields
FieldTypeDescription
id uuid The durable report id. Repeating the same idempotency tuple returns the original id.

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.