public String getReason ( ) { if ( lastExceededValue ) { return String . format ( "Metric '%s' has aggregated-value=%d %s %d as threshold" , metric . name ( ) , lastAggregatedValue , operator . symbol , thresholdValue ) ; } else { return String . format ( "Metric %s: aggregated-value=%d" , metric . name ( ) , lastAggregatedValue ) ; } }
Returns summary intended for logging .