| | |
| | | CameraNames string `json:"camera_names"` |
| | | Id string `json:"id" example:"组规则的id"` |
| | | |
| | | GroupText string `json:"group_text" binding:"required"` |
| | | AlarmLevel int `json:"alarm_level"` |
| | | Rules []CameraRuleBase `json:"rules" binding:"required"` |
| | | SetType string `json:"set_type"` |
| | | GroupText string `json:"group_text" binding:"required"` |
| | | AlarmLevel int `json:"alarm_level"` |
| | | Rules []CameraRuleBaseVo `json:"rules" binding:"required"` |
| | | SetType string `json:"set_type"` |
| | | |
| | | TemplateId string `json:"template_id"` |
| | | TimeRuleId string `json:"time_rule_id"` //时间段 |
| | |
| | | Enable bool `json:"enable"` |
| | | } |
| | | |
| | | type CameraRuleBase struct { |
| | | CameraId string `json:"camera_id"` //摄像机id |
| | | type CameraRuleBaseVo struct { |
| | | CameraId string `json:"camera_id"` //摄像机id |
| | | PolygonId string `json:"polygon_id"` //多边形id |
| | | SdkId string `json:"sdk_id"` //算法id |
| | | SdkArgAlias string `json:"sdk_arg_alias"` //算法参数别名 |
| | | Operator string `json:"operator"` //计算方式=,>,>=等等 |
| | | OperatorType string `json:"operator_type"` //计算的值类型 |
| | | SdkArgValue string `json:"sdk_arg_value"` //算法参数值设置 |
| | | Sort int `json:"sort"` //排序 |
| | | SdkId string `json:"sdk_id"` //算法配置 |
| | | SdkSet []TemplateArg `json:"sdk_set"` |
| | | |
| | | RuleWithPre string `json:"rule_with_pre"` //与上一条记录的逻辑运算规则(&&,||) |
| | | IsSaveAnyhow bool `json:"is_save_anyhow"` |
| | | GroupId string `json:"group_id"` //分组id |
| | | Sort int `json:"sort"` //排序 |
| | | } |
| | | |
| | | type TemplateArg struct { |
| | | SdkArgAlias string `json:"sdk_arg_alias"` //算法参数别名 |
| | | Operator string `json:"operator"` //计算方式=,>,>=等等 |
| | | OperatorType string `json:"operator_type"` //计算的值类型 |
| | | SdkArgValue string `json:"sdk_arg_value"` //算法参数值设置 |
| | | Sort int `json:"sort"` //排序 |
| | | } |