UseAlerts
useAlerts
Returns information about all registered Alerts, including how many are active and at what severity.
Signature
function useAlerts(): { alerts: Alert[]; activeCount: number; highestSeverity: AlertSeverity }
Alert
An individual Alert item.
Signature
interface Alert {
definition: DashboardAlertDefinition;
active: boolean;
currentSeverity?: AlertSeverity;
lastData: any;
dismiss: () => void;
}