Package jenkins.metrics.impl
Class TimeInQueueAction
java.lang.Object
jenkins.metrics.impl.TimeInQueueAction
- All Implemented Interfaces:
Action
,ModelObject
,Serializable
,RunAction2
Tracks the time spent in the queue
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTimeInQueueAction
(long queuingDurationMillis) Deprecated.TimeInQueueAction
(long millisecondsInQueue, long blockedDurationMillis, long buildableDurationMillis, long waitingDurationMillis) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the duration thisRun
spent in the queue because it was blocked.long
long
Returns the duration thisRun
spent in the queue in a buildable state.long
long
long
Returns the duration thisRun
spent building, that is the wall time from when it left the queue until it was finished.double
long
Returns the duration thisRun
spent queuing, that is the wall time from when it entered the queue until it left the queue.long
Returns the total time thisRun
spent queuing, including the time spent by subtasks.getRun()
int
long
Returns total duration for thisRun
, that is the wall time from when it entered the queue until it was finished.long
Returns the duration thisRun
spent in the queue waiting before it could be considered for execution.long
boolean
void
onAttached
(Run<?, ?> r) void
-
Constructor Details
-
TimeInQueueAction
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) @Deprecated public TimeInQueueAction(long queuingDurationMillis) Deprecated.Constructor.- Parameters:
queuingDurationMillis
- How long spent queuing.
-
TimeInQueueAction
public TimeInQueueAction(long millisecondsInQueue, long blockedDurationMillis, long buildableDurationMillis, long waitingDurationMillis) Constructor.- Parameters:
millisecondsInQueue
- How long spent queuing.blockedDurationMillis
- How long spent in the queue because blocked.buildableDurationMillis
- How long spent in the queue while buildable.waitingDurationMillis
- How long spent in the queue while waiting.
-
-
Method Details
-
getQueuingDurationMillis
@Exported(visibility=1) public long getQueuingDurationMillis()Returns the duration thisRun
spent queuing, that is the wall time from when it entered the queue until it left the queue.- Returns:
- the duration this
Run
spent queuing
-
getBlockedDurationMillis
@Exported(visibility=2) public long getBlockedDurationMillis()Returns the duration thisRun
spent in the queue because it was blocked.- Returns:
- the duration this
Run
spent in the queue because it was blocked.
-
getBuildableDurationMillis
@Exported(visibility=2) public long getBuildableDurationMillis()Returns the duration thisRun
spent in the queue in a buildable state.- Returns:
- the duration this
Run
spent in the queue in a buildable state.
-
getWaitingDurationMillis
@Exported(visibility=2) public long getWaitingDurationMillis()Returns the duration thisRun
spent in the queue waiting before it could be considered for execution.- Returns:
- the duration this
Run
spent in the queue waiting before it could be considered for execution.
-
isHasSubTasks
public boolean isHasSubTasks() -
getQueuingTimeMillis
@Exported(visibility=1) public long getQueuingTimeMillis()Returns the total time thisRun
spent queuing, including the time spent by subtasks. This is the sum ofgetQueuingDurationMillis()
plus all theSubTaskTimeInQueueAction.getQueuingDurationMillis()
.- Returns:
- the total time this
Run
spent queuing
-
getBlockedTimeMillis
@Exported(visibility=2) public long getBlockedTimeMillis() -
getBuildableTimeMillis
@Exported(visibility=2) public long getBuildableTimeMillis() -
getWaitingTimeMillis
@Exported(visibility=2) public long getWaitingTimeMillis() -
getExecutingTimeMillis
@Exported(visibility=2) public long getExecutingTimeMillis()Returns the duration thisRun
spent building, that is the wall time from when it left the queue until it was finished.- Returns:
- the duration this
Run
spent building
-
getBuildingDurationMillis
@Exported(visibility=2) public long getBuildingDurationMillis() -
getTotalDurationMillis
@Exported(visibility=1) public long getTotalDurationMillis()Returns total duration for thisRun
, that is the wall time from when it entered the queue until it was finished.- Returns:
- total duration for this
Run
, that is the wall time from when it entered the queue until it was finished.
-
getExecutorUtilization
@Exported(visibility=2) public double getExecutorUtilization() -
getSubTaskCount
@Exported(visibility=2) public int getSubTaskCount() -
getRun
-
getQueuingDurationString
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public String getQueuingDurationString() -
getQueuingTimeString
-
getBlockedTimeString
-
getBuildableTimeString
-
getWaitingTimeString
-
getBlockedDurationString
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public String getBlockedDurationString() -
getBuildableDurationString
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public String getBuildableDurationString() -
getWaitingDurationString
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public String getWaitingDurationString() -
getExecutingTimeString
-
getBuildingDurationString
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public String getBuildingDurationString() -
getTotalDurationString
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-
onAttached
- Specified by:
onAttached
in interfaceRunAction2
-
onLoad
- Specified by:
onLoad
in interfaceRunAction2
-