Skip to main content

Interface: MonitorDownEventData

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

Payload for events when a monitor goes down (unavailable).

Remarksโ€‹

Emitted when a monitored endpoint or service is detected as down.

  • monitor: The monitor that went down.
  • site: The site containing the monitor.
  • siteId: The unique identifier of the site.
  • timestamp: The time (in ms since epoch) when the event occurred.

Exampleโ€‹

const event: MonitorDownEventData = {
monitor,
site,
siteId: site.id,
timestamp: Date.now(),
};

Extendsโ€‹

Propertiesโ€‹

timestampโ€‹

timestamp: number

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

The time (in ms since epoch) when the event occurred.

Inherited fromโ€‹

BaseEventData.timestamp


monitorโ€‹

readonly monitor: Monitor

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

The monitor that went down.


siteโ€‹

readonly site: Site

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

The site containing the monitor.


siteIdโ€‹

readonly siteId: string

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

The unique identifier of the site.