Expression macros let you perform calculations in fields.
Their value is calculated by first resolving any inner macros and then evaluating the resulting expression.
Syntax:
EXPRESSION
uses the same syntax and supports the same functions as trigger expressions.
Example:
For supported locations, see Supported macros.
Notes on usage:
{?avg(//item1,1h)}
—instead of template names, as template names are not replaced with host names during template linking.See also Trigger expression examples for an example of using an expression macro in an event name.