Lattice Grid Buy a licence

Alarms ยท console.warn

alarms.attach(grid) was given no `columns`, so no cell can raise anything. Declare the columns to watch: attach(grid, { columns: { cpu: { thresholds: { warn: 80, critical: 95, direction: 'lowerIsBetter' } } } }).

Printed by Alarms, prefixed [lattice], since 1.71.0.

Warnings referencealarms:grid-no-columns

Identifier
alarms:grid-no-columns
Raised by
Alarms
Since
1.71.0

What happened

An alarm set grades a grid cell only for the columns you name on the attach call, each with the KPI tile's own thresholds or bands. The call named none, so the grid was attached to nothing and no cell will ever raise or clear an alarm.

The fix

Pass columns naming each column to watch, with thresholds { warn, critical, direction } or a bands list, and optionally when for a condition on the cell's own value.

The smallest fix

alarms.attach(grid, { columns: { cpu: { thresholds: { warn: 80, critical: 95, direction: 'lowerIsBetter' } } } });

Reference

Covered in full at the API reference.