Class HostCpuUsage


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20200630")
    public final class HostCpuUsage
    extends HostPerformanceMetricGroup
    CPU Usage metric for the host
    Note: Objects should always be created or deserialized using the HostCpuUsage.Builder.

    This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of the HostCpuUsage.Builder, which maintain a set of all explicitly set fields called HostCpuUsage.Builder.__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).

    • Constructor Detail

      • HostCpuUsage

        @Deprecated
        public HostCpuUsage​(Date timeCollected,
                            Float cpuUserModeInPercent,
                            Float cpuSystemModeInPercent,
                            Double cpuUsageInSec,
                            Float cpuUtilizationInPercent,
                            Float cpuStolenInPercent,
                            Float cpuIdleInPercent,
                            Float cpuLoad1min,
                            Float cpuLoad5min,
                            Float cpuLoad15min)
        Deprecated.
    • Method Detail

      • getCpuUserModeInPercent

        public Float getCpuUserModeInPercent()
        Percentage of CPU time spent in user mode
        Returns:
        the value
      • getCpuSystemModeInPercent

        public Float getCpuSystemModeInPercent()
        Percentage of CPU time spent in system mode
        Returns:
        the value
      • getCpuUsageInSec

        public Double getCpuUsageInSec()
        Amount of CPU Time spent in seconds
        Returns:
        the value
      • getCpuUtilizationInPercent

        public Float getCpuUtilizationInPercent()
        Amount of CPU Time spent in percentage
        Returns:
        the value
      • getCpuStolenInPercent

        public Float getCpuStolenInPercent()
        Amount of CPU time stolen in percentage
        Returns:
        the value
      • getCpuIdleInPercent

        public Float getCpuIdleInPercent()
        Amount of CPU idle time in percentage
        Returns:
        the value
      • getCpuLoad1min

        public Float getCpuLoad1min()
        Load average in the last 1 minute
        Returns:
        the value
      • getCpuLoad5min

        public Float getCpuLoad5min()
        Load average in the last 5 minutes
        Returns:
        the value
      • getCpuLoad15min

        public Float getCpuLoad15min()
        Load average in the last 15 minutes
        Returns:
        the value
      • toString

        public String toString​(boolean includeByteArrayContents)
        Return a string representation of the object.
        Overrides:
        toString in class HostPerformanceMetricGroup
        Parameters:
        includeByteArrayContents - true to include the full contents of byte arrays
        Returns:
        string representation