|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<DataSourceType>
com.netflix.servo.annotations.DataSourceType
public enum DataSourceType
Indicates the type of value that is annotated to determine how it will be measured.
| Enum Constant Summary | |
|---|---|
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. |
|
| Field Summary | |
|---|---|
static java.lang.String |
KEY
Key name used for the data source type tag. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final DataSourceType GAUGE
public static final DataSourceType COUNTER
public static final DataSourceType RATE
public static final DataSourceType INFORMATIONAL
| Field Detail |
|---|
public static final java.lang.String KEY
| Method Detail |
|---|
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 name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String getKey()
getKey in interface Tagpublic java.lang.String getValue()
getValue in interface Tagpublic java.lang.String tagString()
tagString in interface Tag
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||