Apama 10.2 | Apama Documentation | Connecting Apama Applications to External Components | Standard Connectivity Plug-ins | The Cumulocity IoT Transport Connectivity Plug-in | Using alarms | Creating a new alarm
 
Creating a new alarm
send Alarm("","c8y_SampleAlarm","<SOURCE>",<TIME>,
"Alarm text", "<STATUS>","<SEVERITY>",1,{}) to Alarm.CHANNEL;
Where
*<SOURCE> is the source of the alarm (same as the ManagedObject identifier).
*<TIME> is the time at which the alarm was generated.
*<STATUS> is the status of the alarm. This can be ACTIVE, ACKNOWLEDGED or CLEARED.
*<SEVERITY> is the severity of the alarm. This can be CRITICAL, MAJOR, MINOR or WARNING.
Alarm de-duplication. If an active or acknowledged alarm (does not work for the CLEARED status) with the same source and type exists, no new alarm is created. Instead, the existing alarm is updated by incrementing the count property, and the time property is also updated. Any other changes are ignored, and the alarm history is not updated. The first occurrence of the alarm is recorded in firstOccurenceTime.

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release