public static String meterToKind ( Registry registry , Meter meter ) { String kind ; if ( meter instanceof Timer ) { kind = "Timer" ; } else if ( meter instanceof Counter ) { kind = "Counter" ; } else if ( meter instanceof Gauge ) { kind = "Gauge" ; } else if ( meter instanceof DistributionSummary ) { kind = "DistributionSummary" ; } else { kind = meter . getClass ( ) . getSimpleName ( ) ; } return kind ; }
Determine the type of a meter for reporting purposes .