Klasse HealthDescriptor

java.lang.Object
io.jenkins.plugins.analysis.core.util.HealthDescriptor
Alle implementierten Schnittstellen:
Serializable

public class HealthDescriptor extends Object implements Serializable
A health descriptor defines the parameters to create the build health.
Autor:
Ullrich Hafner
Siehe auch:
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    HealthDescriptor(int healthy, int unhealthy, edu.hm.hafner.analysis.Severity minimumSeverity)
    Creates a new HealthDescriptor.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    int
    Returns the healthy threshold, i.e., when health is reported as 100%.
    edu.hm.hafner.analysis.Severity
    Returns the minimum severity that should be considered when computing the build health.
    int
    Returns the unhealthy threshold, i.e., when health is reported as 0%.
    boolean
    Determines whether health reporting is enabled.
    boolean
    Determines whether health reporting is enabled.
     

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Konstruktordetails

    • HealthDescriptor

      public HealthDescriptor(int healthy, int unhealthy, edu.hm.hafner.analysis.Severity minimumSeverity)
      Creates a new HealthDescriptor.
      Parameter:
      healthy - the healthy threshold, i.e., when health is reported as 100%.
      unhealthy - the unhealthy threshold, i.e., when health is reported as 0%.
      minimumSeverity - the minimum severity that should be considered when computing the build health
  • Methodendetails

    • getHealthy

      public int getHealthy()
      Returns the healthy threshold, i.e., when health is reported as 100%.
      Gibt zurück:
      the 100% healthiness
    • getUnhealthy

      public int getUnhealthy()
      Returns the unhealthy threshold, i.e., when health is reported as 0%.
      Gibt zurück:
      the 0% unhealthiness
    • getMinimumSeverity

      public edu.hm.hafner.analysis.Severity getMinimumSeverity()
      Returns the minimum severity that should be considered when computing the build health. E.g., if Severity.WARNING_NORMAL is returned, then annotations with severity Severity.WARNING_LOW are ignored.
      Gibt zurück:
      the minimum severity to consider
    • isEnabled

      public boolean isEnabled()
      Determines whether health reporting is enabled.
      Gibt zurück:
      true if health reporting is enabled, false otherwise
    • isValid

      public boolean isValid()
      Determines whether health reporting is enabled.
      Gibt zurück:
      true if health reporting is enabled, false otherwise
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object