public enum DataSourceType extends java.lang.Enum<DataSourceType> implements Tag
Enum Constant and Description |
---|
COUNTER
A counter is for numeric values that get incremented when some event
occurs.
|
GAUGE
A gauge is for numeric values that can be sampled without modification.
|
INFORMATIONAL
An informational attribute is for values that might be useful for
debugging, but will not be collected as metrics for monitoring purposes.
|
RATE
A rate is for numeric values that represent a rate per second.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY
Key name used for the data source type tag, configurable via
servo.datasourcetype.key system property.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey()
Returns the key corresponding to this tag.
|
java.lang.String |
getValue()
Returns the value corresponding to this tag.
|
java.lang.String |
tagString()
Returns the string representation of this tag.
|
static DataSourceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DataSourceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataSourceType GAUGE
public static final DataSourceType COUNTER
public static final DataSourceType RATE
public static final DataSourceType INFORMATIONAL
public static final java.lang.String KEY
public static DataSourceType[] values()
for (DataSourceType c : DataSourceType.values()) System.out.println(c);
public static DataSourceType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getKey()
public java.lang.String getValue()