A observed metric returns a string value, is it possible to query against this value in the Condition/Alarms & Actions tab?
The rule condition can contain any valid groovy code.
To query a string metric value you can use the following groovy synatax
String.valueOf(#<object_name>#).matches("<reg exp>")
Where
<object_name> is the string object metric name
< reg exp> is the regular expression used to match the string
For example
If a string metric called obect_name values return values and a match is required for the word DUAL then the following syntax
String.valueOf(#object_name#).matches(".*DUAL.*")
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center