Enum Class OtelUnit

java.lang.Object
java.lang.Enum<OtelUnit>
org.apache.solr.metrics.otel.OtelUnit
All Implemented Interfaces:
Serializable, Comparable<OtelUnit>, Constable

public enum OtelUnit extends Enum<OtelUnit>
Standard metric units for OpenTelemetry instruments based on UCUM (Unified Code for Units of Measure).
  • Enum Constant Details

    • NANOSECONDS

      public static final OtelUnit NANOSECONDS
    • MICROSECONDS

      public static final OtelUnit MICROSECONDS
    • MILLISECONDS

      public static final OtelUnit MILLISECONDS
    • SECONDS

      public static final OtelUnit SECONDS
    • MINUTES

      public static final OtelUnit MINUTES
    • HOURS

      public static final OtelUnit HOURS
    • DAYS

      public static final OtelUnit DAYS
    • BYTES

      public static final OtelUnit BYTES
    • KILOBYTES

      public static final OtelUnit KILOBYTES
    • MEGABYTES

      public static final OtelUnit MEGABYTES
    • GIGABYTES

      public static final OtelUnit GIGABYTES
  • Method Details

    • values

      public static OtelUnit[] 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 OtelUnit 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
    • getSymbol

      public String getSymbol()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<OtelUnit>