# How alerts work

An alert opens when a rule crosses, and ends when the counts are back. This page says what happens in between.

## When it started

A Spike or Drop says it started where its rise, or fall, began. A 1-hour spike that opened at 23:00 judged 22:00 to 23:00. If the counts were flat until 22:35, the app, the e-mail and Slack say "since 22:35".

## One alert per event

While an alert is open on a watch, another rule of the same direction that crosses joins it. It opens no second alert and sends no message. The alert page lists it under the rule that fired ("Also crossed: Over 600 in 1 hour at 22:30"). A crossing in the other direction, or a Silence, opens its own alert.

## Live, not live, ended, reopened

- **Live:** the counts are over the alert's rule.
- **Not live:** a Spike or Drop whose counts are back within the rule. It stays open.
- **Ended:** the counts stayed back for 1 hour. Counts within the rule but still at least half its change off usual are not back yet. Such an alert still ends 6 hours after its last crossing.
- **The end message** says "back to usual" and since when, or how far off usual the window still was ("still 40% below usual").
- **Reopened:** the counts cross the rule again within 6 hours of the end, by clearly more than their normal ups and downs. The next end then waits twice as long: 2, then 4, then at most 6 hours.
- **A Silence** ends when counts arrive again. A fixed limit ends when its whole window is back inside the limit.
- **Repeats:** after a fixed limit alerts, a new crossing opens no alert for its repeat limit (6 hours by default). The alert's chart in the app shows those crossings.

## Got worse

An open Spike or Drop that gets worse sends one more message on the same alert. That happens when a bigger rule of its direction crosses, or when a drop falls below 0.2× usual or stops. It sends at most 2 per alert, 30 minutes apart, and none while "New normal?" waits for an answer. PagerDuty triggers the same incident again as critical.

## New normal?

A level that holds is not made the usual level while the alert is live. Once it has held 3 days (a spike) or 7 days (a drop), CountWatch asks: "orders · shop:eu has been about 40% lower for 3 days. New normal, or still a problem?"

- **Yes, it's the new normal** accepts the level at the next check.
- **No, still a problem** keeps alerting on it.
- With no answer, a reminder comes once a day for at most 3 days. The level is then accepted 14 days after the alert opened, with one notice.
- **Undo new normal** on the alert takes the latest accepted level out again.

## Mute

A mute holds a watch's opened, reopened and "New normal?" messages. An alert's end and "got worse" still go out, where its open went.

## Next

- [When an alert fires](/docs/rules): the rules and how sensitive they are.
- [Webhooks and the alerts API](/docs/webhooks): every field and message type.
