alarm.delete
The alarm.delete command is used to delete an alarm.
TR50 Request
// Delete a specific alarm entry
{
"1": {
"command": "alarm.delete",
"params": {
"id": "56152afb681fdc0cd8052d6e"
}
}
}
// Delete a group of alarm entries
{
"1": {
"command": "alarm.delete",
"params": {
"thingKey": "56152afb681fdc0cd8052d6e",
"key": "myAlarm",
"startTs": "2017-02-10T09:00:00.000Z",
"endTs": "2017-02-10T10:00:00.000Z"
}
}
}
Request Parameters
Delete a specific alarm entry.
Name |
Type |
Required |
Description |
---|---|---|---|
id |
String |
Yes |
The ID of the alarm to delete. |
Delete a group of alarm entries.
Name |
Type |
Required |
Description |
---|---|---|---|
thingKey |
String |
Yes |
The thing key. |
key |
String |
Yes |
The alarm key. |
startTs |
String |
Yes |
The starting timestamp for the date range to delete. |
endTs |
String |
Yes |
The ending timestamp for the date range to delete. |
TR50 Response
If the command is sent successfully a success message is returned. Otherwise, an error and error message will be returned.
{
"cmd": {
"success": true
}
}