V
- Value type that is stored inside of the metric. It can be a decimal, floating point, or custom type.MV
- Metric value which wraps and manages the raw value.public interface ControlledMetric<V,MV extends MetricValue<V,MV>>
Modifier and Type | Interface and Description |
---|---|
static class |
ControlledMetric.AggregationType
When we need to aggregate multiple values of this metric, this determines how we do so.
|
Modifier and Type | Method and Description |
---|---|
void |
adjustValue(long value)
Adjust the value by a long primitive value.
|
void |
adjustValue(Number value)
Adjust the metric with this value.
|
MV |
createInitialValue()
Create the initial value for our metric.
|
ControlledMetric.AggregationType |
getAggregationType()
Returns the type of aggregation used by this metric.
|
String |
getAggregationTypeName()
Return the aggregation type of the metric.
|
String |
getComponent()
Component name of the metric.
|
String |
getDescription()
Description of the component which is not persisted.
|
String |
getModule()
Module name of the metric or null if none.
|
String |
getName()
Component name of the metric.
|
String |
getUnit()
Unit of the metric such as percentage, megabytes, or per-second.
|
Number |
getValue()
Returned the value of the metric as a number.
|
MetricValueDetails |
getValueDetails()
Return the value details of the metric.
|
MetricValueDetails |
getValueDetailsToPersist()
Return the value details of the metric suitable to be persisted.
|
Number |
getValueToPersist()
Return the value of the metric as a number suitable to be persisted.
|
V |
makeValueFromLong(long value)
Make a value type from long input.
|
V |
makeValueFromNumber(Number number)
Make a value type from Number input.
|
String getComponent()
String getModule()
String getName()
String getDescription()
String getUnit()
String getAggregationTypeName()
MV createInitialValue()
void adjustValue(long value)
void adjustValue(Number value)
V makeValueFromLong(long value)
adjustValue(long)
method.V makeValueFromNumber(Number number)
adjustValue(Number)
method.Number getValue()
MetricValueDetails getValueDetails()
Number getValueToPersist()
MetricValueDetails getValueDetailsToPersist()
ControlledMetric.AggregationType getAggregationType()
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.