public List < CheckResult > check ( MetricName actualTarget , Map < String , Number > currentValuesByMetric ) { SortedMap < CheckResult . Status , List < Threshold > > sortedThresholds = new TreeMap < CheckResult . Status , List < Threshold > > ( thresholds ) ; for ( Map . Entry < CheckResult . Status , List < Threshold > > entry : sortedThresholds . entrySet ( ) ) { List < CheckResult > results = checkThresholds ( entry . getValue ( ) , entry . getKey ( ) , actualTarget , currentValuesByMetric ) ; if ( ! results . isEmpty ( ) ) { return results ; } } return Collections . emptyList ( ) ; }
Performs threshold checks for the whole check group