Class MetricsManager
- java.lang.Object
-
- com.sonyericsson.jenkins.plugins.bfa.MetricsManager
-
public final class MetricsManager extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static FailureCause
UNKNOWNCAUSE
A magic cause to represent builds that match no causes in the database.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addMetric(IFailureCauseMetricData cause)
Add metrics into the MetricRegistry from the Metrics plugin.static void
incCounters(List<? extends IFailureCauseMetricData> causes, boolean squashCauses)
Increment counters for the metric and its categories.
-
-
-
Field Detail
-
UNKNOWNCAUSE
public static final FailureCause UNKNOWNCAUSE
A magic cause to represent builds that match no causes in the database.
-
-
Method Detail
-
addMetric
public static void addMetric(IFailureCauseMetricData cause)
Add metrics into the MetricRegistry from the Metrics plugin.- Parameters:
cause
- The Cause to add metrics for
-
incCounters
public static void incCounters(List<? extends IFailureCauseMetricData> causes, boolean squashCauses)
Increment counters for the metric and its categories.- Parameters:
causes
- The cause to increment counters forsquashCauses
- Whether or not to squash cause metrics
-
-