Class MetricsManager

java.lang.Object
com.sonyericsson.jenkins.plugins.bfa.MetricsManager

public final class MetricsManager extends Object
  • Field Details

    • UNKNOWNCAUSE

      public static final FailureCause UNKNOWNCAUSE
      A magic cause to represent builds that match no causes in the database.
  • Method Details

    • 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 for
      squashCauses - Whether or not to squash cause metrics