Alarms ยท console.warn
alarms.attach() was given something that is not a KPI panel, a grid or a data router; nothing was attached and no alarm can be raised from it.
Printed by Alarms, prefixed [lattice], since 1.71.0.
Warnings reference › alarms:unknown-source
- Identifier
alarms:unknown-source- Raised by
- Alarms
- Since
- 1.71.0
What happened
attach() recognises three sources: a KPI panel (it listens to tile:status), a grid (it grades the declared columns per cell) and a data router (it monitors a partition slice). The value passed was none of those, so it was ignored rather than guessed at.
The fix
Pass the instance itself: the object createKPI(), createGrid() or createRouter() returned, or the instance a framework adapter exposes (ref.current.instance, el.instance, the component's instance accessor).
The smallest fix
alarms.attach(kpi); // a KPI panel
alarms.attach(grid, { columns });
alarms.attach(router, r => r.site === 'LON', { thresholds });
Reference
Covered in full at the API reference.