Send a test event
Sends a simulated event to this key's open streams for one machine; with resolve, the whole incident from opened to resolved.
POST https://app.upfour.io/v1/runner/test
Parameters
| Field | Type | Description |
|---|---|---|
X-Up4-Runner-ID required | uuid | header parameter · Stable UUID of the runner. |
X-Up4-Runner-Name required | string length 1–64 | header parameter · Printable runner name. |
Body
runner_iduuidrequired
All other fields3 fields
monitor_idstring
resolveboolean
Play the whole incident: incident.opened, then incident.resolved for the same simulated incident two seconds later. Needs type incident.opened.
typestring
Defaults to incident.opened.
incident.openedincident.resolved
Returns
A successful request returns 202 with application/json.
Response fields 1 top-level fields
| Field | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data | RunnerTestResponse | ||||||||||||||||
RunnerTestResponse · 4 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_not_connected | No open stream of this machine received the test event. When: POST /v1/runner/test while the runner named in runner_id has no open stream with the same API key, or POST /v1/runners/{runnerID}/test while the machine has no open stream at all, or the stream closed before the event was handed over. Fix: Start the machine (up4 listen) and send the test again once it shows as connected. |
| 503 | service_unavailable | The service or a required dependency is temporarily unavailable. |
| 404 | documented response | The selected monitor is missing or outside the API key's client scope. |
| 409 | documented response | runner_not_connected when no connection for this key and runner received the test. |
Every call can also return unauthorized (401), rate_limit_exceeded (429) or internal_error (500 / 502). See Responses and errors.