Enum Class Statistic

java.lang.Object
java.lang.Enum<Statistic>
io.micrometer.core.instrument.Statistic
All Implemented Interfaces:
Serializable, Comparable<Statistic>, Constable

public enum Statistic extends Enum<Statistic>
A description of the value contained in a measurement.
  • Enum Constant Details

    • TOTAL

      public static final Statistic TOTAL
      The sum of the amounts recorded.
    • TOTAL_TIME

      public static final Statistic TOTAL_TIME
      The sum of the times recorded. Reported in the monitoring system's base unit of time
    • COUNT

      public static final Statistic COUNT
      Rate per second for calls.
    • MAX

      public static final Statistic MAX
      The maximum amount recorded. When this represents a time, it is reported in the monitoring system's base unit of time.
    • VALUE

      public static final Statistic VALUE
      Instantaneous value, such as those reported by gauges.
    • UNKNOWN

      public static final Statistic UNKNOWN
      Undetermined.
    • ACTIVE_TASKS

      public static final Statistic ACTIVE_TASKS
      Number of currently active tasks for a long task timer.
    • DURATION

      public static final Statistic DURATION
      Duration of a running task in a long task timer. Always reported in the monitoring system's base unit of time.
  • Method Details

    • values

      public static Statistic[] 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

      public static Statistic valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getTagValueRepresentation

      public String getTagValueRepresentation()