Skip to main content

Per-queue SLA breach alerting and escalation policies

An SLA on a voice queue is a promise with a consequence attached. The promise: 80% of callers answered within 30 seconds, measured over a rolling 15-minute window. The consequence: the moment the queue falls behind that promise, Orbit notifies the person you named, starts the escalation ladder you defined, and — before any of that — offers the waiting callers a callback so nobody accrues hold time on a queue that is already missing its target. This page is the map of that system. The four pieces each have their own detail page; this is the parent concept that shows how the objective, the forecast, the breach policy, and the caller-relief path connect into one pipeline, and how to wire them together for a real queue.

Why queues, and why per-queue service levels

Callers queue for two reasons: fairness (first caller in is first answered) and capacity (the roster is finite, so multi-minute surges have to wait somewhere). Queuing is correct behaviour — the failure mode is queuing silently. Two independent things break silence:
  • The queue’s service level is per-queue. A support queue promising “80% in 30s” and a payments queue promising “95% in 20s” cannot share one global target — the payment promise is stricter, breaches sooner, and escalates to a different person. Every surface below reads the queue’s own target, so changing the queue changes the whole pipeline at once.
  • A breached target is a routing signal, not a post-mortem stat. Once the queue’s rolling window says “we are missing our own target,” three things should happen immediately: the supervisor hears about it, the escalation clock starts, and new or waiting callers get a way out that doesn’t cost them their place. The pipeline below makes all three automatic; nothing is a report you read the next morning.

The pipeline: objective → forecast → breach → escalation

Four pieces, each a queue-scoped configuration you own, each optional on its own, strongest together:
  1. The SLA objective (targetServiceLevelSeconds, 5–300s) is the single source three engines share: the wallboard’s service-level metric, the pre-breach forecast, and the breach policy’s answer-within threshold. Set it once on the queue; every surface adopts it. A queue with no target is opt-out on every surface — nothing evaluates, nothing alerts.
  2. The forecast runs far enough ahead to matter. The same evaluation wave that ages the queue’s live stats projects each waiting head’s wait against the target; a head whose projected wait meets or exceeds the target is flagged before the breach lands, so the “press 1 for a callback” offer reaches callers while it can still save their wait. The entry gate slaCallbackPolicy (‘suggest’ / ‘block’) applies the same forecast to new arrivals — block refuses entry into an already-breaching queue and routes the caller to a position-saving callback. The forecast is advisory and bounded (at most ten heads per wave, closest-to-breach first); it never blocks a queue that hasn’t opted in.
  3. The breach policy (/api/v1/voice/queues/{id}/sla-breach/policy) is the persistent contract: targetPercentage of calls answered within thresholdSeconds over a rolling evaluationWindowMinutes. When a measured window misses the objective, POST .../sla-breach/scan appends the breach to the queue’s event log once per window and fans out to the surfaces you picked. With no ladder, breachAction is the one-shot response: open_ticket (org-admin inbox item), page_supervisor (outbound tenant webhook your paging tool subscribes to), reroute_to_overflow_queue (both), enqueue_callback (webhook so downstream automation queues a callback), or none (log only).
  4. The escalation ladder (escalationSteps[]) supersedes the one-shot action when any step is configured. Step 1 fires at breach + 0 minutes; later steps are delayed rungs a follow-up executor fires if the queue hasn’t recovered — the breach log records the ladder as the effective route. Step actions reuse the inbox-SLA vocabulary (notify, slack_alert, slack_webhook, teams_webhook, webhook, reassign, none), so a supervisor who already runs inbox SLA policies is composing the same building blocks against a different clock. breachCooldownSeconds (default 300) dedupes repeated scans of the same window so one breach alerts once.

Configure one queue

Everything below is per queue and takes effect on the next evaluation tick. The dashboard surfaces these same fields under Voice → Queues → ‹queue› → SLA, and the same queue feed powers the breach-log tab there.
Read the current policy with GET .../sla-breach/policy; remove the whole policy with DELETE — a queue with no policy logs nothing, gates nothing, and alerts nothing. The scan is the trigger your monitoring loop drives. Feed it a window you’ve measured (from the queue stats endpoints or your own aggregation) and it returns the verdict:
For worked, copy-pasteable samples of these calls — the policy PUT in cURL + Node + Python, the scan POST, the event-log GET, and a complete request body for each breachAction option — see Queue SLA breach: worked SDK samples.

How the forecast and callback close the loop

