Instruments Status rollup
// Status

Status

The system-mood rollup: many channel states folded into one posture, NOMINAL, DEGRADED or ALARMED, with the counts that explain it.

<talos-status> is the answer an operator reads first: is the system OK right now? Each instrument reports its own channel; the status strip rolls them up into one posture, worst-of, and shows the per-band counts so the verdict is auditable: you see why it is degraded, not only that it is.

Default

LIVE
<talos-status channels="ok,ok,ok,warn,ok,ok" label="Cluster" scan></talos-status>

channels is a comma-separated list of channel states. The demo re-rolls one channel every second, so the posture moves as the worst channel changes. The left rule and the posture word take the band colour; the counts on the right list only the bands present, worst first.

Postures

PREVIEW
<talos-status channels="ok,ok,ok,ok" label="Edge"></talos-status>
<talos-status channels="ok,warn,ok,warn" label="Storage"></talos-status>
<talos-status channels="ok,crit,warn,ok" label="Database"></talos-status>
Worst channelPosture
ok / nominalNOMINAL
warn / warningDEGRADED
crit / criticalALARMED

One critical channel is enough for ALARMED; the other channels still show in the counts. idle channels have nothing to report and never raise the mood.

No data

PREVIEW
<talos-status label="Backups"></talos-status>
<talos-status channels="idle,idle" label="Batch"></talos-status>

With no reporting channel (none listed, or only idle ones) the strip reads NO DATA in the muted colour, sets data-state="unknown" and removes data-band. It does not claim NOMINAL for a system it has not heard from.

Scan

scan adds a sweep across the strip. Its presence means the system is actively monitored, and its speed is the severity: slow at NOMINAL, faster at DEGRADED, fastest at ALARMED. Under prefers-reduced-motion or with static the sweep is dropped; the colour, word and counts stay.

Behaviour

All attributes are reactive. The host carries data-band (nominal, warning or critical) for styling, and is role="status" with an aria-label that spells out the posture and counts, so the verdict survives without colour. Channel words accept the same severity vocabulary as every instrument: ok, warn, crit, nominal, warning, critical, idle.

Attributes

Generated from custom-elements.json in the installed package. Shared attributes (state, format, static…) behave as the instrument contract describes.

AttributeTypeDefaultDescription
channels string — comma-separated channel states (required for a rollup)
label string SYSTEM system name shown before the posture.
scan boolean — sweep while monitoring; speed scales w/ severity.
state string — live | loading | stale | offline | unknown; sets data-state on the host
updated-at string — time of the last sample (ISO or epoch ms); drives the age caption
stale-after string — seconds after updated-at at which the element reads stale
static string — boolean; turns motion off for this element only

CSS parts

::part(bar), ::part(caption), ::part(counts), ::part(label), ::part(word)