NET_VCA_ONE_RULE_V42

Structure about alarm rule parameters.

Structure Definition

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;

Members

byActive

Whether to enable alarm rule: 0-no, other value-yes

byEventPriority

Event priority: 0-low, 1-medium, 2-high

byBackgroundSuppression

Background suppression: 0-disable, 1-enable, 2-"self-adaption"

byRes1

Reserved, set to 0.

wEventType

Event type, see the structure VCA_RULE_EVENT_TYPE_EX for details.

byRuleName

Rule name

uEventParam

Behavior analysis event parameter, see the structure NET_VCA_EVENT_UNION for details.

struSizeFilter

Size filter, see the structure NET_VCA_SIZE_FILTER for details.

struAlarmTime

Arming time, see the structure NET_DVR_SCHEDTIME for details.

struAlarmHandleType

Alarm/event linkage actions, see the structure NET_DVR_HANDLEEXCEPTION_V41 for details.

dwRelRecordChan

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.

wAlarmDelay

Alarm delayed time: "0"-5s, "1"-10s, "2"-30s, "3"-60s, "4"-120s, "5"-300s, "6"-600s

byRes2

Reserved, set to 0

struFilterStrategy

Size filter strategy, see the structure NET_VCA_FILTER_STRATEGY for details.

struTriggerParam

Rule triggering parameter, see the structure NET_VCA_RULE_TRIGGER_PARAM for details.

byRes

Reserved, set to 0

Remarks

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.