Alerts tell humans; the forecast tells callers. Without the callback leg, a breach queue only gets worse — every new arrival accrues hold the queue already can’t afford, and every waiting caller ages past the objective while the escalation ladder climbs.
  • Pre-breach (the forecast wave): callers whose projected wait is about to cross the target are flagged for the press-1 callback opt-in before the breach — the closest-to-breach heads first, bounded per wave. A consenting caller hangs up, keeps their position, and the callback-in-queue dispatcher dials them back over Orbit’s voice trunk when they reach the front. See Inbound queue SLA forecast: pre-suggest callback before breach.
  • At entry (the forecast gate): slaCallbackPolicy: "block" applies the same forecast to arrivals — the queue refuses the enqueue while breaching and routes the caller to the callback consent instead. suggest marks the callback as advised without refusing entry. See Inbound queue SLA forecast + virtual callback gate.
  • On a measured breach (the policy): enqueue_callback as the breach action (or as a ladder rung’s downstream automation) pushes the same relief into your own orchestration: your webhook consumer receives the breach event and queues callbacks for the waiting list.
All three legs terminate in the same callback dispatcher, so the safety gates are identical regardless of which one fired: emergency numbers can never be callback-dialed, outbound dialing respects the federal calling window for US numbers, and dialbacks place over the platform’s standard outbound voice path.

Observe the system

  • Wallboard. The queue’s service-level metric, the alarm rules you set on service_level, and the breach-log tab all read the same per-queue target and the same event log — one number, three renderings. Alarm rules cover ad-hoc thresholds (“service level below 80% anywhere”); the breach policy is the persistent objective. Wire both: wallboard alarm rules.
  • Breach history. GET /api/v1/voice/queues/{id}/sla-breach/events returns the newest-first log (up to 200 entries): the observed service level, the policy in force, and the surfaces that actually fired. That last field is your audit trail — it records what the ladder did, not what it was configured to do.
  • Live feed. GET /api/v1/voice/queues/{id}/live streams the same metrics plus any fired alert rules over SSE; the supervisor flag for forecast-flagged heads surfaces there too.
  • Escalation audit. Every policy write is audit-logged, and each escalation step that fires lands on the same surfaces the inbox SLA engine uses — query them the same way you audit inbox timers.

Operate the pipeline

Configuration is a one-time act; operation is a loop. Read the verdicts where they render, read the log in order, tune the three numbers from your own history, and know when a breach pattern is a policy problem versus a staffing problem.

Where verdicts and logs render

  • Queue detail, SLA tab. Under Voice → Queues → ‹queue› → SLA, the policy editor shows the fields you PUT, and directly beneath it the breach log renders GET /api/v1/voice/queues/{id}/sla-breach/events newest first: the observed service level per breach and the surfaces that fired. This is the tab the walk below reads.
  • Wallboard. The board renders the same per-queue target twice: as the live service-level reading for the queue, and as a per-queue breached count that turns red while the queue misses its target. The model behind those tiles (metric families, threshold alarms versus the persisted SLA policy, forecast versus measured) lives in Wallboards and SLA telemetry; the ad-hoc alarm rules you set on service_level complement the persisted policy per Wallboard alarm rules. Wire both.
  • Per-queue analytics. The historical service level the tuning math below reads is on the per-queue analytics page; Per-queue analytics drilldown console walks it.
  • The responder half. When a breach pages a human, the responder’s playbook is Queue SLA forecast-callback runbook.

Read the event log in sequence

Pull the log exactly as the samples page does, then read it top-down:
Two entries from one open breach, with the scan verdict that lands between them:
The window turned at 14:15: the breach appended and rung 1 fired. A scan posted two minutes later returns breached: true, cooldown_active: true, alert_fired: [] — the same open breach inside breachCooldownSeconds, so nothing appends and nothing fires.
At 14:45 the cooldown had expired with the queue still missing its target, so a new breach appended and the next surface fired. Read the fields in this order:
  1. observed_service_level is the measured promise, answeredWithinSla ÷ offeredCalls over the window: 87 ÷ 120 = 72.5 in the samples’ window.
  2. breached on the scan verdict compares that number with targetPercentage: 72.5 against 80 is a breach by a 7.5-point margin. The margin is your signal strength; half a point under on a thin window reads very differently from 7.5 points under on 120 offered calls.
  3. cooldown_active means the scan landed inside breachCooldownSeconds of the last append for the same open breach. The verdict still reports breached: true but appends nothing and fires nothing. A run of those after a fired breach is the storm guard working, not a failure.
  4. alert_fired on the scan and surfaces_fired on the log record what actually ran, not what the policy says. An empty surfaces_fired on a breach entry means log-only (none, or no ladder yet); when auditing, compare the field with your configuration, because it records what the ladder did, not what it was configured to do.
  5. policy_configured and event_logged on the scan verdict answer “is this queue opted in at all”: a scan against a queue with no policy returns policy_configured: false and logs nothing, so an empty log plus that flag means the queue was never opted in, not that it never breached.

