Forum Discussion
mnagel
Professor
4 years agoThe 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
- 8 months ago
- 8 months ago
- 9 months ago