📦 Archived documentation: r1 (committed 2026-07-24) View current documentation →

alm.max()

alm.max() → number

Returns the highest active alarm priority across all groups.

A one-call health summary — useful for driving the status LED or a summary output:

setEnv("led", alm.max() >= alm.warn ? "red" : "green");

Returns

number Highest active priority overall, 0 when nothing is alarming.

Example

let max = alm.max();