Record Class RunMonthStats
java.lang.Object
java.lang.Record
io.jenkins.plugins.batchcontrol.store.RunMonthStats
- Record Components:
runs- run records in the monthsuccess- runs with resultSUCCESSfailure- runs with resultFAILUREunstable- runs with resultUNSTABLE
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public record RunMonthStats(long runs, long success, long failure, long unstable)
extends Record
Per-month run counters for the history summary, maintained incrementally from the
append-only
runs/YYYY-MM.jsonl bucket: a summary request only reads the bytes appended
since the previous one.-
Constructor Summary
ConstructorsConstructorDescriptionRunMonthStats(long runs, long success, long failure, long unstable) Creates an instance of aRunMonthStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longfailure()Returns the value of thefailurerecord component.final inthashCode()Returns a hash code value for this object.longruns()Returns the value of therunsrecord component.longsuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.longunstable()Returns the value of theunstablerecord component.
-
Constructor Details
-
RunMonthStats
public RunMonthStats(long runs, long success, long failure, long unstable) Creates an instance of aRunMonthStatsrecord class.
-
-
Method Details
-
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 with '=='. -
runs
public long runs()Returns the value of therunsrecord component.- Returns:
- the value of the
runsrecord component
-
success
public long success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
failure
public long failure()Returns the value of thefailurerecord component.- Returns:
- the value of the
failurerecord component
-
unstable
public long unstable()Returns the value of theunstablerecord component.- Returns:
- the value of the
unstablerecord component
-