Package com.oracle.bmc.opsi.model
Class InstanceMetrics.Builder
- java.lang.Object
-
- com.oracle.bmc.opsi.model.InstanceMetrics.Builder
-
- Enclosing class:
- InstanceMetrics
public static class InstanceMetrics.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 percentageInstanceMetrics.Builder
utilizationPercent(Double utilizationPercent)
Resource utilization in percentage
-
-
-
Method Detail
-
hostName
public InstanceMetrics.Builder hostName(String hostName)
The hostname of the database insight resource.- Parameters:
hostName
- the value to set- Returns:
- this builder
-
instanceName
public InstanceMetrics.Builder instanceName(String instanceName)
The instance name of the database insight resource.- Parameters:
instanceName
- the value to set- Returns:
- this builder
-
usage
public InstanceMetrics.Builder usage(Double usage)
Total amount used of the resource metric type (CPU, STORAGE).- Parameters:
usage
- the value to set- Returns:
- this builder
-
capacity
public InstanceMetrics.Builder capacity(Double capacity)
The maximum allocated amount of the resource metric type (CPU, STORAGE) for a set of databases.- Parameters:
capacity
- the value to set- Returns:
- this builder
-
totalHostCapacity
public 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.
- Parameters:
totalHostCapacity
- the value to set- Returns:
- this builder
-
utilizationPercent
public InstanceMetrics.Builder utilizationPercent(Double utilizationPercent)
Resource utilization in percentage- Parameters:
utilizationPercent
- the value to set- Returns:
- this builder
-
usageChangePercent
public InstanceMetrics.Builder usageChangePercent(Double usageChangePercent)
Change in resource utilization in percentage- Parameters:
usageChangePercent
- the value to set- Returns:
- this builder
-
build
public InstanceMetrics build()
-
copy
public InstanceMetrics.Builder copy(InstanceMetrics model)
-
-