public ThresholdStatus getWorstStatus ( List < String > names ) { if ( configuration . getKillSwitch ( ) . disableMetricCollection ( ) ) return ThresholdStatus . OFF ; ThresholdStatus ret = ThresholdStatus . GREEN ; for ( Threshold t : getThresholds ( ) ) { if ( names . indexOf ( t . getName ( ) ) == - 1 ) continue ; if ( t . getStatus ( ) . overrules ( ret ) ) ret = t . getStatus ( ) ; } return ret ; }
Returns the worst threshold status in the system for given threshold names .