Skip to main content
An alert rule watches one project, or one of its apps, and sends a message when something changes: when it starts firing and when it resolves, once each. Rules are checked every minute (rate of change every five minutes, the store thresholds every hour). Owners and admins manage alerts in Settings › Alerts; members see the rules and their history.

Rules

Nothing is decided below the minimum volume, so a quiet hour with two sessions and one crash is not a 50% crash rate; a rule that is firing stays firing until enough data shows it resolved. Without release, every release counts; without an endpoint, the worst endpoint with enough requests does. A rate of change whose window before was at 0 (no failures) is not measured: there is no relative change from 0. Under min_events, a rate of change does not fire, and one that fired resolves, since a recovered window has few bad events. Under min_volume (no traffic to speak of), it keeps its state, so an app nobody uses is never read as recovered. A rate of change compares the crash rate, not crash-free sessions: crashes going from 0.5% to 1% of sessions is a 100% rise, where crash-free sessions would only move from 99.5% to 99%. On a plan without a preset (a rate of change or an SLO on Free, after the trial ends, a cancel or a downgrade), a rule is paused: it is not evaluated and sends nothing, and paused_by_plan is true. Its state stays as it was until an upgrade, whose first evaluation sets it; meanwhile the console shows it as paused by plan (not checked, on its page), never among the firing rules. Each rule keeps what its last evaluation measured (last_value, in the unit of its threshold: a rate from 0 to 1, a spike’s factor, or a change in percent), so the console shows it live and which rules are closest to firing; it is null below the minimum volume, and for the issue rules. An SLO rule’s is how close its nearest pair is to its rate (1 is at the rate; see SLO rules). The rule’s chart in the console shows the same measure against the threshold: crash-free sessions and endpoint failures hourly over the last 48 hours, each point the rule’s own window ending with that hour (endpoint failures chart the endpoint closest to the threshold now); the store rates daily over 14 days on their window; issue spikes the highest per day over 14 days; a rate of change hourly over 48 hours, each point its window ending with that hour against the window before; new and regressed issues the messages per day over 14 days.

SLO rules

An SLO rule watches crash-free sessions against an objective, 99.5% by default, over a rolling budget window, 28 days by default. The budget is the share of sessions that may crash: 0.5% at 99.5%. The rule alerts on how fast that budget is being spent, not on one bad hour. Burn rate. A window’s crash rate divided by the budget. At a burn of 1 the budget lasts exactly the window; at 14.4 a 28-day budget loses 2% of itself in an hour. Pairs. Each pair has a long and a short window. It fires when both burn at or above its rate, and resolves when either falls below. Each pair fires and resolves on its own. A pair whose long window has fewer than min_sessions sessions is not measured and keeps its state. At risk. A third state next to ok and firing, set while less than at_risk_below percent of the budget is left and no pair fires. It sends one message when it starts (at_risk) and one when it clears (at_risk_cleared). While a pair fires it neither starts nor ends, so a firing never leaves it half-told: what its start opened, such as a PagerDuty incident, is closed by its own clear. Meanwhile the rule reads firing. Severities. Every SLO message carries a severity, page or ticket; at risk is a ticket. Cooldown and mute work per severity, so a ticket never holds back a page. Two pairs of one severity firing at once send the first, and the cooldown holds the second. Crashes count when they reach Apsio. A mobile crash is often reported at the app’s next launch, minutes or days later. So an SLO counts each session in the minute its outcome arrived, not the minute it started, and every window ends two minutes before now. A session counts once per window, crashed if any of its summaries says so. Its numbers stay in Postgres. Every minute, the evaluator records:
  • the burn of each window;
  • the budget left;
  • when the budget runs out at the 6-hour burn;
  • every 15 minutes, the latest release: of the releases with at least min_sessions sessions in the budget’s window, the one that first arrived last. A release shipped in the window shows from its first arrival; an app with no new release shows its newest one over the window. A stray test build, or sessions without a release, never take its place.
It also keeps each day’s sessions and crashes for twice the window, so the rule’s history has a whole window behind every day. A new rule backfills that history at once.

