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 SummaryNested Classes Modifier and Type Class Description static classHostCpuUsage.Builder- 
Nested classes/interfaces inherited from class com.oracle.bmc.opsi.model.HostPerformanceMetricGroupHostPerformanceMetricGroup.MetricName
 
- 
 - 
Constructor SummaryConstructors 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 SummaryAll 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.HostPerformanceMetricGroupgetTimeCollected
 
- 
 
- 
- 
- 
Method Detail- 
builderpublic static HostCpuUsage.Builder builder() Create a new builder.
 - 
toBuilderpublic HostCpuUsage.Builder toBuilder() 
 - 
getCpuUserModeInPercentpublic Float getCpuUserModeInPercent() Percentage of CPU time spent in user mode- Returns:
- the value
 
 - 
getCpuSystemModeInPercentpublic Float getCpuSystemModeInPercent() Percentage of CPU time spent in system mode- Returns:
- the value
 
 - 
getCpuUsageInSecpublic Double getCpuUsageInSec() Amount of CPU Time spent in seconds- Returns:
- the value
 
 - 
getCpuUtilizationInPercentpublic Float getCpuUtilizationInPercent() Amount of CPU Time spent in percentage- Returns:
- the value
 
 - 
getCpuStolenInPercentpublic Float getCpuStolenInPercent() Amount of CPU time stolen in percentage- Returns:
- the value
 
 - 
getCpuIdleInPercentpublic Float getCpuIdleInPercent() Amount of CPU idle time in percentage- Returns:
- the value
 
 - 
getCpuLoad1minpublic Float getCpuLoad1min() Load average in the last 1 minute- Returns:
- the value
 
 - 
getCpuLoad5minpublic Float getCpuLoad5min() Load average in the last 5 minutes- Returns:
- the value
 
 - 
getCpuLoad15minpublic Float getCpuLoad15min() Load average in the last 15 minutes- Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- HostPerformanceMetricGroup
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Overrides:
- toStringin class- HostPerformanceMetricGroup
- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- HostPerformanceMetricGroup
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- HostPerformanceMetricGroup
 
 
- 
 
-