Problem
Views with a health state configured don't change their state when components in the view have a DEVIATING or CRITICAL propagated state.
Cause
The standard View Health State configuration function only takes own states into account, not propagated states.
Solution
Create a new View Health State configuration function with the following code:
if (viewSummary.countPropagatedHealthState(propagatedHealthStates.CRITICAL) >= minCriticalHealthStates) {
return viewHealthStates.CRITICAL;
} else if (viewSummary.countPropagatedHealthState(propagatedHealthStates.DEVIATING) >= minDeviatingHealthStates) {
return viewHealthStates.DEVIATING;
} else {
return viewHealthStates.CLEAR;
}
The function above determines the state of the view based on the propagated health state of components in the view.
Use this function in the View Health State configuration screen of your view to achieve the desired result.
Comments
0 comments
Article is closed for comments.