Version: 3.1.4

Math Transformation

Transforms the input by applying simple math on it.

Full Example

Example Items:

Number multiply "Value multiplied by [MULTIPLY(1000):%s]" { channel="xxx" }
Number add "Value added [ADD(5.1):%s]" { channel="xxx" }
Number secondsToMinutes "Time [DIVIDE(60):%s]" { channel="xxx" }

Example in Rules:

transform("MULTIPLY", "1000")
transform("ADD", "5.1")
transform("DIVIDE", "60")