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 HostPerformanceMetricGroupCPU 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 classHostCpuUsage.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.Builderbuilder()Create a new builder.booleanequals(Object o)FloatgetCpuIdleInPercent()Amount of CPU idle time in percentageFloatgetCpuLoad15min()Load average in the last 15 minutesFloatgetCpuLoad1min()Load average in the last 1 minuteFloatgetCpuLoad5min()Load average in the last 5 minutesFloatgetCpuStolenInPercent()Amount of CPU time stolen in percentageFloatgetCpuSystemModeInPercent()Percentage of CPU time spent in system modeDoublegetCpuUsageInSec()Amount of CPU Time spent in secondsFloatgetCpuUserModeInPercent()Percentage of CPU time spent in user modeFloatgetCpuUtilizationInPercent()Amount of CPU Time spent in percentageinthashCode()HostCpuUsage.BuildertoBuilder()StringtoString()StringtoString(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:
toStringin classHostPerformanceMetricGroup
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toStringin classHostPerformanceMetricGroup- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classHostPerformanceMetricGroup
-
hashCode
public int hashCode()
- Overrides:
hashCodein classHostPerformanceMetricGroup
-
-