alarm-controller
Get Alarm Info (getAlarmInfoById)
Fetch the Alarm Info object based on the provided Alarm Id. If the user has the authority of 'Tenant Administrator', the server checks that the originator of alarm is owned by the same tenant. If the user has the authority of 'Customer User', the server checks that the originator of alarm belongs to the customer. Alarm Info is an extension of the default Alarm object that also contains name of the alarm originator.
Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
get/api/alarm/info/{alarmId}
Path parameters
alarmIdstring required
A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
Response
OK
Example response
{
"id": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "ALARM"
},
"createdTime": 1634058704567,
"tenantId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "TENANT"
},
"customerId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "CUSTOMER"
},
"type": "High Temperature Alarm",
"originator": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "DEVICE"
},
"severity": "CRITICAL",
"acknowledged": true,
"assigneeId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "USER"
},
"startTs": 1634058704565,
"endTs": 1634111163522,
"ackTs": 1634115221948,
"clearTs": 1634114528465,
"assignTs": 1634115928465,
"propagate": true,
"propagateToOwner": true,
"propagateToTenant": true,
"originatorName": "Thermostat",
"originatorLabel": "Thermostat label",
"originatorDisplayName": "Thermostat",
"assignee": {
"id": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "USER"
}
},
"name": "High Temperature Alarm",
"status": "ACTIVE_UNACK",
"details": {}
}