Enum Class PrometheusOutputFormat
java.lang.Object
java.lang.Enum<PrometheusOutputFormat>
org.springframework.boot.micrometer.metrics.autoconfigure.export.prometheus.PrometheusOutputFormat
- All Implemented Interfaces:
Serializable, Comparable<PrometheusOutputFormat>, Constable, org.springframework.boot.actuate.endpoint.Producible<PrometheusOutputFormat>
public enum PrometheusOutputFormat
extends Enum<PrometheusOutputFormat>
implements org.springframework.boot.actuate.endpoint.Producible<PrometheusOutputFormat>
A
Producible enum for supported Prometheus formats.- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPrometheus text version 0.0.4.OpenMetrics text version 1.0.0.Prometheus metrics protobuf. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.util.MimeTypestatic PrometheusOutputFormatReturns the enum constant of this class with the specified name.static PrometheusOutputFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.springframework.boot.actuate.endpoint.Producible
isDefault
-
Enum Constant Details
-
CONTENT_TYPE_004
Prometheus text version 0.0.4. -
CONTENT_TYPE_OPENMETRICS_100
OpenMetrics text version 1.0.0. -
CONTENT_TYPE_PROTOBUF
Prometheus metrics protobuf.
-
-
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
-
getProducedMimeType
public org.springframework.util.MimeType getProducedMimeType()- Specified by:
getProducedMimeTypein interfaceorg.springframework.boot.actuate.endpoint.Producible<PrometheusOutputFormat>
-