Incident metrics
get_incident_metricsRead-only
Incident metrics over a trailing window (default 30 days): MTTA/MTTR in seconds, total incidents, counts by severity and state, auto- vs human-resolved, and the noisiest monitors. Read-only.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| window_days | No | Trailing window in days (1..=365). Defaults to 30 when omitted. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | Incidents opened in the window. | |
| by_state | Yes | ||
| mtta_secs | No | Mean time to acknowledge, seconds. `null` if none were acknowledged. | |
| mttr_secs | No | Mean time to resolve, seconds. `null` if none were resolved. | |
| by_severity | Yes | ||
| window_days | Yes | ||
| top_monitors | Yes | Noisiest monitors, most incidents first. | |
| auto_resolved | Yes | Resolved automatically on recovery, with no human resolver. | |
| human_resolved | Yes | Resolved by a person. | |
| closed_with_monitor | Yes | Closed because their monitor was deleted; counted in neither of the above nor in MTTR. |