Class BuildRecord
java.lang.Object
io.jenkins.plugins.smartexecutorloadbalancer.BuildRecord
- All Implemented Interfaces:
Serializable
Immutable snapshot of one build execution on a specific executor slot.
Stored in the ring-buffer inside
NodeLabelStats.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBuildRecord(long timestamp, FailureType failureType, String reason, long durationMs, String stageName, double loadAtStart) -
Method Summary
Modifier and TypeMethodDescriptionHuman-friendly label for the tooltip (replaces raw enum name).longDuration formatted as "Xm Ys" or "Xs" for display.getIcon()Single character for the sparkline in the management UI.CSS colour class for the icon in the management UI.doublelongbooleanTrue if this record counts against the node-avoidance threshold.boolean
-
Constructor Details
-
BuildRecord
public BuildRecord(long timestamp, FailureType failureType, String reason, long durationMs, String stageName, double loadAtStart)
-
-
Method Details
-
getTimestamp
public long getTimestamp() -
getFailureType
-
getReason
-
getDurationMs
public long getDurationMs() -
getStageName
-
getLoadAtStart
public double getLoadAtStart() -
getFormattedDuration
Duration formatted as "Xm Ys" or "Xs" for display. -
isSuccess
public boolean isSuccess() -
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
Single character for the sparkline in the management UI. -
getIconColor
CSS colour class for the icon in the management UI.
-