Enum Class Statistic

java.lang.Object
java.lang.Enum<Statistic>
org.forgerock.monitoring.api.instrument.Statistic
All Implemented Interfaces:
Serializable, Comparable<Statistic>, java.lang.constant.Constable

public enum Statistic extends Enum<Statistic>
A description of the value contained in a measurement. ForgeRock changes: - Updated Javadoc
  • 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. Always reported in nanoseconds.
    • 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 always reported in nanoseconds.
    • 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 nanoseconds.
  • 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()
      Returns the Tag Value Representation for this Statistic
      Returns:
      String representation of the Tag Value