Alert Expressions
Alert expressions provide a way to modify widget graphical properties such as color, fill, and visibility based on series values and statistics.
Example:
- Change bar color to RED if the threshold is exceeded.
- If the threshold is within the normal range, but was violated at least once during the last hour, change the bar color to YELLOW .
- Otherwise, apply GREEN as the color.
[widget] type = bar color = yellowgreen alert-expression = max('1 hour') > 75 ? ((value > 75) ? 2 : 1) : false alert-style = (alert == 2) ? 'fill: red; stroke: red' : 'fill: yellow; stroke: yellow' [column] [series] entity = nurswgvml007 [column] [series] entity = nurswgvml006 [column] [series] entity = nurswgvml010 |