Package io.micrometer.registry.otlp
Enum Class HistogramFlavor
- All Implemented Interfaces:
Serializable,Comparable<HistogramFlavor>,Constable
Histogram Flavor to be used while recording distributions,
- Since:
- 1.14.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUses a base-2 exponential formula to determine bucket boundaries and an integer scale parameter to control resolution.Uses a pre-determined fixed bucketing strategy for histogram bucket boundaries. -
Method Summary
Modifier and TypeMethodDescriptionstatic HistogramFlavorfromString(String histogramPreference) Converts a string toHistogramFlavorby using a case-insensitive matching.static HistogramFlavorReturns the enum constant of this class with the specified name.static HistogramFlavor[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXPLICIT_BUCKET_HISTOGRAM
Uses a pre-determined fixed bucketing strategy for histogram bucket boundaries. -
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
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
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 nameNullPointerException- if the argument is null
-
fromString
Converts a string toHistogramFlavorby using a case-insensitive matching.
-