protected String getMetricUrl ( String metricToAnnotate , long triggerFiredTime ) { long start = triggerFiredTime - ( 6L * DateTimeConstants . MILLIS_PER_HOUR ) ; long end = Math . min ( System . currentTimeMillis ( ) , triggerFiredTime + ( 6L * DateTimeConstants . MILLIS_PER_HOUR ) ) ; String expression = MessageFormat . format ( "{0,number,#}:{1,number,#}:{2}" , start , end , metricToAnnotate ) ; return getExpressionUrl ( expression ) ; }
Returns the URL linking back to the metric for use in alert notification .