Type Alias: MonitorDownEventData
type MonitorDownEventData = MonitorLifecycleEventData & {
status: "down";
};
Defined in: shared/types/events.ts:667
Payload for events when a monitor goes down (unavailable).
Type Declarationโ
statusโ
status: "down";
New status value (always "down" for this event).
Remarksโ
Emitted when a monitored endpoint or service is detected as down. Uses the
canonical StatusUpdate schema with status constrained to "down",
the modern siteIdentifier field (which supersedes the older siteId), and
ISO-8601 timestamps.
Exampleโ
// Example event payload for a monitor down event
const event: MonitorDownEventData = {
details: "Service returned 500",
monitor,
monitorId: monitor.id,
previousStatus: "up",
site,
siteIdentifier: site.identifier,
status: "down",
timestamp: new Date().toISOString(),
};