Skip to main content

UseAlerts

Returns information about all registered Alerts, including how many are active and at what severity.

Signature
function useAlerts(): { alerts: AlertEntry[]; activeCount: number; highestSeverity: AlertSeverity }

An individual Alert item.

Signature
interface AlertEntry {    definition: DashboardAlertDefinition;    active: boolean;    currentSeverity?: AlertSeverity;    lastData: any;    dismiss: () => void;}

definition

active

propertyboolean

currentSeverity

propertyAlertSeverity

lastData

propertyany

dismiss

property() => void
Was this chapter helpful?
Report Issue
Edited Feb 2, 2026·Edit this page