eventNotificationAlert.go 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package eventServer
  2. // 事件警报通知
  3. type EventNotificationAlert struct {
  4. IpAddress string `xml:"ipAddress"`
  5. PortNo string `xml:"portNo"`
  6. Protocol string `xml:"protocol"`
  7. MacAddress string `xml:"macAddress"`
  8. ChannelID string `xml:"channelID"`
  9. DateTime string `xml:"dateTime"`
  10. ActivePostCount string `xml:"activePostCount"`
  11. EventType string `xml:"eventType"`
  12. EventState string `xml:"eventState"`
  13. EventDescription string `xml:"eventDescription"`
  14. DetectionRegionList struct {
  15. DetectionRegionEntry []struct {
  16. RegionID string `xml:"regionID"`
  17. SensitivityLevel string `xml:"sensitivityLevel"`
  18. RegionCoordinatesList struct {
  19. RegionCoordinates []struct {
  20. PositionX string `xml:"positionX"`
  21. PositionY string `xml:"positionY"`
  22. } `xml:"RegionCoordinates"`
  23. } `xml:"RegionCoordinatesList"`
  24. DetectionTarget string `xml:"detectionTarget"`
  25. TargetRect struct {
  26. X string `xml:"X"`
  27. Y string `xml:"Y"`
  28. Width string `xml:"width"`
  29. Height string `xml:"height"`
  30. } `xml:"TargetRect"`
  31. } `xml:"DetectionRegionEntry"`
  32. } `xml:"DetectionRegionList"`
  33. ChannelName string `xml:"channelName"`
  34. DetectionPictureTransType string `xml:"detectionPictureTransType"`
  35. DetectionPicturesNumber string `xml:"detectionPicturesNumber"`
  36. IsDataRetransmission string `xml:"isDataRetransmission"`
  37. DurationList struct {
  38. Duration []struct {
  39. RelationEvent string `xml:"relationEvent"`
  40. } `xml:"Duration"`
  41. } `xml:"DurationList"`
  42. }
  43. var sMap = map[string]string{
  44. "shelteralarm": "遮盖报警",
  45. "regionEntrance": "进入区域",
  46. "fielddetection": "区域入侵",
  47. "linedetection": "越界侦测",
  48. }