Class MetricEvent
- java.lang.Object
-
- org.openstreetmap.atlas.checks.event.Event
-
- org.openstreetmap.atlas.checks.event.MetricEvent
-
public final class MetricEvent extends Event
A wrapper around a timed metric with a name and aDuration. This class is useful to generate in-memory metric events from integrity checks to the processors of integrity check results.
-
-
Constructor Summary
Constructors Constructor Description MetricEvent(java.lang.String name, org.openstreetmap.atlas.utilities.scalars.Duration duration)Default constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openstreetmap.atlas.utilities.scalars.DurationgetDuration()java.lang.StringgetName()static java.lang.Stringheader()java.lang.StringtoString()-
Methods inherited from class org.openstreetmap.atlas.checks.event.Event
getTimestamp
-
-
-
-
Method Detail
-
header
public static java.lang.String header()
- Returns:
- header following
toString()method format
-
getDuration
public org.openstreetmap.atlas.utilities.scalars.Duration getDuration()
- Returns:
Durationof the metric
-
getName
public java.lang.String getName()
- Returns:
- name of the metric
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-