alarm-controller
Assign/Reassign Alarm (assignAlarm)
Assign the Alarm. Once assigned, the 'assign_ts' field will be set to current timestamp and special rule chain event 'ALARM_ASSIGNED' (or ALARM_REASSIGNED in case of assigning already assigned alarm) will be generated. Referencing non-existing Alarm Id will cause an error.
Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.
post/api/alarm/{alarmId}/assign/{assigneeId}
Path parameters
alarmIdstring required
A string value representing the alarm id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
assigneeIdstring required
A string value representing the user id. For example, '784f394c-42b6-435a-983c-b7beff2784f9'
Response
OK
Example response
{
"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,
"details": {},
"propagate": true,
"propagateToOwner": true,
"propagateToTenant": true,
"id": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "ALARM"
},
"createdTime": 1634058704567,
"name": "High Temperature Alarm",
"status": "ACTIVE_UNACK"
}