Class MetricsManager
java.lang.Object
com.sonyericsson.jenkins.plugins.bfa.MetricsManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FailureCauseA magic cause to represent builds that match no causes in the database. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddMetric(IFailureCauseMetricData cause) Add metrics into the MetricRegistry from the Metrics plugin.static voidincCounters(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
-