Package org.onosproject.core
Interface MetricsHelper
-
public interface MetricsHelper
Collection of utility methods used for providing Metrics.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default com.codahale.metrics.Timer
createTimer(java.lang.String component, java.lang.String feature, java.lang.String name)
Creates a Timer instance with given name.MetricsService
metricsService()
Returns MetricService instance.
-
-
-
Method Detail
-
metricsService
MetricsService metricsService()
Returns MetricService instance.- Returns:
- MetricService instance
-
createTimer
default com.codahale.metrics.Timer createTimer(java.lang.String component, java.lang.String feature, java.lang.String name)
Creates a Timer instance with given name.- Parameters:
component
- component namefeature
- feature namename
- timer name- Returns:
- Timer instance
-
-