Class MetricsManager
java.lang.Object
com.sonyericsson.jenkins.plugins.bfa.MetricsManager
-
Field Summary
Modifier and TypeFieldDescriptionstatic final FailureCause
A magic cause to represent builds that match no causes in the database. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
UNKNOWNCAUSE
A magic cause to represent builds that match no causes in the database.
-
-
Method Details
-
addMetric
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
-