Tune the three numbers from your own history

  • thresholdSeconds: keep it equal to targetServiceLevelSeconds. The wallboard tile, the forecast, and the breach policy all read the queue’s promise; when the policy threshold equals the queue target, one number drives every surface and changing the queue changes the whole pipeline. Diverge only if you can state the reason in one sentence.
  • targetPercentage: pick the promise you staff to, from your best ordinary week. Pull the last weeks of service level on the per-queue analytics page. If your best ordinary week runs 88–90%, a target of 80 leaves headroom for genuine surges; 95 pages someone every Tuesday. A payments-style queue that earns a stricter promise takes 90–95 with a shorter thresholdSeconds, as in the samples’ 95/20 body for reroute_to_overflow_queue.
  • evaluationWindowMinutes: long enough that a percentage means something. The samples’ window holds 120 offered calls, where one slow answer moves the observed level by under a point. A quiet queue at 12 offered per window moves 8 points per call, and one held transfer flips the verdict. If off-peak hours drop below roughly 30 offered per window, lengthen the window until it holds real traffic: offered per window ≈ offered per hour × window ÷ 60.
Cooldown sizing. breachCooldownSeconds exists so one open breach alerts once; size it to the human, not to the scan cadence. If your on-call realistically reacts in ten minutes, a 300-second cooldown fires a second alert before the first is acted on; 600–900 seconds tracks human tempo, and the escalation ladder’s delayed rungs own “still broken later”. Your monitoring loop may post a scan every 60 seconds regardless; the cooldown makes the repeats cheap. breachAction by ops maturity.
  • none: the baseline week. Log only, and read the log against the analytics to learn the queue’s real service level before anyone carries a pager.
  • open_ticket: you triage but do not page. Breaches land as org-admin inbox items reviewed on the same cadence as the rest of the inbox.
  • page_supervisor: you run a paging contract. Your paging tool subscribes to the tenant webhook and a human reacts within minutes; treat the webhook payload as a contract and version it like an API.
  • reroute_to_overflow_queue: you have overflow capacity. Pair it with your queue overflow setup and Omnichannel queue routing so the reroute lands somewhere actually staffed.
  • enqueue_callback: your relief is automation. Your webhook consumer queues callbacks for the waiting list; the callback mechanics (windows, cancellation, safety gates) live in Voice queue callbacks with SLA policies and scheduling.
Move up the list only when the previous rung is boring. Paging from page_supervisor before the baseline week produces pager fatigue that later hides the real breach.

False-positive checklist

Before changing anything, check the three classic dips:
  • Shift changeover. Answer rate dips while agents swap shifts and log in; if your window straddles the changeover, the dip lands as a breach with no capacity failure. Lengthen evaluationWindowMinutes so the changeover dilutes into surrounding traffic, or align the scan’s windowStart with the rota instead of the clock.
  • Scheduled dips (lunch, standups). The same shape at known times. A breach log that fires at 12:15 every day is a schedule, not a failure; dilute it with the window or staff across it.
  • Small-N windows. Early and late, a handful of calls makes the percentage swing. Lengthen the window, or hold the queue at none during the baseline week until you have seen the traffic shape.
The test: a breach that disappears when the window doubles is a window problem. A breach that survives the doubling is capacity.

When the pattern is staffing, not policy

A misset target breaches sporadically on a queue that is usually green. A staffing gap breaches on the daily curve: the same intervals, most days, exactly where the workforce forecast predicted the peak. If your breach log clusters at those intervals, no targetPercentage fixes it; you would be paging someone about a rota. Feed the breached intervals into the forecast’s accuracy loop, run the staffing what-if for the peak intervals, staff the promise, and only then retune the policy to what the staffed roster can keep.

End to end: one queue, one objective, one ladder

The support queue, doing the work: objective 80% in 30s over 15 minutes, forecast gate on suggest, a three-rung ladder, and a wallboard alarm as the ad-hoc backstop.
  1. Steady state. The queue answers 88% within 30s. The forecast wave projects head waits under target; the supervisor advisory stays no_action; the wallboard renders green against the same targetServiceLevelSeconds: 30.
  2. The surge starts. A marketing send lands and the queue deepens. The forecast wave flags the head: projected wait 34s against the 30s target. The in-queue surface offers press-1 callback; three callers consent and keep their positions. New arrivals still enter (the gate is suggest, not block), each seeing the callback marked advised.
  3. The window turns. Your monitoring loop posts the 15-minute window to .../sla-breach/scan: 120 offered, 87 within SLA → 72.5% vs the 80% objective. The cooldown is clear, so the scan appends the breach and fires rung 1 (notify) immediately — the duty supervisors see it in-app. The event log records escalation_ladder as the route.
  4. Nobody fixes it in 15 minutes. The queue is still deep, so the follow-up executor fires rung 2: the Slack webhook posts the breach card to #support-overflow. A supervisor reassigns two agents from the payments queue.
  5. Recovery. The window clears; the wallboard alarm (a tenant-wide service_level < 0.8 rule) auto-clears with it. Rung 3 never fires. The breach log holds the full record — observed level, surfaces fired, and which rungs ran — for the QA review.
Each piece is optional and the queue is safe without any of them: an unconfigured queue queues callers and answers them, exactly as before. Configuring the whole pipeline turns “we missed our target” from a report into a route.