In the console

Create one. In Alerts, choose New rule, then the preset SLO (burn rate). The form asks for:
  • Objective (% crash-free sessions), and the budget window: 7, 28 or 30 days;
  • Page at burn rate (×) and Ticket at burn rate (×): the page rate must be above the ticket rate;
  • At risk below (% of the budget left);
  • Slow ticket (1× over 3 d and 6 h), off by default;
  • At least (sessions): the fewest sessions a pair or the budget needs before it alerts;
  • Page to and Ticket and at risk to. Left at The same as Page, tickets and at risk go where pages go. GitHub and Linear open issues, not incidents, so an SLO never routes to them: Ticket and at risk to leaves them out, and choosing one in Page to switches the form to the handoff presets.
The rule page shows:
  • Budget left, with its daily chart: each day is the budget left over the rolling window that ends that day, against the at-risk line;
  • Runs out: when the budget is spent at the burn rate of the last 6 hours, or Not being spent, which also shows when the last 6 hours had fewer sessions than At least (sessions);
  • <release> alone: the latest release’s crash-free sessions and its burn rate since it shipped (over the window, for a release older than it);
  • Burn-rate windows: each pair’s windows, its burn rate now against its threshold, its status and where it routes; the at-risk check has its own row;
  • Routing: which destination gets pages, and which gets tickets and at risk.
The page says that crashes count when they reach Apsio, and that each window ends two minutes before the check. Not measured.
  • A rule reads Not measured yet until its first check, within a minute of its creation, and again right after you change its parameters or destinations, or turn it back on.
  • It reads Not measured while the rule is off.
  • A pair or the budget under At least (sessions) reads not enough sessions.
  • A budget spent past its limit reads Overspent.
Mute. Mute 1 h and Mute 24 h mute pages and tickets together. Through the API, the two can be muted apart (muted_until, ticket_muted_until). A rule then reads as muted only while the mutes cover everything that is firing: one whose page fires stays under Firing even with its tickets muted, since its pages still go out.

Store thresholds

Google Play lowers the visibility of an app whose user-perceived crash or ANR rate passes its bad behavior thresholds, and may warn users on its store listing (Android vitals; numbers checked on 2026-10-08): Play judges the last 28 days. Every new Android or React Native app gets one rule for each rate, on, with these thresholds and without a destination: such a rule fires and resolves into the history, and sends nothing until an owner picks where it goes (in the rules list, or by setting its destination_id). Its seeded field says it came with the app. Edit or delete it like any rule; a deleted one does not come back. Apple publishes no crash, hang or ANR threshold for the App Store, so iOS apps get no such rule. Apsio counts these rates close to Play, not exactly as Play:
  • A user is an installation, and a daily user an installation on a day; the rate is the share of those user-days, on Android only (a React Native app’s iOS sessions do not count). An installation counts on every UTC day one of its sessions was open, so a session that runs past midnight counts on both days. Apps that turn the installation id off cannot be counted, and the rule reports too little data.
  • A crash is a session that ended crashed, on the day it ended. The SDK does not record whether the app was in front at that moment, so a crash in the background counts too. An ANR counts on the day it happened.
  • An ANR is the SDK’s live ANR (the main thread blocked for 5 seconds while the app ran), not only Play’s “Input dispatching timed out”.
After a rule fires, it does not send again for its cooldown (60 minutes by default, 5 minutes to 7 days); a firing within it is recorded in the history but not sent. A rule can be muted for up to 30 days, and the same applies while it is. Changing a rule’s parameters or destination, or disabling it, starts it over without sending anything.

Destinations

  • Slack: an incoming webhook URL (in Slack, an app with Incoming Webhooks), https://hooks.slack.com/services/.... Messages name the project and release and link to the console.
  • Webhook: any https URL that answers 2xx. Each request is a signed JSON POST. A new or regressed issue it was told of is followed by alert.issue_resolved once someone resolves or ignores it; see Webhook requests.
  • PagerDuty: an incident on a PagerDuty service, through its Events API v2: a rule that fires triggers one and its recovery resolves it. See PagerDuty.
  • GitHub or Linear: an issue for your team’s coding agent, one per crash group; see Agent handoff. Owners connect it, and it is off until turned on.
  • Email: one address. See Email.
