isapi_event_httphost.go 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. package isapi
  2. type eventType string
  3. const (
  4. shelterAlarm eventType = "shelteralarm" //遮盖报警
  5. fieldAlarm eventType = "fielddetection" //区域入侵
  6. lineAlarm eventType = "linedetection" //越界侦测
  7. regionEntrance eventType = "regionEntrance" //进入区域侦测
  8. regionExiting eventType = "regionExiting" //离开区域侦测
  9. )
  10. //todo 边缘端启动时配置一次, 提供主动配置配置接口
  11. // GetHostCap 获取监听主机参数能力
  12. func (c *Client) GetHostCap() ([]byte, error) {
  13. return c.CommonGet("/ISAPI/Event/notification/httpHosts/capabilities")
  14. }
  15. // PutHost 配置单个监听主机参数
  16. func (c *Client) PutHost(data []byte) ([]byte, error) {
  17. return c.CommonPut(data, "/ISAPI/Event/notification/httpHosts")
  18. }
  19. // DelHost 删除单个监听主机参数
  20. func (c *Client) DelHost() ([]byte, error) {
  21. return c.CommonDel(nil, "/ISAPI/Event/notification/httpHosts/1")
  22. }
  23. // GetHost 获取单个监听主机参数
  24. func (c *Client) GetHost() ([]byte, error) {
  25. return c.CommonGet("/ISAPI/Event/notification/httpHosts/1")
  26. }