@Generated(value="OracleSDKGenerator", comments="API Version: 20200630") public final class ResourceStatistics extends Object
Contains resource statistics with usage unit
Note: Objects should always be created or deserialized using the ResourceStatistics.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 ResourceStatistics.Builder
, which maintain a set of all explicitly set fields called
__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take
__explicitlySet__
into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
ResourceStatistics.Builder |
Constructor and Description |
---|
ResourceStatistics(Double usage,
Double capacity,
Double baseCapacity,
Boolean isAutoScalingEnabled,
Double utilizationPercent,
Double usageChangePercent,
List<InstanceMetrics> instanceMetrics)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ResourceStatistics.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
Double |
getBaseCapacity()
The base allocated amount of the resource metric type (CPU, STORAGE).
|
Double |
getCapacity()
The maximum allocated amount of the resource metric type (CPU, STORAGE).
|
List<InstanceMetrics> |
getInstanceMetrics()
Array of instance metrics
|
Boolean |
getIsAutoScalingEnabled()
Indicates if auto scaling feature is enabled or disabled on a database.
|
Double |
getUsage()
Total amount used of the resource metric type (CPU, STORAGE).
|
Double |
getUsageChangePercent()
Change in resource utilization in percentage
|
Double |
getUtilizationPercent()
Resource utilization in percentage
|
int |
hashCode() |
ResourceStatistics.Builder |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"usage","capacity","baseCapacity","isAutoScalingEnabled","utilizationPercent","usageChangePercent","instanceMetrics"}) @Deprecated public ResourceStatistics(Double usage, Double capacity, Double baseCapacity, Boolean isAutoScalingEnabled, Double utilizationPercent, Double usageChangePercent, List<InstanceMetrics> instanceMetrics)
public static ResourceStatistics.Builder builder()
Create a new builder.
public ResourceStatistics.Builder toBuilder()
public Double getUsage()
Total amount used of the resource metric type (CPU, STORAGE).
public Double getCapacity()
The maximum allocated amount of the resource metric type (CPU, STORAGE).
public Double getBaseCapacity()
The base allocated amount of the resource metric type (CPU, STORAGE).
public Boolean getIsAutoScalingEnabled()
Indicates if auto scaling feature is enabled or disabled on a database. It will be false for all metrics other than CPU.
public Double getUtilizationPercent()
Resource utilization in percentage
public Double getUsageChangePercent()
Change in resource utilization in percentage
public List<InstanceMetrics> getInstanceMetrics()
Array of instance metrics
Copyright © 2016–2022. All rights reserved.