Record Class JobMetrics

java.lang.Object
java.lang.Record
org.jenkinsci.plugins.additionalmetrics.JobMetrics

@ExportedBean public record JobMetrics(Job job) extends Record
  • Constructor Details

    • JobMetrics

      public JobMetrics(Job job)
      Creates an instance of a JobMetrics record class.
      Parameters:
      job - the value for the job record component
  • Method Details

    • getAvgCheckoutDuration

      @Exported public long getAvgCheckoutDuration()
    • getAvgDuration

      @Exported public long getAvgDuration()
    • getAvgSuccessDuration

      @Exported public long getAvgSuccessDuration()
    • getMaxCheckoutDuration

      @Exported public long getMaxCheckoutDuration()
    • getMaxDuration

      @Exported public long getMaxDuration()
    • getMaxSuccessDuration

      @Exported public long getMaxSuccessDuration()
    • getMinCheckoutDuration

      @Exported public long getMinCheckoutDuration()
    • getMinDuration

      @Exported public long getMinDuration()
    • getMinSuccessDuration

      @Exported public long getMinSuccessDuration()
    • getSuccessRate

      @Exported public double getSuccessRate()
    • getFailureRate

      @Exported public double getFailureRate()
    • getSuccessTimeRate

      @Exported public double getSuccessTimeRate()
    • getFailureTimeRate

      @Exported public double getFailureTimeRate()
    • getStandardDeviationDuration

      @Exported public long getStandardDeviationDuration()
    • getStandardDeviationSuccessDuration

      @Exported public long getStandardDeviationSuccessDuration()
    • getUnstableRate

      @Exported public double getUnstableRate()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • job

      public Job job()
      Returns the value of the job record component.
      Returns:
      the value of the job record component