Response ‒ AlarmInstances/Post
All the same properties in the request are returned in the response. In addition, the response that is returned also contains the following properties –
Property
Type
Description
id
String
A unique identifier for this AlarmInstance that is automatically generated by IoT Platform .
appId
String
A unique Application identifier that is automatically generated by IoT Platform . This is the identifier of the Application to which this AlarmInstance is assigned.
This identifier is automatically generated by IoT Platform when the Applications/Post request is used.
createDate, createUser, updateDate, updateUser
See Common Response Properties.
Example JSON AlarmInstances/Post Response
Status 201 – Created
{
“@odata.context”: “https://stg-axonizeapi-axonize.dev-ase-axonize.p.azurewebsites.net/odata/$metadata#AlarmInstances/$entity“,
“deviceId”: “5b06684c21b5bc27d4439f53”,
“typeCode”: 7,
“value”: “10”,
“readingDateTime”: “2018-06-21T15:04:36.70395Z”,
“readingDateTimeOffset”: “2018-06-21T15:04:36.70395Z”,
“ruleId”: “5b2bb87e21b5c318fc743fd0”,
“eventName”: “Temperature”,
“severity”: “Warning”,
“status”: “Open”,
“snoozeExpirationDate”: null,
“message”: “Warning alarm from Doneness – Soil Humidity = 50 on value 50”,
“id”: “5b58681619ec0c1a684b96a0”,
“appId”: “801A048A-9F23-429F-BF0D-B6D35B212345”,
“createDate”: “2018-07-25T12:07:50.909888Z”,
“createUser”: null,
“updateDate”: “0001-01-01T00:00:00Z”,
“updateUser”: null
}