Using events
The com.apama.cumulocity.Event is sent on an event 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.
Example of an event:
com.apama.cumulocity.Event("48073557","c8y_EntranceEvent",
"12346082",1519838833.6,
"Entrance event triggered.",
{"creationTime":any(float,1519838834.706)})