Apama 10.3 | Apama Documentation | Connecting Apama Applications to External Components | Standard Connectivity Plug-ins | The Cumulocity IoT Transport Connectivity Plug-in | Using measurements
Using measurements
Sending a measurement
Querying for measurements
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 identifier 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:
{"c8y_LightMeasurement": {"e":com.apama.cumulocity.MeasurementValue(108.1,
"lux", {})}},{})
{"c8y_DistanceMeasurement": {"distance":com.apama.cumulocity.MeasurementValue

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.