A destination’s URL is a secret (a Slack webhook URL can post to your channel), and so is a PagerDuty integration key, so Apsio stores them encrypted and never shows them again: the console shows the host. Use Send test to check one; the answer is a delivery status and, on failure, a code.

Email

An email destination sends each alert to one address, in the reader’s language, from notify.apsio.io, with a link to the console.
  • A member’s own address works at once, and stops when they leave the organization.
  • Any other address gets a confirmation email first and nothing else until its link is used (it expires after 7 days). Owners and admins can send it again.
  • An address gets at most one confirmation every 10 minutes and five a day, whichever organizations ask, and an organization sends at most 20 an hour.
  • Every alert email has an unsubscribe link, and one-click unsubscribe for mail clients that offer it. An address that unsubscribed gets nothing more until it confirms again; saving the destination with the same address does not undo that.
  • An address whose mailbox refuses an email for good (a hard bounce), or whose reader marks an alert or a confirmation as spam, stops: the destination reads bounced or complained, and gets nothing more until the address uses a new confirmation, or the destination gets another address. A mailbox that is only full or briefly down stops nothing.
  • One spam report stops the destination, even from one reader of a shared list address: an owner sends it a new confirmation once the list wants the alerts again.
  • When a person erases their Apsio account, every email destination with their address is deleted, in every organization; the rules that sent to it keep recording into the history.
  • An address gets at most 50 alerts a day. Past that, it gets one email saying the rest were held back, and the console’s alert history lists them.
  • An email destination is not told when an issue is resolved or ignored.
Alerts held back this way are in the history as suppressed, with the reason: unconfirmed, unsubscribed, bounced, complained, not_a_member or daily_cap.

What a URL may be

Apsio refuses URLs that could reach its own network: the URL must be https, without a user or password, on port 443 or 1024 and up, and its host must resolve only to public addresses (no private, loopback, link-local, carrier-grade NAT, multicast or unique local address, and no IPv4-mapped IPv6). This is checked when the URL is saved and again before every delivery, and the request goes to the address that was checked. Redirects are not followed, and a destination has five seconds to answer.

Delivery codes

A timeout, connect, dns_refused, status_5xx or rate_limited is tried again on the next minutes, with the same event id, up to three attempts within an hour of the alert. Any other code is final.

Slow or unreachable destinations

A destination that answers slowly or not at all is paused, so it cannot hold back your other alerts:
  • Three answers in a row that are a timeout, connect, dns_refused or status_5xx, or that take longer than two seconds whatever they say, pause the destination for 5 minutes. Each further failure doubles the pause, up to 6 hours.
  • While it is paused, its alerts wait in the history as pending, without an attempt. One still waiting an hour after it was raised is recorded as failed, with its last code or expired.
  • When the pause runs out, the next alert is sent. A quick, successful delivery clears the pause and the count.
  • A successful Send test answered within two seconds also lifts a pause, unless the destination was paused for answering slowly: an endpoint could answer tests quickly and alerts slowly, so only a quick alert delivery lifts that one.
The console shows a paused destination with its last code. In the API, a destination has paused_until, consecutive_failures and last_error_code, which can also be slow.

History

The history lists everything alerting did, newest first: what fired and resolved, new issues, test sends, and what was held back. Each entry has its rule, destination, kind (fired, resolved, new_issue, issue_regressed, issue_resolved, test or suppressed), the measured value and detail, its delivery, its error_code, its attempts, and when it was raised and delivered. Read it in Settings › Alerts, filtered by project or rule. A destination says when it last got an alert (last_delivered_at), and destinations and rules who made them (created_by). Details carry numbers, ids and release names only.

Limits

An organization makes at most 30 delivery attempts a minute and 500 a day, retries included. Past that, a new alert is recorded in the history as suppressed (rate_limited), and each destination gets one message saying so per minute or day, except PagerDuty, where it would page someone; a retry waits for a later minute. At most two deliveries of one organization are in flight at once. Test sends are limited to 5 a minute per destination.

