The Rules module allows the configuration of the Rules Engine, in charge of processing events and triggering alerts.
There are 6 types of Rules:
As for most modules, the creation of a rule is done by pressing the “Add” button at the top/right of the screen.
Meta Data
Every rule is defined by a name and a type (see above). Meta data like Category and Level are just there to help you categorize them. This categorization can be used, for example, to:
Tags defined in a rule will be automatically added to all related alerts.
Only Active Rules can generate Alerts.
A planning filter allows you to define time ranges during which the rule can be evaluated. To activate this filter, you must first create a static list. Then, you must select the static list and define the condition that allows evaluation (e.g. open is 1).
The conditions that will be evaluated before triggering an alert are defined in the Condition tab. The concept is to define a condition (“a logical string”), written using variables (that represent measurement data from devices/assets), and to define whether to trigger an alert of not when the evaluation of this condition is true or false.
You can decide when the Alert will be triggered:
Message Configure the message content of the alert that will be generated.
Variables Variables are the data that will be used in the formula. Variables can be Device measures, Asset measure, Static List measure. Devices or Assets can be explicitly referenced. But you can also write a Formula that will be valid for a set of Devices or Assets (sharing identical measures), by using tags.
If you use a tag (see screenshot here above), you will see that the live result of the evaluation (below the formula) will show you multiple answers (one for each device/asset referenced by the tag).
Formula The formula is a mathematical expression that combines the variables and must return a Boolean value.
Rules can be configured based on tags. Adding the same tag to multiple Devices, Assets or Smart Devices allows a dynamic grouping of them. You may then configure a rule based on a tag. This rule will be triggered when measurements are received for any item of this group.
When defining the rule, add a variable linked to an object “Tags”, specify the tag, then the measurement (a list of all common measurements, available in all items with the specified tag, will be displayed).
Write your formula as described in chapters above.
More info on tags: About Tags
To assess a situation at regular intervals, you can utilize “scheduled” rules. These rules allow you to specify:
You can then set the conditions for generating alerts. However, since the evaluation is scheduled and not triggered by an input, you must designate which input serves as the context by selecting it.
The context is used to customize the message and to determine who or what generated the alerts. Consequently, the alert can be displayed in the journal of the associated context.
All objects monitored by the timeout rules will be evaluated every quarter of an hour. An alert is generated when the time elapses between the timestamp of the last event (measurement or log) and the timeout value.
The conditions that will be evaluated before an alert is triggered are defined in the Condition tab.
All objects monitored by the geofencing rules will be evaluated according to their position in relation to a geographical area (site). An alert is generated when the position crosses the perimeter of a site, or is inside or outside the site.
The site is part of the meta data of the geofencing rule and has to be selected at the creation of the rule.
The conditions that will be evaluated before an alert is triggered are defined in the Condition tab.
In order to attach Notes and Tasks to Assets or Devices, you must create a Rule (source: UserNote). Once this rule is created and active, a button “add Note” will appear in the Asset and Device “Journal” tab.
Steps:
A downlink command can be sent to devices when an alarm is generated.
The Downlink tabs allow you to configure the downlink to be sent.
If you have already registered a downlink command for this device type, you can select it.
All alerts generated by the rule are recorded in the History tab. By default, the alerts displayed are those that have not yet been read or acknowledged. You can change the filter setting by clicking on the gear icon or by changing the time interval.
Each alert message tells you the time the alert is created, the name of the rule, the object which triggered the rule, the body of the message and the tags.
By clicking on the icons, you can mark the alert as read, acknowledge it or view the details of the alert.
Alerts can be 'acknowledged' by the system if automatic acknowledgement is set or the rule is updated.