OpenIncident
One entry in an agent's failure inbox (`GET /api/v1/agents/{id}/open-incidents`). `exit_code`, `failed_step`, `failure_signature`, `duration_vs_normal` and `ci` are each **omitted entirely** when unknown — they are never emitted as null or as a zero value. Absence means "LastPing does not know this", which an agent can act on; a fabricated zero cannot be told apart from a real one. That distinction is sharpest on `exit_code`, where `0` is itself a meaningful status: see its description.
Properties
| Name | Type | Description |
|---|---|---|
| incident_id | integer | Identifies this incident. Stable for its lifetime. |
| check_id | string | The monitor this incident is about. |
| check_slug | string | |
| check_name | string | |
| cause | string | Why the incident opened. These need different responses, which is the reason this field leads the payload: - `fail` — the job ran and explicitly reported failure. - `upstream`: runs in a row ended on |
| opened_at | string | RFC 3339 UTC timestamp when the incident opened. |
| detail | string | Why it opened, when the opener knew more than the cause code can say — which assertion rejected the output, which metric guard tripped, the last API error type of an `upstream` incident (`Last error: |
| run_id | string | The `rid` of the run this incident is about, so the agent can line it up against its own logs. Recorded when the incident opens, which is the only moment it can be: the transition that opens an incide |
| body_excerpt | string | The failure output the run reported: the body of the ping that opened the incident, or — for an incident opened by a missed deadline, where no ping coincides with `opened_at` — the latest `fail` repor |
| exit_code | integer | The status the run exited with, as sent through the numeric ping form `POST /ping/{check_id}/{code}`. Read from the **same ping** `body_excerpt` comes from, so the output and the status always describ |
| failed_step | object | The last step the run reported before it stopped progressing — where it died. Omitted when the run reported no steps. |
| failure_signature | object | **New problem, or the fortieth repeat.** The recurrence record for this exact failure, matched by fingerprinting the failure body through the same normalisation the writer used — timestamps, UUIDs, IP |
| duration_vs_normal | object | Was this run unusually slow — the only form of the duration question worth asking. Omitted when the run's duration is unknown, or when there is no baseline to compare against: no archived day and fewe |
| ci | object | Provider-side context for a CI failure, decoded from the failing run's CI metadata. Omitted entirely for non-CI monitors. `run_url` is the valuable one: it is where the agent goes for the full log whe |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/lastping-dev/json-schema/lastping-dev-open-incident-schema.json",
"title": "OpenIncident",
"description": "One entry in an agent's failure inbox\n(`GET /api/v1/agents/{id}/open-incidents`).\n\n`exit_code`, `failed_step`, `failure_signature`, `duration_vs_normal`\nand `ci` are each **omitted entirely** when unknown — they are never\nemitted as null or as a zero value. Absence means \"LastPing does not\nknow this\", which an agent can act on; a fabricated zero cannot be told\napart from a real one. That distinction is sharpest on `exit_code`,\nwhere `0` is itself a meaningful status: see its description.\n",
"x-generated": "2026-11-15",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/lastping-dev-openapi.yaml#/components/schemas/OpenIncident",
"type": "object",
"required": [
"incident_id",
"check_id",
"check_slug",
"check_name",
"cause",
"opened_at"
],
"properties": {
"incident_id": {
"type": "integer",
"format": "int64",
"description": "Identifies this incident. Stable for its lifetime."
},
"check_id": {
"type": "string",
"format": "uuid",
"description": "The monitor this incident is about."
},
"check_slug": {
"type": "string"
},
"check_name": {
"type": "string"
},
"cause": {
"type": "string",
"enum": [
"silence",
"fail",
"overrun",
"never_started",
"runaway",
"stalled",
"blocked",
"assertion",
"upstream"
],
"description": "Why the incident opened. These need different responses, which is\nthe reason this field leads the payload:\n\n- `fail` — the job ran and explicitly reported failure.\n- `upstream`: runs in a row ended on the model provider's API\n error (`server_error`, `overloaded` or `rate_limit`), not on the\n agent's own work: 3 of them, or the monitor's\n `failure_threshold` when that is higher. `detail` names the last\n error type. Fewer are recorded on the run and page no one.\n- `assertion` — the job reported success, but its output violated\n criteria the agent itself declared at the start of that run.\n- `silence` — nothing was reported within the expected window.\n Suspect the scheduler or the host before the job.\n- `never_started` — the monitor has never reported at all; the\n wiring is probably wrong.\n- `overrun` — the run exceeded its maximum runtime.\n- `stalled` — the run is alive but has reported no step progress.\n `failed_step` is the diagnosis here.\n- `runaway` — the monitor exceeded a ping-rate ceiling or a metric\n guard.\n- `blocked` — a run is waiting on a human.\n"
},
"opened_at": {
"type": "string",
"format": "date-time",
"description": "RFC 3339 UTC timestamp when the incident opened."
},
"detail": {
"type": "string",
"description": "Why it opened, when the opener knew more than the cause code can\nsay — which assertion rejected the output, which metric guard\ntripped, the last API error type of an `upstream` incident\n(`Last error: server_error`), or a CI job's own failure detail.\nOmitted when empty.\n"
},
"run_id": {
"type": "string",
"description": "The `rid` of the run this incident is about, so the agent can line\nit up against its own logs. Recorded when the incident opens, which\nis the only moment it can be: the transition that opens an incident\nalso clears the monitor's in-flight run, so the identity does not\nsurvive anywhere else.\n\nOmitted when there was no run to name — a `never_started` incident,\nor a monitor that reported without ever opening a run.\n"
},
"body_excerpt": {
"type": "string",
"description": "The failure output the run reported: the body of the ping that\nopened the incident, or — for an incident opened by a missed deadline,\nwhere no ping coincides with `opened_at` — the latest `fail`\nreported while the incident has been open.\n\nThat second case matters more than it looks. Incidents open only on\nthe transition into down, so a cron that runs late and then fails\nkeeps its original `silence` incident: without the fallback the\nagent would be told \"silence\" while the error text sat unread.\n\nOmitted only when nothing was reported at all, which for\n`never_started` and an ongoing `silence` is the incident itself.\n"
},
"exit_code": {
"type": "integer",
"format": "int32",
"minimum": -32768,
"maximum": 32767,
"description": "The status the run exited with, as sent through the numeric ping\nform `POST /ping/{check_id}/{code}`. Read from the **same ping**\n`body_excerpt` comes from, so the output and the status always\ndescribe one run.\n\n**Omitted means no exit code was reported. It never means\n\"exited cleanly\".** A job reports a status only through the numeric\nform; the word forms (`/fail`, `/start`, …) carry none, an incident\nopened by a missed deadline has no ping at all, and pings recorded before\nthis field existed did not keep the number and cannot be\nbackfilled. A clean exit is the **present** value `0` — which does\noccur on an incident, since an `assertion` incident opens on a run\nthat reported success and then failed the criteria the agent\ndeclared for it.\n\nTwo conventions are worth decoding, and are what the console shows\nin words beside the number:\n\n- **128 + n is death by signal** — `137` is SIGKILL (most often the\n OOM killer or a container runtime), `143` is SIGTERM (a shutdown\n the job did not survive), `139` is SIGSEGV.\n- **`124` is a `timeout(1)` kill** — the status GNU `timeout` uses\n when it kills the command it wrapped.\n\nEverything else is **application-defined**: `1`, `2` and the rest\nmean whatever the program that exited chose them to mean, and\nLastPing does not guess.\n"
},
"failed_step": {
"type": "object",
"description": "The last step the run reported before it stopped progressing —\nwhere it died. Omitted when the run reported no steps.\n",
"properties": {
"name": {
"type": "string"
},
"seq": {
"type": "integer",
"format": "int32",
"description": "Position in the run's step timeline, starting at 1."
},
"at": {
"type": "string",
"format": "date-time"
}
}
},
"failure_signature": {
"type": "object",
"description": "**New problem, or the fortieth repeat.** The recurrence record for\nthis exact failure, matched by fingerprinting the failure body\nthrough the same normalisation the writer used — timestamps,\nUUIDs, IPs, absolute paths, hex runs and integers are replaced by\nplaceholders, so the same underlying failure matches across runs\neven though its text differs every time.\n\nOmitted when the incident has no failure body, or when this body\nhas no recorded history yet.\n",
"properties": {
"fingerprint": {
"type": "string",
"description": "16 hex characters. Exposed so an agent can correlate two\nincidents as \"the same failure\" itself, across monitors and\nacross polls.\n"
},
"occurrences": {
"type": "integer",
"format": "int64",
"description": "How many times this exact failure has been recorded on this\nmonitor — every occurrence, not only the ones that opened an\nincident, so a job that fails repeatedly while already down\nstill accrues history.\n"
},
"first_seen": {
"type": "string",
"format": "date-time",
"description": "When this failure was first recorded. Survives ping retention:\nthe signature history is deliberately never pruned, so this can\npredate the oldest ping still stored.\n"
},
"last_seen": {
"type": "string",
"format": "date-time"
}
}
},
"duration_vs_normal": {
"type": "object",
"description": "Was this run unusually slow — the only form of the duration\nquestion worth asking. Omitted when the run's duration is unknown,\nor when there is no baseline to compare against: no archived day\nand fewer than 5 measured runs in the last 30 days (a brand-new\nmonitor has neither). A monitor with no archived day but at least\n5 measured runs in the last 30 days is compared against the median\nof those runs, and `summary` says so.\n\n`run_ms` is the run's measured duration when it completed;\notherwise — for a `fail`, and for every run that never finished,\nwhich is every `overrun` and `stalled` — it is how long the run had\nbeen going when the incident opened. That figure is fixed at the\nmoment of judgement, so polling the same open incident twice always\nreports the same number.\n",
"properties": {
"run_ms": {
"type": "integer",
"format": "int64"
},
"typical_ms": {
"type": "integer",
"format": "int64",
"description": "What a normal run costs. Named `typical_ms`, not `p50_ms`, on\npurpose: it is a median of the archived daily medians, since\npercentiles do not recombine. Calling it a p50 would claim a\nprecision the daily summaries cannot deliver. On a monitor\nwith no archived day it is the median of its measured runs in\nthe last 30 days instead.\n"
},
"ratio": {
"type": "number",
"format": "double",
"description": "`run_ms / typical_ms`. This is the diagnosis."
},
"days_sampled": {
"type": "integer",
"format": "int64",
"description": "How many archived days the baseline was computed from, so a\nthirty-day norm can be told from a two-day one instead of both\nreading as settled. 0 when the baseline came from recent runs\nrather than archived days; `summary` then names the run count\n(\"from 5 runs in the last 30 days\").\n"
},
"summary": {
"type": "string",
"description": "The comparison as one sentence."
}
}
},
"ci": {
"type": "object",
"description": "Provider-side context for a CI failure, decoded from the failing\nrun's CI metadata. Omitted entirely for non-CI monitors.\n`run_url` is the valuable one: it is where the agent goes for the\nfull log when `body_excerpt` is not enough.\n",
"properties": {
"run_url": {
"type": "string"
},
"failing_stage": {
"type": "string"
},
"outcome": {
"type": "string"
},
"branch": {
"type": "string"
},
"commit_sha": {
"type": "string"
}
}
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/lastping-dev-open-incident"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.