Package com.ocient.metrics
Class Metric<T>
java.lang.Object
com.ocient.metrics.Metric<T>
- All Implemented Interfaces:
Supplier<T>
- Direct Known Subclasses:
Gauge,PerfCounter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe different types of counters.static enumThe metric's data type.static classThe identifier than a perfCounter.static classA Tag with a String or Integer identifierstatic enumTags that can be associated with a metric.static enumPossible units for interpreting counter values. -
Method Summary
Modifier and TypeMethodDescriptionabstract Metric.CounterTypefinal Metric.DataTypedataType()final Metric.MetricPathpath()final Metric.Unitsunits()
-
Method Details
-
path
- Returns:
- this perf counter's path
-
dataType
- Returns:
- this perf counter's data
Metric.DataType
-
units
- Returns:
- the units of this perf counter
-
counterType
- Returns:
- this perf counter's data
Metric.CounterType
-