Skip to content
Design System
GitHub

Heartbeat strip

v0.64.0, changelogBeta

A device's check-ins over a window, one cell per stretch: grey where it reported, an outline where it was silent, colour only for a reported problem.

API reference

Generated from the types. Every part also takes className.

HeartbeatStrip

bucketsrequired
HeartbeatBucket[]The window's stretches, oldest first, as the server aggregated them.
bucketMsrequired
numberEach stretch's length.
events
HeartbeatEvent[] = []
windows
{ value: string; label: string; }[]The windows to offer ([{ value: "24h", label: "24 h" }]); the product fetches the buckets for the one chosen.
window
string
onWindowChange
(value: string) => void
view
"table" | "chart""chart" or "table"; uncontrolled from defaultView when omitted.
defaultView
"table" | "chart" = "chart"
onViewChange
(view: "chart" | "table") => void
locale
string
timeZone
stringIANA zone for times; the browser's when omitted.
labels
Partial<HeartbeatStripLabels>