Monitor
class that will be instancianted in your implementations to monitor the dataflow of your edge system.
The Monitor class is a generic class that can be used to monitor severals type of dataflows like boolean, string, float, integers, geographic, etc.
Do you happen to have a use case that is not covered by our ready-to-use classes ? Don’t worry, just contact us at contact@heex.io and we will work with you to provide a custom class.
Monitor.h
Then, instantiation is done calling the constructor:awaitReady()
allows to wait until your monitor establishes a connection with the Heex Kernel.
The monitor will detect events based on the values that are sent to it, so you should call updateValue()
method with the value of your signal. It could be at regular time intervals or when the signal changes. This is highly dependant to your edge system.
To do that, use the following code:
💡 Tip: 🎉 CONGRATULATIONS! This is it!You don’t need to care about the bounds set in the Heex Cloud when specifying the trigger. All the checking will occur behind the scene and the Heex Agent will take care of detecting when matching conditions are met to trigger events.
ℹ️ Info: timestamp
It is recommended to call UpdateValue
method, giving as second argument the exact timestamp of your signal value formatted in ISO 8601-1:2019. Otherwise the current system time is applied by default to your signal value.
For more information go to Timestamp Formatting page.