Package hudson.node_monitors
Class ResponseTimeMonitor.Data
java.lang.Object
hudson.slaves.OfflineCause
hudson.node_monitors.MonitorOfflineCause
hudson.node_monitors.ResponseTimeMonitor.Data
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ResponseTimeMonitor
@ExportedBean
public static final class ResponseTimeMonitor.Data
extends MonitorOfflineCause
implements Serializable
Immutable representation of the monitoring data.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.slaves.OfflineCause
OfflineCause.ByCLI, OfflineCause.ChannelTermination, OfflineCause.IdleOfflineCause, OfflineCause.LaunchFailed, OfflineCause.SimpleOfflineCause, OfflineCause.UserCause
-
Field Summary
Fields inherited from class hudson.slaves.OfflineCause
timestamp
-
Method Summary
Modifier and TypeMethodDescriptionlong
Computes the average response time, by taking the time out into account.Class<? extends NodeMonitor>
Identify monitor implementation that put computer offline.boolean
toString()
String rendering of the dataMethods inherited from class hudson.slaves.OfflineCause
create, getTime, getTimestamp
-
Method Details
-
getAverage
@Exported public long getAverage()Computes the average response time, by taking the time out into account. -
hasTooManyTimeouts
public boolean hasTooManyTimeouts() -
toString
String rendering of the data -
getTrigger
Description copied from class:MonitorOfflineCause
Identify monitor implementation that put computer offline.- Specified by:
getTrigger
in classMonitorOfflineCause
-