com.apama.cumulocity
Event Event


Event data.

Sent by the transport when a device or other application creates an Event, or updates an Event. Requires SubscribeMeasurements or configuration property subscribeToAllMeasurements. Sent to the cumulocity.measurements channel.

Examples:
 Event("21","c8y_EntranceEvent","12346082",1464364483.396,"Entrance event triggered.",{"distance":any(float,317)}) 
Event("22","com_cumulocity_events_TamperEvent","12345",1464364483.396,"Tamper sensor triggered",{"history":{}})


Additionally, we can also create a new Event or update an existing Event for a device. To create/update an Event, send an Event event object to Event.CHANNEL.

Examples:
 Create an Event, send Event("","c8y_EntranceEvent","12346082",1464364483.396,"Entrance event triggered.",{"distance":any(float,317)}) to Event.CHANNEL; 
You can update the text field. send Event("22","c8y_EntranceEvent","12346082",1492676483.396,"Tamper sensor triggered",{}) to Event.CHANNEL;

Constant summary
 stringCHANNEL := "CumulocityIoT"

The channel for sending updates/ new Events to.
 
Member summary
 stringid

Unique identifier for this Event.
 stringtype

The type of the Cumulocity event.
 stringsource

Identifier of the source of the event.
 floattime

Timestamp of the event.
 stringtext

Text or message of the Event.
 dictionary<stringany>params

Any other properties available on the Event .
 
Constant detail

CHANNEL

string CHANNEL := "CumulocityIoT"
The channel for sending updates/ new Events to.
Member detail

id

string id
Unique identifier for this Event.

Supply as empty if creating a new Event.

params

dictionary<stringanyparams
Any other properties available on the Event .

source

string source
Identifier of the source of the event.

text

string text
Text or message of the Event.

time

float time
Timestamp of the event.

type

string type
The type of the Cumulocity event.