Class CpuUsageInfo

java.lang.Object
io.jenkins.plugins.specsmonitor.CpuUsageInfo
All Implemented Interfaces:
Serializable

@ExportedBean public class CpuUsageInfo extends Object implements Serializable
CPU usage of a node and of the agent process on it.
See Also:
  • 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 unknown
      processPercent - 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 that systemPercent is 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

      public String getDisplay()
      System CPU usage, e.g. 37%, or N/A.
    • getTooltip

      public String 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

      public String toString()
      Overrides:
      toString in class Object