public interface StatsProvider
| Modifier and Type | Interface and Description |
|---|---|
static interface |
StatsProvider.RequestTimer
A stat for tracking service requests.
|
| Modifier and Type | Method and Description |
|---|---|
AtomicLong |
makeCounter(String name)
Creates and exports a counter for tracking.
|
<T extends Number> |
makeGauge(String name,
com.google.common.base.Supplier<T> gauge)
Exports a read-only value for tracking.
|
StatsProvider.RequestTimer |
makeRequestTimer(String name)
Creates and exports a sets of stats that allows for typical rROC request tracking.
|
StatsProvider |
untracked()
Gets a stats provider that does not track stats in an internal time series repository.
|
AtomicLong makeCounter(String name)
name - The name to export the stat with.<T extends Number> com.twitter.common.stats.Stat<T> makeGauge(String name, com.google.common.base.Supplier<T> gauge)
T - The type of number exported by the variable.name - The name of the variable to export.gauge - The supplier of the instantaneous values to export.StatsProvider untracked()
StatsProvider.RequestTimer makeRequestTimer(String name)
name - The name to export the stat with.