Package com.oracle.bmc.opsi.model
Class HostCpuUsage
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.opsi.model.HostPerformanceMetricGroup
-
- com.oracle.bmc.opsi.model.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 theHostCpuUsage.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 calledHostCpuUsage.Builder.__explicitlySet__
. ThehashCode()
andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HostCpuUsage.Builder
-
Nested classes/interfaces inherited from class com.oracle.bmc.opsi.model.HostPerformanceMetricGroup
HostPerformanceMetricGroup.MetricName
-
-
Constructor Summary
Constructors Constructor Description HostCpuUsage(Date timeCollected, Float cpuUserModeInPercent, Float cpuSystemModeInPercent, Double cpuUsageInSec, Float cpuUtilizationInPercent, Float cpuStolenInPercent, Float cpuIdleInPercent, Float cpuLoad1min, Float cpuLoad5min, Float cpuLoad15min)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HostCpuUsage.Builder
builder()
Create a new builder.boolean
equals(Object o)
Float
getCpuIdleInPercent()
Amount of CPU idle time in percentageFloat
getCpuLoad15min()
Load average in the last 15 minutesFloat
getCpuLoad1min()
Load average in the last 1 minuteFloat
getCpuLoad5min()
Load average in the last 5 minutesFloat
getCpuStolenInPercent()
Amount of CPU time stolen in percentageFloat
getCpuSystemModeInPercent()
Percentage of CPU time spent in system modeDouble
getCpuUsageInSec()
Amount of CPU Time spent in secondsFloat
getCpuUserModeInPercent()
Percentage of CPU time spent in user modeFloat
getCpuUtilizationInPercent()
Amount of CPU Time spent in percentageint
hashCode()
HostCpuUsage.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.-
Methods inherited from class com.oracle.bmc.opsi.model.HostPerformanceMetricGroup
getTimeCollected
-
-
-
-
Method Detail
-
builder
public static HostCpuUsage.Builder builder()
Create a new builder.
-
toBuilder
public HostCpuUsage.Builder toBuilder()
-
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()
- Overrides:
toString
in classHostPerformanceMetricGroup
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toString
in classHostPerformanceMetricGroup
- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classHostPerformanceMetricGroup
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classHostPerformanceMetricGroup
-
-