Internal documentation only
This page has been marked as draft.
Rules - How can I create a rule that will populate the entire column severity based on specific cell
Problem:
The user wants to set a rule for a specific Netprobe instanceCount number, and if the condition is met, the whole column will turn into the severity that will be based on the cell.
The user needs 2 working rules to achieve this.
For example:
The user wants to monitor the Gateway Netprobe Processes if the instanceCount value reaches 7, the whole column will turn green (severity ok) and if the instanceCount value is not 7, the whole column will turn red (severity critical)
Rule #1 Copied
set $(row) target "rowName"
if $(row) = "Netprobe" and value = 7 then
severity ok
endif
Output:
This rule must have a higher priority than rule #2.
Rule #2 Copied
Rule #2 is used to set the entire column into the severity based on the specific cell that the user wants.
- The user needs to set up the path aliases in the Rule #2 advanced tab.
- Then input the cell path (The cell that the whole column will be based on)
- In the new rule Advanced tab, you need to tick the Evaluate on dataview sample on the advanced tab of the rules so that the rule will only evaluate once the dataview updates from the sampler.
if path "instanceCounts" severity = ok then
severity ok
else
severity critical
endif
Setup:
On the target path, clear the row data item element in order to reflect the severity of the cell into the whole column.
Final Output: