Enum Class Statistic
- All Implemented Interfaces:
Serializable,Comparable<Statistic>,Constable
A description of the value contained in a measurement.
- Author:
- micrometer
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNumber of currently active tasks for a long task timer.Rate per second for calls.Duration of a running task in a long task timer.The maximum amount recorded.The sum of the amounts recorded.The sum of the times recorded.Undetermined.Instantaneous value, such as those reported by gauges. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
TOTAL
The sum of the amounts recorded. -
TOTAL_TIME
The sum of the times recorded. Reported in the monitoring system's base unit of time -
COUNT
Rate per second for calls. -
MAX
The maximum amount recorded. When this represents a time, it is reported in the monitoring system's base unit of time. -
VALUE
Instantaneous value, such as those reported by gauges. -
UNKNOWN
Undetermined. -
ACTIVE_TASKS
Number of currently active tasks for a long task timer. -
DURATION
Duration of a running task in a long task timer. Always reported in the monitoring system's base unit of time.
-
-
Field Details
-
tagValueRepresentation
-
-
Constructor Details
-
Statistic
Creates a constant.- Parameters:
tagValueRepresentation- the tag-value representation
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getTagValueRepresentation
Returns the tag-value representation.- Returns:
- the representation
-