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();