JSON_EventNotificationAlert_WaitingTimeDetectionAlarmMsg

JSON message about details of waiting time detection alarm

Waiting Time Detection Alarm with Binary Picture Data

Content-Type: multipart/form-data; boundary=MIME_boundary
--MIME_boundary
Content-Type: application/json
Content-Length: 480
{
  "ipAddress": "",
/*required, string, IPv4 address of alarm device, the maximum value size is 32 bytes, e.g., 172.6.64.7*/
  "ipv6Address": "",
/*required, string, IPv6 address of alarm device, the maximum value size is 128 bytes*/
  "portNo": ,
/*optional, integer32, port No. of alarm device*/
  "protocol": "",
/*optional, string, protocol type: "HTTP"-for device network SDK, "HTTPS", "EHome"-for ISUP SDK; the maximum value size is 32 bytes*/
  "macAddress": "",
/*optional, string, MAC address, the maximum value size is 32 bytes, e.g., 01:17:24:45:D9:F4*/
  "channelID": ,
/*optional, integer32, No. of alarm triggered channel*/
  "releatedChannelList": [1,2,3],
/*optional, array of integers, list of alarm related channels, which are of the same camera with channelID; this parameter is used for live view or playback on the platform*/	
  "dateTime": "",
/*required, string, alarm triggered time (ISO 8601 format), the maximum value size is 32 bytes, e.g., 2004-05-03T17:30:08+08:00*/
  "activePostCount": ,
/*required, integer32, uploaded times of one alarm*/	
  "eventType": "",
/*required, string, occurred event type, here it should be set to "personQueueTime", and the maximum value size is 128 bytes*/	
  "eventState": "",	
  "eventDescription": "",
  "deviceID": "",
  "humanCapture": {
/*captured human information*/
    "human":{
/*human attributes*/
      "targetID": ,
/*required, integer, person target ID, whose waiting time is longer than the configured alarm threshold. The ID is generated by DSP, and corresponds to the person position*/
      "waitTime": ,
/*required, integer, actual waiting time, it is ranging from 0 to 3600s*/
      "Region": [{ 
/*required, target person region coordinates, it is quadrilateral*/
	"x": ,
/*required, float, x-coordinate, it is ranging from 0.000 to 1*/
	"y": 
/*required, float, y-coordinate, it is ranging from 0.000 to 1*/
      }]
      contentID": ""
/*captured human thumbnail*/
    },
    "rule":{
/*rule properties*/
      "ruleID": ,
/*required, integer, rule ID, which corresponds to the target person region ID*/
      "alarmTime": ,
/*required, integer, configured waiting time alarm threshold, it is ranging from 0 to 3600s*/
      "regionColor": "",
/*required, string, rule region color, "blue", "red", and "yellow" are available*/
      "Region": [{ 
/*required, rule region coordinates, it is polygonal (3 to 10 edges)*/
	"x": ,
/*required, float, x-coordinate, it is ranging from 0.000 to 1*/
        "y": 
/*required, float, y-coordinate, it is ranging from 0.000 to 1*/
      }]
      "timeTriggerType": ""
/*optional, string type, triggering type of waiting time detection alarm: "greater", "less", "equal", "unequal"-the alarm is triggered when waiting time is larger than, smaller than, equal to, or not equal to the value of alarmTime*/
    }	
  },
  "contentID": ""
/*background picture*/
}
--MIME_boundary
Content-Type: image/jpeg
Content-Length: 42569
Content-ID: human_image

fefefwageegfqaeg…
--MIME_boundary
Content-Type: image/jpeg
Content-Length: 516876
Content-ID: background_image

fefefwageegfqaeg…
--MIME_boundary--

Waiting Time Detection Alarm with Picture URL

{
  "ipAddress": "",
  "ipv6Address": "",
  "portNo": ,
  "protocol": "",   
  "macAddress": "",
  "channelID": "",
  "releatedChannelList": [1,2,3],
/*optional, array of integers, list of alarm related channels, which are of the same camera with channelID; this parameter is used for live view or playback on the platform*/    
  "dateTime": "",  
  "activePostCount": ,   
  "eventType": "",
/*required, string, occurred event type, here it should be set to "personQueueTime", and the maximum value size is 128 bytes*/ 
  "eventState": "",
  "eventDescription": "",
  "deviceID": "",
  "humanCapture": {
/*captured human information*/
    "human":{
/*human attributes*/
      "targetID": ,
/*required, integer, person target ID, whose waiting time is longer than the configured alarm threshold. The ID is generated by DSP, and corresponds to the person position*/
      "waitTime": ,
/*required, integer, actual waiting time, it is ranging from 0 to 3600s*/
      "Region": [{ 
/*required, target person region coordinates, it is quadrilateral*/   
        "x": ,
/*required, float, x-coordinate, it is ranging from 0.000 to 1*/
        "y": 
/*required, float, y-coordinate, it is ranging from 0.000 to 1*/
      }],
      "humanImageURL": ""
/*captured human thumbnail URL*/
    },
    "rule":{
/*rule properties*/
      "ruleID": ,
/*required, integer, rule ID, which corresponds to the target person region ID*/
      "alarmTime": ,
/*required, integer, configured waiting time alarm threshold, it is ranging from 0 to 3600s*/
      "regionColor": "",
/*required, string, rule region color, "blue", "red", and "yellow" are available*/
      "Region": [{
/*required, rule region coordinates, it is polygonal (3 to 10 edges)*/ 
        "x": ,
/*required, float, x-coordinate, it is ranging from 0.000 to 1*/
        "y": 
/*required, float, y-coordinate, it is ranging from 0.000 to 1*/
      }]
      "timeTriggerType": ""
/*optional, string type, triggering type of waiting time detection alarm: "greater", "less", "equal", "unequal"-the alarm is triggered when waiting time is larger than, smaller than, equal to, or not equal to the value of alarmTime*/
    }   
  },
  "backgroundImageURL": ""
/*background picture URL*/
}