API reference: Monitoring
Snowtrol monitoring API: incidents (correlated timelines), per-resource metrics, alert rules, on-demand evaluation, and the per-employee activity view.
The monitoring/alerts engine. Reads are open to members (a never-connected org gets { empty: true }); rule creation and evaluation need mutate_infra.
/api/monitoring/incidentsSessionCorrelated incident timelines: firing/resolved alerts plus change events, newest first — reading the same metric series the alert evaluation uses.
{ "incidents": [ { "id": "…", "title": "…", "events": [ … ] } ], "alerts": [ … ] }| Status | When |
|---|---|
401 | Not signed in. |
/api/monitoring/metricsSessionPer-resource metric series (?nativeId= required): cpu, memory, network_in/out, latency_p99, error_rate. Real polled samples from a configured per-resource metrics endpoint win; otherwise the deterministic series (mock) or an honest empty.
| Status | When |
|---|---|
400 | Missing nativeId. |
404 | Unknown/cross-org native id. |
/api/monitoring/alert-rulesSession (create: mutate_infra)List alert rules (default rules are seeded on first connect). POST creates one (mutate_infra).
/api/monitoring/evaluatemutate_infraEvaluate all rules now (also fired by the connect-kick): opens firing alerts (deduplicated per rule+resource) and auto-resolves recovered ones. Audited monitoring.alert_fired/alert_resolved.
/api/monitoring/activitySession (others' activity: manage_users_sso)Per-employee activity view over the audit trail: your own always; another member's (?userId=) requires manage_users_sso; cross-org 404.