public enum MetricType extends Enum<MetricType>
Enum Constant and Description |
---|
GLOBAL_OK_RATE |
GLOBAL_QPS |
GLOBAL_RESPONSE_TIME_95 |
GLOBAL_RESPONSE_TIME_99 |
GLOBAL_RESPONSE_TIME_AVG |
REQUEST_OK_RATE |
REQUEST_QPS |
REQUEST_RESPONSE_TIME_95 |
REQUEST_RESPONSE_TIME_99 |
REQUEST_RESPONSE_TIME_AVG |
Modifier and Type | Method and Description |
---|---|
static Optional<MetricType> |
findByInt(int value) |
static Optional<MetricType> |
findByString(String name) |
int |
toInt() |
String |
toString() |
static MetricType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetricType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetricType GLOBAL_QPS
public static final MetricType GLOBAL_RESPONSE_TIME_99
public static final MetricType GLOBAL_RESPONSE_TIME_95
public static final MetricType REQUEST_QPS
public static final MetricType REQUEST_RESPONSE_TIME_99
public static final MetricType REQUEST_RESPONSE_TIME_95
public static final MetricType GLOBAL_RESPONSE_TIME_AVG
public static final MetricType REQUEST_RESPONSE_TIME_AVG
public static final MetricType GLOBAL_OK_RATE
public static final MetricType REQUEST_OK_RATE
public static MetricType[] values()
for (MetricType c : MetricType.values()) System.out.println(c);
public static MetricType 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 static Optional<MetricType> findByString(String name)
public static Optional<MetricType> findByInt(int value)
public int toInt()
public String toString()
toString
in class Enum<MetricType>
Copyright © 2016–2019. All rights reserved.