Enum Class MeterInfo

java.lang.Object
java.lang.Enum<MeterInfo>
org.jpos.metrics.MeterInfo
All Implemented Interfaces:
Serializable, Comparable<MeterInfo>, Constable

public enum MeterInfo extends Enum<MeterInfo>
Catalog of jPOS-defined Micrometer meters: a stable identifier, human-readable description, and optional default tags for each instrument.
  • Enum Constant Details

  • Method Details

    • values

      public static MeterInfo[] 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 MeterInfo 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
    • id

      public String id()
      Returns the meter identifier.
      Returns:
      the meter id (e.g. jpos.mux.status)
    • description

      public String description()
      Returns the human-readable meter description.
      Returns:
      the meter description
    • add

      public io.micrometer.core.instrument.Tags add(io.micrometer.core.instrument.Tags tags)
      Combines the supplied tags with this meter's default tags.
      Parameters:
      tags - caller-supplied tags
      Returns:
      the combined tag set, or tags unchanged when this meter has no defaults