Updating an existing alarm
You can update the text, status and severity fields.
send Alarm("<ALARM_ID>","c8y_SampleAlarm","<SOURCE>",<TIME>,
"Alarm Updated", Alarm.STATUS_<STATUS>,Alarm.SEVERITY_<SEVERITY>,1,new dictionary<string,any>) to Alarm.SEND_CHANNEL;
Where
<ALARM_ID> is the identifier of the previously created alarm. The presence of
<ALARM_ID> indicates that the request is for updating an existing alarm.
Note:
The
params dictionary cannot be manipulated to delete fragments in the
Alarm. However, the fragments in the
Alarm can be deleted using the Cumulocity IoT REST API, which can be invoked in EPL by using
GenericRequest events. For more information, see
Invoking other parts of the Cumulocity IoT REST API in this documentation and
REST usage in the Cumulocity IoT OpenAPI documentation.