Navigation:  Getting Started >

Defining a condition on a Sensor

Previous pageReturn to chapter overviewNext page

Although there are different kinds of conditions, we'll focus on defining a new, simple condition here. In order to define a new condition, click on the corresponding icon in the toolbar of the dialog:

condition_create_new

You may add as many conditions as you like to a sensor. That's especially useful, if you want to check several parameter of the sensor's measurements separately and you want to apply different actions for different situations independently from other conditions.

Such a condition can be thought of operating from "left to right" in an "if... then" fashion. First you choose one of the fields the sensor collects:

condition_select_property

The operator comparison adapts to the type of property that was chosen. In the case above an enumeration type ("Status code") was chosen and the drop-down menu allows the condition to check for equality or inequality accordingly.

condition_select_operator

For numerical measures this menu allows a variety of additional operators as shown below.

condition_select_operator_numerical

As you might have noticed, the value field has changed from the drop-down menu "OK", to a text field that allows to enter a number in the screenshot above. For enumeration types, you can directly select the possible values. This is useful, e.g. to quickly select the right one out of a huge set of possibilities. For example the "HTTP Status code":

condition_select_operator_enumeration

For strings being collected by the sensor the condition also allows you to check for containment of a substring, or using a regular expression to check for a specific match criterion:

condition_select_operator_string

 

Read further to find out how to create a notification E-Mail action if the condition you created happens to match.