Class BuildRecord

java.lang.Object
io.jenkins.plugins.smartexecutorloadbalancer.BuildRecord
All Implemented Interfaces:
Serializable

public final class BuildRecord extends Object implements Serializable
Immutable snapshot of one build execution on a specific executor slot. Stored in the ring-buffer inside NodeLabelStats.
See Also:
  • Constructor Details

    • BuildRecord

      public BuildRecord(long timestamp, FailureType failureType, String reason, long durationMs, String stageName, double loadAtStart)
  • Method Details

    • getTimestamp

      public long getTimestamp()
    • getFailureType

      public FailureType getFailureType()
    • getReason

      public String getReason()
    • getDurationMs

      public long getDurationMs()
    • getStageName

      public String getStageName()
    • getLoadAtStart

      public double getLoadAtStart()
    • getFormattedDuration

      public String getFormattedDuration()
      Duration formatted as "Xm Ys" or "Xs" for display.
    • isSuccess

      public boolean isSuccess()
    • getDisplayType

      public String getDisplayType()
      Human-friendly label for the tooltip (replaces raw enum name).
    • isNodeFault

      public boolean isNodeFault()
      True if this record counts against the node-avoidance threshold.
    • getIcon

      public String getIcon()
      Single character for the sparkline in the management UI.
    • getIconColor

      public String getIconColor()
      CSS colour class for the icon in the management UI.