Package io.jenkins.plugins.specsmonitor
Class CpuUsageInfo
java.lang.Object
io.jenkins.plugins.specsmonitor.CpuUsageInfo
- All Implemented Interfaces:
Serializable
CPU usage of a node and of the agent process on it.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCpuUsageInfo(double systemPercent, double processPercent) CpuUsageInfo(double systemPercent, double processPercent, double peakSystemPercent) -
Method Summary
Modifier and TypeMethodDescriptionSystem CPU usage, e.g.doubledoubledoubleTooltip text, e.g.toString()
-
Constructor Details
-
CpuUsageInfo
public CpuUsageInfo(double systemPercent, double processPercent) - Parameters:
systemPercent- CPU usage of the whole machine (or container) in percent, or a negative value if unknownprocessPercent- CPU usage of the agent's JVM in percent of the whole machine, or a negative value if unknown
-
CpuUsageInfo
public CpuUsageInfo(double systemPercent, double processPercent, double peakSystemPercent) - Parameters:
peakSystemPercent- the highest system CPU usage of the individual samples thatsystemPercentis the mean of, or a negative value if unknown
-
-
Method Details
-
getSystemPercent
@Exported public double getSystemPercent() -
getProcessPercent
@Exported public double getProcessPercent() -
getPeakSystemPercent
@Exported public double getPeakSystemPercent() -
getDisplay
System CPU usage, e.g.37%, orN/A. -
getTooltip
Tooltip text, e.g.System: 37% (peak 91%) • JVM: 2%. The peak is only shown when it differs from the average. Unknown parts are left out; empty if nothing is known. -
toString
-