Class MetricEvent

  • All Implemented Interfaces:
    Serializable

    public class MetricEvent
    extends org.springframework.context.ApplicationEvent
    Author:
    Benjamin Wilms
    See Also:
    Serialized Form
    • 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 (never null)
        metricType - MetricType
        methodSignature - String
        tags - String[]
    • Method Detail

      • getMetricType

        public MetricType getMetricType()
      • getMethodSignature

        public String getMethodSignature()
      • getTags

        public String[] getTags()
      • getMetricValue

        public double getMetricValue()