Apama 10.1 | Apama Documentation | Connecting Apama Applications to External Components | Standard Connectivity Plug-ins | The Cumulocity IoT Transport Connectivity Plug-in | Using Cumulocity IoT connectivity from EPL | Events and alarms
 
Events and alarms
The com.apama.cumulocity.Event is sent on an event and the com.apama.cumulocity.Alarm is sent on an alarm from a device. This event is sent to the com.apama.cumulocity.Measurement.CHANNEL (same as cumulocity.measurements) channel. This event contains the identifier of the source, a timestamp (same form as currentTime), message text, and optional parameters.
Examples of events and alarms:
com.apama.cumulocity.Event("48073557","c8y_EntranceEvent","12346082",
1519838833.6,"Entrance event triggered.",{"creationTime":any(float,1519838834.706)})

com.apama.cumulocity.Alarm("48073551","c8y_UnavailabilityAlarm","12669915",
1519838790.522,"No communication with device since
2016-05-27T18:11:23.886+02:00",{"count":any(integer,1),
"severity":any(string,"MAJOR")})

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.