public static class ResourceStatistics.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ResourceStatistics.Builder |
baseCapacity(Double baseCapacity)
The base allocated amount of the resource metric type (CPU, STORAGE) for a set of
databases.
|
ResourceStatistics |
build() |
ResourceStatistics.Builder |
capacity(Double capacity)
The maximum allocated amount of the resource metric type (CPU, STORAGE) for a set of
databases.
|
ResourceStatistics.Builder |
copy(ResourceStatistics model) |
ResourceStatistics.Builder |
instanceMetrics(List<InstanceMetrics> instanceMetrics)
Array of instance metrics
|
ResourceStatistics.Builder |
isAutoScalingEnabled(Boolean isAutoScalingEnabled)
Indicates if auto scaling feature is enabled or disabled on a database.
|
ResourceStatistics.Builder |
isHeatWaveClusterAttached(Boolean isHeatWaveClusterAttached)
Specifies if MYSQL DB System has heatwave cluster attached.
|
ResourceStatistics.Builder |
isHighlyAvailable(Boolean isHighlyAvailable)
Specifies if MYSQL DB System is highly available.
|
ResourceStatistics.Builder |
totalHostCapacity(Double totalHostCapacity)
The maximum host CPUs (cores x threads/core) on the underlying infrastructure.
|
ResourceStatistics.Builder |
usage(Double usage)
Total amount used of the resource metric type (CPU, STORAGE).
|
ResourceStatistics.Builder |
usageChangePercent(Double usageChangePercent)
Change in resource utilization in percentage
|
ResourceStatistics.Builder |
utilizationPercent(Double utilizationPercent)
Resource utilization in percentage
|
public ResourceStatistics.Builder usage(Double usage)
Total amount used of the resource metric type (CPU, STORAGE).
usage
- the value to setpublic ResourceStatistics.Builder capacity(Double capacity)
The maximum allocated amount of the resource metric type (CPU, STORAGE) for a set of databases.
capacity
- the value to setpublic ResourceStatistics.Builder baseCapacity(Double baseCapacity)
The base allocated amount of the resource metric type (CPU, STORAGE) for a set of databases.
baseCapacity
- the value to setpublic ResourceStatistics.Builder isAutoScalingEnabled(Boolean isAutoScalingEnabled)
Indicates if auto scaling feature is enabled or disabled on a database. It will be false for all metrics other than CPU.
isAutoScalingEnabled
- the value to setpublic ResourceStatistics.Builder utilizationPercent(Double utilizationPercent)
Resource utilization in percentage
utilizationPercent
- the value to setpublic ResourceStatistics.Builder usageChangePercent(Double usageChangePercent)
Change in resource utilization in percentage
usageChangePercent
- the value to setpublic ResourceStatistics.Builder instanceMetrics(List<InstanceMetrics> instanceMetrics)
Array of instance metrics
instanceMetrics
- the value to setpublic ResourceStatistics.Builder totalHostCapacity(Double totalHostCapacity)
The maximum host CPUs (cores x threads/core) on the underlying infrastructure. This only applies to CPU and does not not apply for Autonomous Databases.
totalHostCapacity
- the value to setpublic ResourceStatistics.Builder isHeatWaveClusterAttached(Boolean isHeatWaveClusterAttached)
Specifies if MYSQL DB System has heatwave cluster attached.
isHeatWaveClusterAttached
- the value to setpublic ResourceStatistics.Builder isHighlyAvailable(Boolean isHighlyAvailable)
Specifies if MYSQL DB System is highly available.
isHighlyAvailable
- the value to setpublic ResourceStatistics build()
public ResourceStatistics.Builder copy(ResourceStatistics model)
Copyright © 2016–2024. All rights reserved.