public static class InstanceMetrics.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
InstanceMetrics |
build() |
InstanceMetrics.Builder |
capacity(Double capacity)
The maximum allocated amount of the resource metric type (CPU, STORAGE) for a set of
databases.
|
InstanceMetrics.Builder |
copy(InstanceMetrics model) |
InstanceMetrics.Builder |
hostName(String hostName)
The hostname of the database insight resource.
|
InstanceMetrics.Builder |
instanceName(String instanceName)
The instance name of the database insight resource.
|
InstanceMetrics.Builder |
totalHostCapacity(Double totalHostCapacity)
The maximum host CPUs (cores x threads/core) on the underlying infrastructure.
|
InstanceMetrics.Builder |
usage(Double usage)
Total amount used of the resource metric type (CPU, STORAGE).
|
InstanceMetrics.Builder |
usageChangePercent(Double usageChangePercent)
Change in resource utilization in percentage
|
InstanceMetrics.Builder |
utilizationPercent(Double utilizationPercent)
Resource utilization in percentage
|
public InstanceMetrics.Builder hostName(String hostName)
The hostname of the database insight resource.
hostName
- the value to setpublic InstanceMetrics.Builder instanceName(String instanceName)
The instance name of the database insight resource.
instanceName
- the value to setpublic InstanceMetrics.Builder usage(Double usage)
Total amount used of the resource metric type (CPU, STORAGE).
usage
- the value to setpublic InstanceMetrics.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 InstanceMetrics.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 InstanceMetrics.Builder utilizationPercent(Double utilizationPercent)
Resource utilization in percentage
utilizationPercent
- the value to setpublic InstanceMetrics.Builder usageChangePercent(Double usageChangePercent)
Change in resource utilization in percentage
usageChangePercent
- the value to setpublic InstanceMetrics build()
public InstanceMetrics.Builder copy(InstanceMetrics model)
Copyright © 2016–2024. All rights reserved.