Skip to main content

Type Alias: MonitorDownEventData

MonitorDownEventData = MonitorLifecycleEventData & { status: "down"; }

Defined in: shared/types/events.ts:556

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โ€‹

const event: MonitorDownEventData = {
details: "Service returned 500",
monitor,
monitorId: monitor.id,
previousStatus: "up",
site,
siteIdentifier: site.identifier,
status: "down",
timestamp: new Date().toISOString(),
};