The handler element evaluates the expression
or conditions for the alert. An expression can be active or disabled.
Each expression (evaluation) is defined using valid operators which
are defined as: lesser
, lesser_equal
, equal
, greater_equal
, greater
and lesser_greater
.
There can be more than one expression in this section.
logic is an attribute of the handler element. The logic attribute defines how Web Monitor evaluates the expressions:
If logic=OR
,
then any expression evaluated as true raises the alert.
If logic=AND
,
then all expressions must be true to raise an alert.
If logic=XOR
,
then if one of the expression is false and one is true then it raises
the alert.
If there is only one expression then OR
, XOR
and AND
have
the same result.
The source element is a child of the handler element. In the expression evaluation, source defines the name of the statistics group defined in the acquire section.
The target element is a child element of the handler element. The target points to the constant which the expression is evaluated.
The XML below evaluates the following:
RecordCont <= 10000 RecordCount >= 30000
If any one of these conditions are satisfied, an alert is generated.
<handler logic="OR"> <eval active="True"> <source>RC</source> <operand>lesser_equal</operand> <target>RCMin</target> </eval> <eval active="True"> <source>RC</source> <operand>greater_equal</operand> <target>RCMax</target> </eval> </handler>