Apama Connectivity For Cumulocity IoT  10.1 | Apama Connectivity For Cumulocity IoT Documentation 10.1 | Interacting with Cumulocity IoT Platform | Measurement Events
 
Measurement Events
During application initialization (onApplicationInitialized), if subscribeToAllMeasurements is enabled (true by default), the adapter sends all Measurements using the com.apama.cumulocity.Measurement event on the com.apama.cumulocity.Measurement.CHANNEL (same as cumulocity.measurements) channel.
These events may be sent before all assets are sent. Measurement events contain the assetId of the source of the measurement, the type of measurement, timestamp, and a dictionary of values which contain the numeric value, units and optional type, quantity and state.
Examples of measurement events:

com.apama.cumulocity.Measurement("c8y_LightMeasurement","12346081",1464359004.89,
{"e":com.apama.cumulocity.MeasurementValue(108.1,"lux","","","",{})},{})

com.apama.cumulocity.Measurement("c8y_DistanceMeasurement","12346082",1464359005.396,
{"distance":com.apama.cumulocity.MeasurementValue(344,"mm","","","",{})},{})

Copyright © 2013-2017 | 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