public enum TextOutputFormat extends Enum<TextOutputFormat> implements Producible<TextOutputFormat>
Producible
enum for supported Prometheus TextFormat
.Enum Constant and Description |
---|
CONTENT_TYPE_004
Prometheus text version 0.0.4.
|
CONTENT_TYPE_OPENMETRICS_100
OpenMetrics text version 1.0.0.
|
Modifier and Type | Method and Description |
---|---|
MimeType |
getProducedMimeType()
Mime type that can be produced.
|
static TextOutputFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextOutputFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
isDefault
public static final TextOutputFormat CONTENT_TYPE_004
public static final TextOutputFormat CONTENT_TYPE_OPENMETRICS_100
public static TextOutputFormat[] values()
for (TextOutputFormat c : TextOutputFormat.values()) System.out.println(c);
public static TextOutputFormat valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic MimeType getProducedMimeType()
Producible
getProducedMimeType
in interface Producible<TextOutputFormat>