Record Class RunMonthStats

java.lang.Object
java.lang.Record
io.jenkins.plugins.batchcontrol.store.RunMonthStats
Record Components:
runs - run records in the month
success - runs with result SUCCESS
failure - runs with result FAILURE
unstable - runs with result UNSTABLE

@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

    Constructors
    Constructor
    Description
    RunMonthStats(long runs, long success, long failure, long unstable)
    Creates an instance of a RunMonthStats record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the failure record component.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the runs record component.
    long
    Returns the value of the success record component.
    final String
    Returns a string representation of this record class.
    long
    Returns the value of the unstable record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RunMonthStats

      public RunMonthStats(long runs, long success, long failure, long unstable)
      Creates an instance of a RunMonthStats record class.
      Parameters:
      runs - the value for the runs record component
      success - the value for the success record component
      failure - the value for the failure record component
      unstable - the value for the unstable record component
  • Method Details

    • 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 '=='.
      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.
    • runs

      public long runs()
      Returns the value of the runs record component.
      Returns:
      the value of the runs record component
    • success

      public long success()
      Returns the value of the success record component.
      Returns:
      the value of the success record component
    • failure

      public long failure()
      Returns the value of the failure record component.
      Returns:
      the value of the failure record component
    • unstable

      public long unstable()
      Returns the value of the unstable record component.
      Returns:
      the value of the unstable record component