View Health State Enabled
to on. This can be done in the dialog when saving a new view or editing an existing one. This is also where the view health state function is configured. Often this will be the number of components to be deviating or critical before the View health state changes.viewSummary
variable that can be used to get summary information on the (states of) the components and relations in the view.viewSummary
and needs to return value from the viewHealthStates enum. UNKNOWN, CLEAR, DEVIATING, CRITICAL
. The viewSummary
gives access to the methods countHealthState
and countPropagatedHealthState
. These take a state and return the number of components on the view in that state. For example viewSummary.countPropagatedHealthState(propagatedHealthStates.DEVIATING)
.countPropagatedHealthState
be aware that both the originating component and all relations have a propagated health state. This means that the propagated health state count of a view that shows a component that is DEVIATING, that is a dependency of one other component, will be three. Two for the components and one for the relation.minCriticalHealthStates
and minDeviatingHealthStates
are user defined parameters.countHealthState
and countPropagatedHealthState
, viewSummary
gives access to states defined as a list of ElementState
. ElementState
has the following properties: elementId
, stateId
, name
, layer
, domain
, a list of environments
, a list of labels
, type
of the element, healthState
and propagatedHealthState
which allow to express queries that match particular elements on the view as: