Freshness stamp
v0.64.0, changelogBetaHow old a device's last report is, beside the values it qualifies: live, lagging, stale, never reported, or not applicable (air-gapped).
API reference
Generated from the types. Every part also takes className.
FreshnessStamp
- lastAtrequired
DateInput | nullWhen the last report arrived; null or undefined when none has.- thresholdsrequired
{ laggingAfterMs: number; staleAfterMs?: number }The server's liveness thresholds, never a number of the interface's own.- airGapped
boolean- offline
booleanThe server's verdict, when it sends one (liveness).=== "offline" - now
numberms since the epoch. Pass oneuseNowfrom the page to keep a list of stamps in step; otherwise it reads the clock.- hideWhenLive
boolean = falseNothing while live: a mark on every healthy panel teaches people to stop reading marks.- variant
"text" | "icon" = "text""icon" shows the glyph alone, the words in its tooltip and name: for a value that already sits beside a stamp.- locale
string- timeZone
stringIANA zone for the exact time; the browser's when omitted.- refreshMs
number = 30_000How often it reads the clock when nonowis given. Ages are said to the minute, so 30 s is enough.- labels
Partial<FreshnessStampLabels>