Record Class JobMetrics
java.lang.Object
java.lang.Record
org.jenkinsci.plugins.additionalmetrics.JobMetrics
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longlonglongdoubledoublelonglonglonglonglonglonglonglongdoubledoubledoublefinal inthashCode()Returns a hash code value for this object.job()Returns the value of thejobrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JobMetrics
Creates an instance of aJobMetricsrecord class.- Parameters:
job- the value for thejobrecord 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
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
job
Returns the value of thejobrecord component.- Returns:
- the value of the
jobrecord component
-