D
EFINING
T
HRESHOLD
F
ORMULAS
7-13
Elements of Threshold Formulas
Example: Threshold Formulas
Some possible threshold formulas include:
• R > 1000
• (M > 5) OR (H > 500)
• (S > 100) AND (R < 10000)
In the last formula, an event is triggered if (the data is changing at the rate greater than 100 per second) or (the
value is less than 10,000).
A formula follows this basic syntax:
(Variable Relation Value) Logical_Operator (Variable Relation Value)
Table 7-3 Elements of Threshold Formulas
Parameter Example Description
Variable R
H
M
S
Actual value of the data
Data rate per hour
Data rate per minute
Data rate per second
Relation >
<
>=
<=
==
!=
Greater than
Less than
Greater than or equal to
Less than or equal to
Equal
Not equal
Value 256
20040529
135501
Positive number (4 byte unsigned integer)
Date format (YYYYMMDD) for 29 May 2004
Time format (HHMMSS) for 1:55:01pm
Logical_Operator AND
OR
Both statements must be true
Either statement may be true