Question: I am trying to use a condition like the following in a rule so that I can check the latest value of Severity reported:
#Severity for 5min# == "Warning"
The rule is set to trigger by time every 5 minutes. We set a sampling frequency of 1 hour for the Tablespaces collection, so there will be new data every 1 hour. So if there is new data in the past 5 min,utes #Severity for 5min# would return a value. But if there is no new data in the past 5 minutes, #Severity for 5min# would return nothing.
The Rule Condition Query shows that #Severity for 5min# returns either {{ Warning }} or {{ }} based on whether there was a collection in the last 5 min.
I hit a problem with the full expression #Severity for 5min# == "Warning". The expression #Severity for 5min# returns a value in the form of {{ Warning }}, which does not equate to "Warning". So even if there was a collection in the last 5 minutes and the severity is Warning, using the condition #Severity for 5min# == "Warning" will still evaluates to a false value
Is there a way to tweak the expression "#Severity for 5min#" to return the severity in the form of a string, so that it can be used to compare with the string "Warning" in the rule condition?
You need to be signed in and under a current maintenance contract to view premium knowledge articles.
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center