Enum Class HistogramFlavor

java.lang.Object
java.lang.Enum<HistogramFlavor>
io.micrometer.registry.otlp.HistogramFlavor
All Implemented Interfaces:
Serializable, Comparable<HistogramFlavor>, Constable

public enum HistogramFlavor extends Enum<HistogramFlavor>
Histogram Flavor to be used while recording distributions,
Since:
1.14.0
See Also:
  • Enum Constant Details

    • EXPLICIT_BUCKET_HISTOGRAM

      public static final HistogramFlavor EXPLICIT_BUCKET_HISTOGRAM
      Uses a pre-determined fixed bucketing strategy for histogram bucket boundaries.
    • BASE2_EXPONENTIAL_BUCKET_HISTOGRAM

      public static final HistogramFlavor BASE2_EXPONENTIAL_BUCKET_HISTOGRAM
      Uses a base-2 exponential formula to determine bucket boundaries and an integer scale parameter to control resolution. Implementations adjust scale as necessary given the data.
  • Method Details

    • values

      public static HistogramFlavor[] 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 HistogramFlavor 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
    • fromString

      public static HistogramFlavor fromString(String histogramPreference)
      Converts a string to HistogramFlavor by using a case-insensitive matching.