Structure about alarm rule parameters.
struct{ BYTE byActive; BYTE byEventPriority; BYTE byBackgroundSuppression; BYTE byRes1[3]; WORD wEventType; BYTE byRuleName[NAME_LEN/*32*/]; NET_VCA_EVENT_UNION uEventParam; NET_VCA_SIZE_FILTER struSizeFilter; NET_DVR_SCHEDTIME struAlarmTime[MAX_DAYS/*7*/][MAX_TIMESEGMENT_V30/*8*/]; NET_DVR_HANDLEEXCEPTION_V41 struAlarmHandleType; DWORD dwRelRecordChan[MAX_CHANNUM_V30/*64*/]; WORD wAlarmDelay; BYTE byRes2[2]; NET_VCA_FILTER_STRATEGY struFilterStrategy; NET_VCA_RULE_TRIGGER_PARAM struTriggerParam; BYTE byRes[32]; }NET_VCA_ONE_RULE_V42,*LPNET_VCA_ONE_RULE_V42;
Whether to enable alarm rule: 0-no, other value-yes
Event priority: 0-low, 1-medium, 2-high
Background suppression: 0-disable, 1-enable, 2-"self-adaption"
Reserved, set to 0.
Event type, see the structure VCA_RULE_EVENT_TYPE_EX for details.
Rule name
Behavior analysis event parameter, see the structure NET_VCA_EVENT_UNION for details.
Size filter, see the structure NET_VCA_SIZE_FILTER for details.
Arming time, see the structure NET_DVR_SCHEDTIME for details.
Alarm/event linkage actions, see the structure NET_DVR_HANDLEEXCEPTION_V41 for details.
Alarm triggered recording channel. The channel number is bound with group No., i.e., when the group No. is 0, the related channel No. ranges from 1 to 64; when the group No. is 1, the related channel No. ranges from 65 to 128. 0xffffffff indicates the current and following related channel No. is invalid in the group.
Alarm delayed time: "0"-5s, "1"-10s, "2"-30s, "3"-60s, "4"-120s, "5"-300s, "6"-600s
Reserved, set to 0
Size filter strategy, see the structure NET_VCA_FILTER_STRATEGY for details.
Rule triggering parameter, see the structure NET_VCA_RULE_TRIGGER_PARAM for details.
Reserved, set to 0
The video channel No. links with the group No., e.g., when the group No. is 0, the No. of channels in the group is between 1 and 64; when the group No. is 1, the No. of channels in the group is between 65 and 128, and so on. If the group No. is 0xffffffff, it indicates that the No. of channels in current group and the following channels is invalid.