public int getStatValueAsInteger ( T metric , String interval ) { if ( metric . isRateMetric ( ) ) { return ( int ) ( getStatValueAsDouble ( metric , interval ) ) ; } return getMonitoredStatValue ( metric ) . getValueAsInt ( interval ) ; }
Get value of provided metric for the given interval as int value .