PagerDuty

In PagerDuty, add an integration to the service that should be paged: Events API v2. Copy its Integration Key (32 letters and digits) and add a PagerDuty destination in Settings › Alerts with it, and the service’s region: US (events.pagerduty.com, the default) or EU (events.eu.pagerduty.com). Apsio stores the key encrypted and never shows it again; Replace key sets a new one.
  • Firing and recovery share a key, so the recovery resolves the incident the firing opened, and a rule that fires again while its incident is open adds to it.
  • A new issue opens one incident per rule and issue. When someone resolves or ignores the issue in Apsio, the incident is resolved within a minute or two, in the history as Issue resolved. Assigning or reopening the issue changes nothing in PagerDuty, and a resolved issue that comes back opens no new incident for a new issue rule; an issue regresses rule opens one for each regression, resolved the same way. The resolve looks at issues closed in the last 24 hours: if Apsio’s alerting was stopped for longer, resolve those incidents in PagerDuty. These resolves count toward no limit.
  • A test send leaves no open incident, but depending on the service’s urgency rules it can still notify whoever is on call.
  • The event’s summary is the alert’s sentence, with the project’s and release’s names cleaned; custom_details carry the rule, its parameters, the measured value and the detail, as in a webhook request, and links the console. No error message, stack, URL or user is sent.
  • A 400 from PagerDuty (a wrong key, or an integration that is not Events API v2) is final; a 429 is retried like a 5xx (see Delivery codes).

Webhook requests

type is alert.fired, alert.resolved, alert.new_issue, alert.issue_regressed, alert.issue_resolved, alert.at_risk, alert.at_risk_cleared, alert.test or alert.suppressed. severity is page or ticket on an SLO rule’s messages, null on every other, and an SLO’s detail.pair names the pair (page, ticket, slow or at_risk). Switch on type and ignore the ones you do not handle: new types can be added. value is a rate from 0 to 1 (crash-free sessions, failed requests), the change in percent of the window before, negative for a fall (a rate of change), the ratio to the hourly mean (spikes), the occurrences (new issues), the issue’s regressions so far (an issue that regressed), the pair’s long-window burn (an SLO’s fire or resolve) or the share of the budget left (at risk); null for alert.issue_resolved. alert.issue_resolved follows an alert.new_issue or alert.issue_regressed once someone resolves or ignores the issue in Apsio, within a minute or two, so whatever you opened for it can be closed. Its detail has the issue’s fingerprint, trigger_event_id (the id of the request that told you of the issue) and status (resolved or ignored). There is one for each request that told of the issue: assigning or reopening the issue sends nothing, and a resolved issue that comes back is told again only by an issue regresses rule (alert.issue_regressed). Like PagerDuty’s resolves, it looks at issues closed in the last 24 hours and counts toward no limit. Messages carry names, ids and numbers only: never what your app’s users sent, such as error messages, stacks or request URLs.

Verify the signature

Each request is a POST with Content-Type: application/json, User-Agent: Apsio-Alerts/1 and two headers of its own:
t is when the request was signed, in Unix seconds. v1 is the hex HMAC-SHA256 of <t>.<raw body>, keyed with the destination’s signing secret: the whole whsec_... string, shown once when the destination is created or its secret rotated. To accept a request:
  1. Recompute the HMAC over the raw body, before parsing it, and compare it in constant time with each v1 in the header (today there is one).
  2. Reject a t more than five minutes from your clock, so an old request cannot be replayed.
  3. Keep the event ids you have handled and ignore a repeat: a retried delivery has the same id and a new t.
Answer 2xx within two seconds and do slow work after answering: a slower answer counts toward a pause, and after five seconds the request times out. In Node, pass the body as received (a string or a Buffer, such as express.raw() gives):
In Python, pass the body as bytes (in Flask, request.get_data()):
Both examples are run in CI against the signer Apsio uses. Rotating the secret (Rotate secret on the destination, in Settings › Alerts) stops the old one at once.