Add new alarm status types
This commit is contained in:
@ -88,3 +88,49 @@ type EventModelGetAlarmingResponse struct {
|
||||
VideoLossAlarmMask uint `json:"VL_AT"`
|
||||
VideoLossStatusMask uint `json:"VL_AS"`
|
||||
}
|
||||
|
||||
// 3.4.1.3
|
||||
type EventModelGetAlarmInfoStatusResponse struct {
|
||||
ErrorCode uint `json:"ERRORCODE"`
|
||||
ErrorCause string `json:"ERRORCAUSE"`
|
||||
MotionDetectionAlarm []MotionDetectionAlarmStatus `json:"MD"`
|
||||
IOAlarm []IOAlarmStatus `json:"IO"`
|
||||
StorageAlarm []StorageAlarmStatus `json:"ST"`
|
||||
StorageAlarmParameters []CameraCoveredAlarmStatus `json:"VS"`
|
||||
VideoLossAlarm []VideoLossAlarmStatus `json:"VL"`
|
||||
}
|
||||
|
||||
// 3.4.1.4.1
|
||||
type MotionDetectionAlarmStatus struct {
|
||||
Status uint `json:"ISA"`
|
||||
Mask uint `json:"LCH"`
|
||||
}
|
||||
|
||||
// 3.4.1.4.2
|
||||
type IOAlarmStatus struct {
|
||||
Status uint `json:"ISA"`
|
||||
IONumber uint `json:"IONO"`
|
||||
Mask uint `json:"LCH"`
|
||||
Name string `json:"NAME"`
|
||||
NameAbbreviation string `json:"NSER"`
|
||||
}
|
||||
|
||||
// 3.4.1.4.4
|
||||
type CameraCoveredAlarmStatus struct {
|
||||
ChannelMask uint `json:"CH"`
|
||||
AlarmMask uint `json:"AT"`
|
||||
StatusMask uint `json:"AS"`
|
||||
}
|
||||
|
||||
// 3.4.1.4.4
|
||||
type VideoLossAlarmStatus struct {
|
||||
Status uint `json:"ISA"`
|
||||
Mask uint `json:"LCH"`
|
||||
}
|
||||
|
||||
// 3.4.1.4.21
|
||||
type StorageAlarmStatus struct {
|
||||
SID any `json:"SID"`
|
||||
Type uint `json:"ST"`
|
||||
Error uint `json:"E"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user