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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description MetricEvent(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AtomicIntegergetGaugeValue()StringgetMethodSignature()MetricTypegetMetricType()doublegetMetricValue()String[]getTags()-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
MetricEvent
public MetricEvent(Object source, MetricType metricType, String methodSignature, String... tags)
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
public MetricEvent(Object source, MetricType metricType, String... tags)
-
MetricEvent
public MetricEvent(Object source, MetricType metricType, long metricValue, String methodSignature, String... tags)
-
-
Method Detail
-
getMetricType
public MetricType getMetricType()
-
getMethodSignature
public String getMethodSignature()
-
getTags
public String[] getTags()
-
getMetricValue
public double getMetricValue()
-
getGaugeValue
public AtomicInteger getGaugeValue()
-
-