Class MetricEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
de.codecentric.spring.boot.chaos.monkey.events.MetricEvent
- All Implemented Interfaces:
Serializable
public class MetricEvent
extends org.springframework.context.ApplicationEvent
- Author:
- Benjamin Wilms
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionMetricEvent(Object source, MetricType metricType, long metricValue, String methodSignature, String... tags) MetricEvent(Object source, MetricType metricType, String... tags) MetricEvent(Object source, MetricType metricType, String methodSignature, String... tags) Create a new Chaos Monkey for Spring Boot Metric ApplicationEvent. -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
MetricEvent
Create a new Chaos Monkey for Spring Boot Metric ApplicationEvent.- Parameters:
source- the object on which the event initially occurred (nevernull)metricType- MetricTypemethodSignature- Stringtags- String[]
-
MetricEvent
-
MetricEvent
public MetricEvent(Object source, MetricType metricType, long metricValue, String methodSignature, String... tags)
-
-
Method Details
-
getMetricType
-
getMethodSignature
-
getTags
-
getMetricValue
public double getMetricValue()
-