Incidents
An incident is one thing that went wrong. A site that's down for twenty minutes is one incident, not the forty failed checks, the page, its repeats and the recovery. Incidents in the web app is the list of them.
The list
One row per incident: pages, near-pages (loud messages that would have paged if the highest level allowed it), and the floods that dedupe or grouping collapsed into one. The open ones and the last 7 days show by default.
Opening one shows what the phone got and what Mast knows about it:
- what opened it: the failing checks with the places that failed and the ones that still answered, or the silence that ran past a heartbeat's grace,
- who it paged, when each escalation step fired, who acknowledged it and from which device,
- what closed it: two clean probe checks, a heartbeat's next beat, a
resolve=1from the sender, or a person.
The API's answer for one incident, GET /v1/mast/incidents/{id}, also has destination_deliveries: what went to each destination about it, with the state, the number of attempts and the last status the far end gave.
Export 90 days as CSV downloads the table, for a postmortem or a monthly review.
Working an open incident
An open incident has four more buttons beside Acknowledge and Resolve. They're on the incident page in the web app.
Snooze
Snooze quiets a page for 15 minutes up to 24 hours. Until then it counts as acknowledged: the repeats stop and nobody else gets escalated to. When the snooze ends, every phone it reached rings again and the escalation policy carries on from the step it was on, so a snoozed page that nobody picks up still climbs. Acknowledging or resolving it before then ends the snooze. A page can be snoozed ten times.
Reassign
Reassign hands the incident to someone else, either a person on the account or another escalation policy. It starts over with them: a policy from its first step, a person on every phone they have signed in. Any acknowledgement or snooze is cleared, and whoever was being paged stops. The timeline shows who reassigned it and to whom.
Add a responder
Add responder rings one more person now without changing the escalation. Their phones get the page straight away, and if they have a verified number you can tick Call their verified number too. The policy keeps going as it was, and the extra person can acknowledge or resolve like anyone else.
Notes
The Notes box under the timeline is for what you found and what you tried. Everyone on the account can read them, and notes show up in the timeline at the time they were written. You can edit or delete your own notes. Account owners and admins can edit or delete anyone's. A note can be up to 4,000 characters, and notes go away with the incident when its retention runs out.
How an incident closes
Probes and heartbeats close their own. A probe's outage closes after two clean checks in a row, and a heartbeat's after its first beat. The card on every phone it reached turns green, says how long it was open, and stops repeating.
Anything else closes when the sender says so, or when a person resolves it.
Closing one from the sender
A page repeats until somebody acknowledges it. When the thing it's about comes back, the sender can say so, and the card on the phone stops repeating and turns green:
# the outage
curl -X POST https://mast.tissue.dev/mk_1c9f… \
-d priority=page -d key=db-01 \
-d title="db-01 unreachable" -d body="no WAL segment in 11 minutes"
# the recovery, closing that incident
curl -X POST https://mast.tissue.dev/mk_1c9f… \
-d resolve=1 -d key=db-01 \
-d title="db-01 recovered" -d body="WAL shipping resumed"resolve=1 closes the most recent open message on the alert source carrying that key. The send doesn't become a second message: its title and body replace the outage text on the original card, the repeat and the escalation are cancelled, and every device the page reached gets a quiet update. The 202 names the message that was closed and how long it was open:
{ "ok": true, "id": "mm_7a3e5b91c04d2f68a1b3c5d7e9f02468", "state": "resolved", "open_for": 842 }open_for is whole seconds from the moment Tissue Mast received the alert to the moment it was closed.
A message id works in place of the key, for a sender that kept the id from its own 202:
curl -X POST https://mast.tissue.dev/mk_1c9f… \
-d resolve=mm_7a3e5b91c04d2f68a1b3c5d7e9f02468 -d body="back up"The title and body are optional on a resolve. Leave both out and the card keeps the wording it already has and just turns green. A resolve with no text that finds nothing open stores nothing, and answers "state": "nothing_open" with no id.
Three things to know before you wire this into a monitor:
- A resolve that finds nothing open isn't an error. It's stored as an ordinary message at
quiet, whatever priority was asked for, and it never repeats or asks for an acknowledgement. So a recovery that overtakes its own alert, or one for an incident a person already closed, still shows up in the feed and still wakes nobody. The catch is that a wrong key fails silently, with the page still ringing. Test the pair once on a test alert source. The one exception is a resolve that lands inside a flap window (below): that one is merged into the flapping incident, not stored. keyalone isn't enough. A repeat of the same key merges into the open card only inside the alert source's dedupe window, which is minutes; an incident isn't. Past the window, a recovery withoutresolve=1is a separate card and the page keeps repeating.- A key can only close its own alert source's incidents. A message id belonging to another alert source is answered as though it didn't exist.
Flapping
A site that comes back and fails again inside ten minutes pages once more, as down again. After that, for half an hour, every further flip is noted on the open incident and pages nobody. A site that's still down past that window is paged for again. Probes has the rest of the rule.
The same rule applies to a sender that closes its own incidents with resolve=1. A key the sender resolved and fires again inside ten minutes pages once more, as a reopen. For half an hour after that, every further fire and resolve is noted on that incident and pages nobody; the 202 says "state": "folded" with that incident's id. A key that's still fired when the window closes is paged for then, so a sender that fires once and goes quiet isn't lost, only held for up to thirty minutes. A resolve from the phone ends the flap: a person decided it was over, and the next fire is a new incident. Both windows are fixed, the same ones probes use.