Enum MetricType
- java.lang.Object
-
- java.lang.Enum<MetricType>
-
- de.codecentric.spring.boot.chaos.monkey.component.MetricType
-
- All Implemented Interfaces:
Serializable,Comparable<MetricType>,Constable
public enum MetricType extends Enum<MetricType>
- Author:
- Benjamin Wilms
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPLICATION_REQ_COUNTCOMPONENTCONTROLLEREXCEPTION_ASSAULTKILLAPP_ASSAULTLATENCY_ASSAULTMEMORY_ASSAULTMEMORY_ASSAULT_MEMORY_STOLENREPOSITORYRESTCONTROLLERSERVICE
-
Method Summary
Modifier and Type Method Description StringgetMetricName()booleanisSignatureOnlyEvent()booleanisTagEvent()static MetricTypevalueOf(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.
-
-
-
Enum Constant Detail
-
CONTROLLER
public static final MetricType CONTROLLER
-
RESTCONTROLLER
public static final MetricType RESTCONTROLLER
-
REPOSITORY
public static final MetricType REPOSITORY
-
COMPONENT
public static final MetricType COMPONENT
-
SERVICE
public static final MetricType SERVICE
-
LATENCY_ASSAULT
public static final MetricType LATENCY_ASSAULT
-
EXCEPTION_ASSAULT
public static final MetricType EXCEPTION_ASSAULT
-
KILLAPP_ASSAULT
public static final MetricType KILLAPP_ASSAULT
-
APPLICATION_REQ_COUNT
public static final MetricType APPLICATION_REQ_COUNT
-
MEMORY_ASSAULT
public static final MetricType MEMORY_ASSAULT
-
MEMORY_ASSAULT_MEMORY_STOLEN
public static final MetricType MEMORY_ASSAULT_MEMORY_STOLEN
-
-
Method Detail
-
values
public static MetricType[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetricType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getMetricName
public String getMetricName()
-
isSignatureOnlyEvent
public boolean isSignatureOnlyEvent()
-
isTagEvent
public boolean isTagEvent()
-
-