Related to:
Rules, How do I get the value from a non-standard numeric format, Alerts
Problem:
How do I apply a value for a rule if I have data that is showing as a non-numeric value?
Solution:
Strings are treated as a valid number if they begin with a numerical value. All other strings, except for empty strings, are treated as 0-valued.
For the snippet above, the rule will treat it as 10 instead of the whole string.
Given this, a simple rule can be used for the value above:
if value <= 0 then
severity critical
elseif value <= 5 then
severity warning
elseif value <= 30 then
severity ok
endifSeverity output for the following values:
![]()
![]()
Some further examples are available here.
If you need further help:
-
Please contact our support team via the chat service box on any of our websites or raise a support request.
-
Make sure you provide us with:
- Background of the issue or request.
- Use cases, requirements, business impact, etc.
- Encountered error messages.
- Log files or diagnostic files.
- Screenshots.
- And other important information relevant to your inquiry.
Comments
0 comments
Please sign in to leave a comment.