@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
).
Modifier and Type | Class and Description |
---|---|
static class |
HostCpuUsage.Builder |
HostPerformanceMetricGroup.MetricName
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
HostCpuUsage(Date timeCollected,
Float cpuUserModeInPercent,
Float cpuSystemModeInPercent,
Double cpuUsageInSec,
Float cpuUtilizationInPercent,
Float cpuStolenInPercent,
Float cpuIdleInPercent,
Float cpuLoad1min,
Float cpuLoad5min,
Float cpuLoad15min)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static HostCpuUsage.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Float |
getCpuIdleInPercent()
Amount of CPU idle time in percentage
|
Float |
getCpuLoad15min()
Load average in the last 15 minutes
|
Float |
getCpuLoad1min()
Load average in the last 1 minute
|
Float |
getCpuLoad5min()
Load average in the last 5 minutes
|
Float |
getCpuStolenInPercent()
Amount of CPU time stolen in percentage
|
Float |
getCpuSystemModeInPercent()
Percentage of CPU time spent in system mode
|
Double |
getCpuUsageInSec()
Amount of CPU Time spent in seconds
|
Float |
getCpuUserModeInPercent()
Percentage of CPU time spent in user mode
|
Float |
getCpuUtilizationInPercent()
Amount of CPU Time spent in percentage
|
int |
hashCode() |
HostCpuUsage.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
getTimeCollected
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
public static HostCpuUsage.Builder builder()
Create a new builder.
public HostCpuUsage.Builder toBuilder()
public Float getCpuUserModeInPercent()
Percentage of CPU time spent in user mode
public Float getCpuSystemModeInPercent()
Percentage of CPU time spent in system mode
public Double getCpuUsageInSec()
Amount of CPU Time spent in seconds
public Float getCpuUtilizationInPercent()
Amount of CPU Time spent in percentage
public Float getCpuStolenInPercent()
Amount of CPU time stolen in percentage
public Float getCpuIdleInPercent()
Amount of CPU idle time in percentage
public Float getCpuLoad1min()
Load average in the last 1 minute
public Float getCpuLoad5min()
Load average in the last 5 minutes
public Float getCpuLoad15min()
Load average in the last 15 minutes
public String toString()
toString
in class HostPerformanceMetricGroup
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class HostPerformanceMetricGroup
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class HostPerformanceMetricGroup
public int hashCode()
hashCode
in class HostPerformanceMetricGroup
Copyright © 2016–2024. All rights reserved.