Package io.jenkins.plugins.specsmonitor
Class CpuUsageMonitor
java.lang.Object
hudson.node_monitors.NodeMonitor
io.jenkins.plugins.specsmonitor.CpuUsageMonitor
- All Implemented Interfaces:
ExtensionPoint,Describable<NodeMonitor>
Node monitor that reports the CPU usage of each node, averaged over a few seconds, with the peak
and the usage of the agent process as a tooltip.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsFields inherited from class hudson.node_monitors.NodeMonitor
LIST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCPU usage at or above this percentage is highlighted as a warning.booleanisHigh(CpuUsageInfo info) Whether the system CPU usage ininfohas reached the configured threshold.voidsetWarnAbovePercent(int warnAbovePercent) Methods inherited from class hudson.node_monitors.NodeMonitor
all, data, getAll, getColumnCaption, getDescriptor, isIgnored, setIgnored, triggerUpdate
-
Field Details
-
DEFAULT_WARN_ABOVE_PERCENT
public static final int DEFAULT_WARN_ABOVE_PERCENTDefault forgetWarnAbovePercent().- See Also:
-
-
Constructor Details
-
CpuUsageMonitor
@DataBoundConstructor public CpuUsageMonitor()
-
-
Method Details
-
getWarnAbovePercent
public int getWarnAbovePercent()CPU usage at or above this percentage is highlighted as a warning. -
setWarnAbovePercent
@DataBoundSetter public void setWarnAbovePercent(int warnAbovePercent) -
isHigh
Whether the system CPU usage ininfohas reached the configured threshold. A threshold of 100 turns the warning off.
-