Enum MetricType
- java.lang.Object
-
- java.lang.Enum<MetricType>
-
- de.codecentric.spring.boot.chaos.monkey.component.MetricType
-
- All Implemented Interfaces:
Serializable,Comparable<MetricType>
public enum MetricType extends Enum<MetricType>
- Author:
- Benjamin Wilms
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPLICATION_REQ_COUNTCOMPONENTCONTROLLERCPU_ASSAULTEXCEPTION_ASSAULTKILLAPP_ASSAULTLATENCY_ASSAULTMEMORY_ASSAULTMEMORY_ASSAULT_MEMORY_STOLENREPOSITORYRESTCONTROLLERSERVICE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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
-
CPU_ASSAULT
public static final MetricType CPU_ASSAULT
-
-
Method Detail
-
values
public static MetricType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MetricType c : MetricType.values()) System.out.println(c);
- 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()
-
-