Package io.ebean.metric
Interface MetricFactory
-
public interface MetricFactory
Factory to create timed metric counters.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description CountMetric
createCountMetric(String name)
Create a counter metric.QueryPlanMetric
createQueryPlanMetric(Class<?> type, String label, ProfileLocation profileLocation, String sql)
Create a Timed metric.TimedMetric
createTimedMetric(String name)
Create a Timed metric.TimedMetricMap
createTimedMetricMap(String name)
Create a timed metric group.static MetricFactory
get()
Return the factory instance.
-
-
-
Method Detail
-
get
static MetricFactory get()
Return the factory instance.
-
createTimedMetricMap
TimedMetricMap createTimedMetricMap(String name)
Create a timed metric group.
-
createTimedMetric
TimedMetric createTimedMetric(String name)
Create a Timed metric.
-
createCountMetric
CountMetric createCountMetric(String name)
Create a counter metric.
-
createQueryPlanMetric
QueryPlanMetric createQueryPlanMetric(Class<?> type, String label, ProfileLocation profileLocation, String sql)
Create a Timed metric.
-
-