Package org.apache.pinot.spi.metrics
Interface PinotMetered
-
- All Superinterfaces:
PinotMetric
- All Known Subinterfaces:
PinotMeter,PinotTimer
public interface PinotMetered extends PinotMetric
An object which maintains mean and exponentially-weighted rate in Pinot.
-
-
Method Summary
Modifier and Type Method Description longcount()Returns the number of events which have been marked.StringeventType()Returns the type of events the meter is measuring.doublefifteenMinuteRate()Returns the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.doublefiveMinuteRate()Returns the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.ObjectgetMetered()doublemeanRate()Returns the mean rate at which events have occurred since the meter was created.doubleoneMinuteRate()Returns the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created.TimeUnitrateUnit()Returns the meter's rate unit.-
Methods inherited from interface org.apache.pinot.spi.metrics.PinotMetric
getMetric
-
-
-
-
Method Detail
-
getMetered
Object getMetered()
-
rateUnit
TimeUnit rateUnit()
Returns the meter's rate unit.- Returns:
- the meter's rate unit
-
eventType
String eventType()
Returns the type of events the meter is measuring.- Returns:
- the meter's event type
-
count
long count()
Returns the number of events which have been marked.- Returns:
- the number of events which have been marked
-
fifteenMinuteRate
double fifteenMinuteRate()
Returns the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created. This rate has the same exponential decay factor as the fifteen-minute load average in thetopUnix command.- Returns:
- the fifteen-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
-
fiveMinuteRate
double fiveMinuteRate()
Returns the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created. This rate has the same exponential decay factor as the five-minute load average in thetopUnix command.- Returns:
- the five-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
-
meanRate
double meanRate()
Returns the mean rate at which events have occurred since the meter was created.- Returns:
- the mean rate at which events have occurred since the meter was created
-
oneMinuteRate
double oneMinuteRate()
Returns the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created. This rate has the same exponential decay factor as the one-minute load average in thetopUnix command.- Returns:
- the one-minute exponentially-weighted moving average rate at which events have occurred since the meter was created
-
-