Enum Class Metric.Type

java.lang.Object
java.lang.Enum<Metric.Type>
org.microproxy.stats.Metric.Type
All Implemented Interfaces:
Serializable, Comparable<Metric.Type>, Constable
Enclosing interface:
Metric

public static enum Metric.Type extends Enum<Metric.Type>
What kind of metric a Metric is.
  • Enum Constant Details

    • COUNTER

      public static final Metric.Type COUNTER
      A count that only goes up (Counter).
    • GAUGE

      public static final Metric.Type GAUGE
      A value that goes up and down (Gauge).
    • HISTOGRAM

      public static final Metric.Type HISTOGRAM
      A distribution of recorded values in fixed buckets (Histogram).
  • Method Details

    • values

      public static Metric.Type[] 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 Metric.Type 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
    • prometheusName

      public String prometheusName()
      Returns the name Prometheus's # TYPE line gives this kind.
      Returns:
      the name Prometheus's # TYPE line gives this kind