V2/Concepts/Automation

From Senfi Docs
Revision as of 11:33, 28 June 2021 by Huiyan (talk | contribs) (Created page with "=== Rule, Alert === <!--T:20--> In an operating environment such as a smart building, it is important that organizations are able to keep track and be aware of what is going o...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Rule, Alert

In an operating environment such as a smart building, it is important that organizations are able to keep track and be aware of what is going on in and around their assets. The way to do that is through monitoring and alerting.

Sensors produce measurements which contain data in the form of metrics and tags. Senfi provides multiple ways for users to monitor metric and tag values for conditions which require attention - such as abnormally high values, or when a combination of values indicates something is down - and to take action when it happens.

Rule

User can make use of Senfi's flexible rule engine to be alerted of abnormality in the system they are monitoring.

A rule in Senfi comprises of:

  • Inputs
  • Conditions
  • Output
  • Actions
  • Rule execution options

Example

Using our Smart Weighing Scale measurement from earlier, we can form one simple rule as follows:

  • Input: <tvar|battery_level>iot_weighingscale_v1.battery_level</>
  • Condition: < 20
  • Action: Email reminder to replace battery
  • Rule execution option: Immediately (means evaluate this rule whenever there is any incoming measurement)