Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# NET_SDK_IVE_COMMON_CFG

### Structure Definition

C++C#

    1
    2
    3
    4
    5
    6
    7
    8
    struct NET_SDK_IVE_COMMON_CFG
    {
        BOOL enable;
        int alarmHoldTime;
        int stayAlarmThreshold;
        unsigned int ruleCount;
        unsigned int ruleCfgCount;
    };

    1
    2
    3
    4
    5
    6
    7
    8
    9
    [StructLayout(LayoutKind.Sequential, Pack = 4)]
    public struct NET_SDK_IVE_COMMON_CFG
    {
        public bool enable;
        public Int32 alarmHoldTime;
        public Int32 stayAlarmThreshold;
        public UInt32 ruleCount;
        public UInt32 ruleCfgCount;
    }

### Function Description

Intelligent event detection general configuration

### Member Description

Member | Type | Remark
--- | --- | ---
enable | BOOL | Whether to enable.
alarmHoldTime | int | Alarm duration, in seconds. -1 means no such parameter.
stayAlarmThreshold | int | The alarm triggering time threshold, unit is s, 10 ~ 3600, -1 means no such parameter.
ruleCount | unsigned int | Number of rules.
ruleCfgCount | unsigned int | The number of rule configurations, the number of `NET_SDK_IVE_DETECT_RULE_CFG`. Note: When ruleCfgCount = 1, it means that all rules share the same configuration, otherwise, it means that each rule has a separate configuration.

Error Code