Skip to content
caliper ui pro docs

Anomaly feed

Metrics that left the range they normally keep. Each alert says how far outside it is in a sentence, draws its expected band with the points that broke out, and can be snoozed, resolved or opened to investigate with a larger chart and the segments where the change concentrates.

Pro

Alerts

Metrics outside the range they usually keep

  • Signups

    All trafficCritical

    Signups is 34% below the expected low of 64, outside for 4 of the last 24 points.

    Seen today, 09:40

  • Checkout errors

    MobileDrifting

    Checkout errors is 21% above the expected high of 24, outside for 2 of the last 24 points.

    Seen today, 11:05

  • Docs search visits

    Unusually good

    Docs search visits is 14% above the expected high of 191, outside for 6 of the last 24 points.

    Seen yesterday, 16:30

When to use

  • The alerts screen of an analytics, monitoring or revenue tool.
  • A morning digest of what changed overnight.

When not to use

  • Hard thresholds such as an error budget; use a meter or usage meter.
  • Incident management with owners and timelines; this part flags, it does not run the incident.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/anomaly-feed

Adds its 12 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

AnomalyFeed

8 props
PropTypeDefault
anomalies *readonly Anomaly[]—
onSnooze((id: string, option: string) => void)—
onResolve((id: string) => void)—
onReopen((id: string) => void)—
snoozeOptionsreadonly SnoozeOption[]defaultSnooze
loadingboolean—
errorstring—
classNamestring—

bandDeviation

4 props
PropTypeDefault
label *string—
value *number—
lower *number—
upper *number—

describeAnomaly

10 props
PropTypeDefaultDescription
id *string—
metric *string—
segmentstring—Narrows the metric, e.g. "Mobile · Germany".
detected *string—When it was first seen, already written for people, e.g. "Today, 14:20".
points *readonly AnomalyPoint[]—
unitstring—
goodWhen"up" | "down"—Which way is bad news; a drift the good way is still flagged, but calmly.
status *AnomalyStatus—
snoozedUntilstring—When a snooze ends, written for people.
driversreadonly { label: string; change: number; }[]—Where the change concentrates, for the investigate view.

Keyboard

Enter or Space
Opens the menu from its trigger and activates the focused item.
↓ or ↑
Moves between items, wrapping at the ends; disabled items are skipped.
→ or ←
Opens and closes a submenu.
Escape
Closes the menu and returns focus to the trigger.
A–Z
Moves to the next item that starts with that letter.

Accessibility

It exposes status and alert semantics, with aria-hidden, aria-labelledby, aria-busy and aria-label kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/anomaly-feed.md

The index of every part is at /llms.txt.

More in Metrics