public interface MetricsAccessor
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Long> |
getCounterValues(java.lang.String group,
java.lang.String counter)
Get the values of a counter
|
<T> java.util.Map<java.lang.String,T> |
getGaugeValues(java.lang.String group,
java.lang.String gauge)
Get the values of a gauge
|
java.util.Map<java.lang.String,java.lang.Double> |
getTimerValues(java.lang.String group,
java.lang.String timer)
Get the values of a timer
|
java.util.Map<java.lang.String,java.lang.Long> getCounterValues(java.lang.String group, java.lang.String counter)
group
- Group for the counter, e.g. org.apache.samza.container.SamzaContainerMetricscounter
- Name of the counter, e.g. commit-calls<T> java.util.Map<java.lang.String,T> getGaugeValues(java.lang.String group, java.lang.String gauge)
T
- Type of the gauge value, e.g. Doublegroup
- Group for the gauge, e.g. org.apache.samza.container.SamzaContainerMetricsgauge
- Name of the gauge, e.g. event-loop-utilizationjava.util.Map<java.lang.String,java.lang.Double> getTimerValues(java.lang.String group, java.lang.String timer)
group
- Group for the timer, e.g. org.apache.samza.container.SamzaContainerMetricstimer
- Name of the timer, e.g. choose-ns