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:- 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. - 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 —blockrefuses 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. - The breach policy (
/api/v1/voice/queues/{id}/sla-breach/policy) is the persistent contract:targetPercentageof calls answered withinthresholdSecondsover a rollingevaluationWindowMinutes. When a measured window misses the objective,POST .../sla-breach/scanappends the breach to the queue’s event log once per window and fans out to the surfaces you picked. With no ladder,breachActionis 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), ornone(log only). - 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.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:
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.suggestmarks the callback as advised without refusing entry. See Inbound queue SLA forecast + virtual callback gate. - On a measured breach (the policy):
enqueue_callbackas 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.
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/eventsreturns 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}/livestreams 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/eventsnewest 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_levelcomplement 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:breached: true, cooldown_active: true, alert_fired: [] — the same open breach inside breachCooldownSeconds, so nothing appends and nothing fires.
observed_service_levelis the measured promise,answeredWithinSla ÷ offeredCallsover the window: 87 ÷ 120 = 72.5 in the samples’ window.breachedon the scan verdict compares that number withtargetPercentage: 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.cooldown_activemeans the scan landed insidebreachCooldownSecondsof the last append for the same open breach. The verdict still reportsbreached: truebut appends nothing and fires nothing. A run of those after a fired breach is the storm guard working, not a failure.alert_firedon the scan andsurfaces_firedon the log record what actually ran, not what the policy says. An emptysurfaces_firedon 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.policy_configuredandevent_loggedon the scan verdict answer “is this queue opted in at all”: a scan against a queue with no policy returnspolicy_configured: falseand 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 totargetServiceLevelSeconds. 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 shorterthresholdSeconds, as in the samples’ 95/20 body forreroute_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.
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.
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
evaluationWindowMinutesso the changeover dilutes into surrounding traffic, or align the scan’swindowStartwith 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
noneduring the baseline week until you have seen the traffic shape.
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, notargetPercentage 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 onsuggest, a three-rung ladder, and a wallboard alarm as the ad-hoc backstop.
- 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 sametargetServiceLevelSeconds: 30. - 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, notblock), each seeing the callback marked advised. - 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 recordsescalation_ladderas the route. - 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. - Recovery. The window clears; the wallboard alarm (a tenant-wide
service_level < 0.8rule) 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.
Related pages
- Queue SLA breach: worked SDK samples — copy-pasteable cURL, Node, Python, and Go calls for the policy PUT, scan POST, and event-log GET on this page.
- Set up and run voice queues — create the queue, staff it, and define the per-queue SLA breach policy (section 9 covers the five
sla-breachendpoints field by field). - Inbound queue SLA forecast: pre-suggest callback before breach — the forecast wave’s flag math, bounds, and supervisor advisory.
- Inbound queue SLA forecast + virtual callback gate — the entry gate’s
suggest/blockverdicts and dispatch safety gates. - Wallboard alarm rules — the ad-hoc alarm surface that complements the persistent breach policy.
- Wallboards and SLA telemetry — the model behind the service-level tile, threshold alarms, and forecast-versus-measured SLA the wallboard renders.
- Queue SLA forecast-callback runbook — the responder half of this page: what on-call does once a breach fires.
- Inbox SLA timers — the conversation-level policy-plus-tier pattern over messaging clocks; the escalation-action vocabulary is shared.
- Per-digital-queue inbox SLA escalation policies — the digital-queue sibling of this page: the same ladder-wins rule over a queue’s backlog instead of a call window.
- Conference failure-attribution analytics — break down every failed conference leg into where the failure happened and what to do about it.