Forum Discussion
mnagel
4 years agoProfessor
The operators in this mini-language are a bit incomplete and I get annoyed regularly. For example, there is no negation (not) and there is no ne (not-equal) condition. You can workaround it, but it is a weird miss.
You also cannot format it the way shown, though -- it has to all be RPN (reverse polish) or (possibly) all groovy code. See https://www.logicmonitor.com/support/logicmodules/datasources/datapoints/complex-datapoints for an overview.
This should work for your example (I think -- it is untested other than verifying parens match):
if(un(datapointX),0,if(gt(datapointX,0),1,0))
Related Content
- 6 months ago
- 6 months ago
- 7 months ago