type alias Alert

One <EventNotificationAlert>, with the time it arrived.

Properties

channel: number

The channel the alert is about: <dynChannelID> when present, else <channelID>, else 0. On an NVR, IP cameras are 1..n; 0 is the NVR itself. A camera reports 1.

eventType: string

<eventType>, such as VMD, videoloss, fielddetection or linedetection.

eventState: string

<eventState>: active or inactive. VMD only ever posts active; smart events post inactive on some firmware when the rule clears.

optional
eventDescription: string

<eventDescription>, such as Motion alarm.

dateTime: string

<dateTime> as the device wrote it, zone or not. "" when missing.

at: string

When the alert arrived, as an ISO 8601 string.

optional
activePostCount: number

<activePostCount>: on an NVR, how many channels have an active event right now; 0 on the heartbeat. Not a count of posts.

optional
channelName: string

<channelName>, which cameras send and NVRs do not.

optional
ipAddress: string

<ipAddress> of the device that posted.

optional
macAddress: string

<macAddress> of the device that posted.

The regions of a smart event, when the alert carries a <DetectionRegionList>.