JSON message about details of interval temperature measurement alarm
Accept: text/html, application/xhtml+xml, Accept-Language: en-US Content-Type: multipart/form-data; boundary=MIME_boundary User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) Accept-Encoding: gzip, deflate Host: 10.10.36.29:8080 Content-Length: 9907 //In listening mode, the uploaded message contains Content-Length, and its value is the length of message and pictures; in arming mode, the uploaded message does not contain Content-Length// Connection: Keep-Alive Cache-Control: no-cache //Contents above are HTTP header contents, and below are detailed alarm information// --MIME_boundary Content-Disposition: form-data; name="temperatureIntervalMeasurement" Content-Type: application/json Content-Length: 9907 //JSON message length// { "ipAddress": "172.6.64.7", /*required, string, IPv4 address of alarm device; the maximum length is 32 bytes*/ "ipv6Address": "", /*optional, string, IPv6 address of alarm device; the maximum length is 128 bytes*/ "portNo": 80, /*optional, integer32, port No. of alarm device*/ "protocol": "HTTP", /*optional, string, "HTTP"-for device network SDK, "HTTPS", "EHome"-for ISUP SDK; the maximum length is 32 bytes*/ "macAddress": "01:17:24:45:D9:F4", /*optional, string, MAC address; the maximum length is 32 bytes*/ "channelID": 1, /*optional, integer32, No. of alarm triggered channel*/ "dateTime": "2004-05-03T17:30:08+08:00", /*required, string, alarm triggered time (ISO 8601 format); the maximum length is 32 bytes*/ "activePostCount": 1, /*required, integer32, uploaded times of one alarm*/ "eventType": "temperatureIntervalMeasurement", /*required, string, triggered event type, here it should be set to "temperatureIntervalMeasurement" (interval temperature measurement); the maximum length is 128 bytes*/ "eventState": "active", /*required, string, event status: "active"-occured, "inactive"-unoccurred; the maximum length is 32 bytes*/ "eventDescription": "Temperature Interval Measurement", /*required, string, event description, the maximum length is 128 bytes*/ "deviceID": "test0123", /*optional, string, PUID; this node should be returned when transmitting ISAPI evnet informtion via ISUP SDK, and the value is same as deviceID of URI: /ISAPI/System/Network/Ehome*/ "TemperatureIntervalMeasurement":{ "mode": "normal", /*optional, string, mode: "normal", "expert"*/ "thermometryUnit": "celsius", /*optional, string, temperature unit: "celsius, fahrenheit, kelvin"*/ "NormalMode":{ /*optional, temperature measurement information in normal mode*/ "alarmType": "", /*optional, string, alarm type: "highestTemp"-the highest temperature, "lowestTemp"-the lowest temperature*/ "currTemperature": 35.0, /*optional, float, current temperature, value range: [-20,550], unit: Celsius; the value should be accurate to one decimal place*/ "CurrTemperaturePoint":{ /*optional, current temperature point coordiantes*/ "positionX":0.123, /*required, float, X-coordiante, the value is normalized, range: [0,1]; the value should be accurate to three decimal places; the reference origin is the upper left corner of image*/ "positionY":0.123 /*required, float, Y-coordiante, the value is normalized, range: [0,1]; the value should be accurate to three decimal places; the reference origin is the upper left corner of image*/ }, "TemperatureInterval":{ /*optional, temperature interval information*/ "id": 1, /*optional, int, No.*/ "name": "", /*optional, string, interval name*/ "minTemperature": 35.0, /*optional, float, the minimum temperature, range: [-20,550], unit: Celsius; the value should be accurate to one decimal place*/ "maxTemperature": 37.0 /*optional, float, the maximum temperature, range: [-20,550], unit: Celsius; the value should be accurate to one decimal place*/ } }, "ExpertMode":{ /*optional, temperature measurement information in expert mode*/ "DetectionRegionList":[{ "DetectionRegionEntry":{ "id": 1, /*optional, int, rule ID*/ "name": "", /*optional, string, rule name*/ "type": "", /*optional, string, rule type: "point", "line", "region"-area*/ "Point":{ /*optional, point coordiantes*/ "positionX":0.123, /*required, float, X-coordiante, the value is normalized, range: [0,1]; the value should be accurate to three decimal places; the reference origin is the upper left corner of image*/ "positionY":0.123 /*required, float, Y-coordiante, the value is normalized, range: [0,1]; the value should be accurate to three decimal places; the reference origin is the upper left corner of image*/ }, "Line":[{ /*optional, line coordinates*/ "Point":{ /*optional, point coordiantes*/ "positionX":0.123, /*required, float, X-coordiante, the value is normalized, range: [0,1]; the value should be accurate to three decimal places; the reference origin is the upper left corner of image*/ "positionY":0.123 /*required, float, Y-coordiante, the value is normalized, range: [0,1]; the value should be accurate to three decimal places; the reference origin is the upper left corner of image*/ } }], "Region":[{ /*optional, area coordinates*/ "Point":{ /*optional, point coordinates*/ "positionX":0.123, /*required, float, X-coordiante, the value is normalized, range: [0,1]; the value should be accurate to three decimal places; the reference origin is the upper left corner of image*/ "positionY":0.123 /*required, float, Y-coordiante, the value is normalized, range: [0,1]; the value should be accurate to three decimal places; the reference origin is the upper left corner of image*/ } }], "alarmType": "", /*optional, string, alarm type: "highestTemp"-the highest temperature, "lowestTemp"-the lowest temperature*/ "currTemperature": 35.0, /*optional, float, current temperature, value range: [-20,550], unit: Celsius; the value should be accurate to one decimal place*/ "CurrTemperaturePoint":{ /*optional, current temperature point coordiantes*/ "positionX":0.123, /*required, float, X-coordiante, the value is normalized, range: [0,1]; the value should be accurate to three decimal places; the reference origin is the upper left corner of image*/ "positionY":0.123 /*required, float, Y-coordiante, the value is normalized, range: [0,1]; the value should be accurate to three decimal places; the reference origin is the upper left corner of image*/ }, "TemperatureInterval":{ /*optional, temperature interval information*/ "id": 1, /*optional, int, No.*/ "name": "", /*optional, string, interval name*/ "minTemperature": 35.0, /*optional, float, the minimum temperature, range: [-20,550], unit: Celsius; the value should be accurate to one decimal place*/ "maxTemperature": 37.0 /*optional, float, the maximum temperature, range: [-20,550], unit: Celsius; the value should be accurate to one decimal place*/ } } }] }, "VisibleLightImage":{ /*optional, visible picture*/ "resourcesContentType":"binary", /*dependent, string, resource transmission type: "url", "binary"; when the returned alarm message consists additional resource (e.g., picture), this node should be returned*/ "resourcesContent":"", /*dependent, string, resource ID; when the returned alarm message consists additional resource (e.g., picture), this node should be returned; when the value of resourcesContentType is "binary", it must be the same as Content-ID of picture, when the value of resourcesContentType is "url", its value is the picture URL*/ } "ThermalImage":{ /*optional, thermal picture*/ "resourcesContentType":"binary", /*dependent, string, resource transmission type: "url", "binary"; when the returned alarm message consists additional resource (e.g., picture), this node should be returned*/ "resourcesContent":"", /*dependent, string, resource ID; when the returned alarm message consists additional resource (e.g., picture), this node should be returned; when the value of resourcesContentType is "binary", it must be the same as Content-ID of picture, when the value of resourcesContentType is "url", its value is the picture URL*/ } } }