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 SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceMetricsbuild()InstanceMetrics.Buildercapacity(Double capacity)The maximum allocated amount of the resource metric type (CPU, STORAGE) for a set of databases.InstanceMetrics.Buildercopy(InstanceMetrics model)InstanceMetrics.BuilderhostName(String hostName)The hostname of the database insight resource.InstanceMetrics.BuilderinstanceName(String instanceName)The instance name of the database insight resource.InstanceMetrics.BuildertotalHostCapacity(Double totalHostCapacity)The maximum host CPUs (cores x threads/core) on the underlying infrastructure.InstanceMetrics.Builderusage(Double usage)Total amount used of the resource metric type (CPU, STORAGE).InstanceMetrics.BuilderusageChangePercent(Double usageChangePercent)Change in resource utilization in percentageInstanceMetrics.BuilderutilizationPercent(Double utilizationPercent)Resource utilization in percentage
 
- 
- 
- 
Method Detail- 
hostNamepublic InstanceMetrics.Builder hostName(String hostName) The hostname of the database insight resource.- Parameters:
- hostName- the value to set
- Returns:
- this builder
 
 - 
instanceNamepublic InstanceMetrics.Builder instanceName(String instanceName) The instance name of the database insight resource.- Parameters:
- instanceName- the value to set
- Returns:
- this builder
 
 - 
usagepublic InstanceMetrics.Builder usage(Double usage) Total amount used of the resource metric type (CPU, STORAGE).- Parameters:
- usage- the value to set
- Returns:
- this builder
 
 - 
capacitypublic 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
 
 - 
totalHostCapacitypublic 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
 
 - 
utilizationPercentpublic InstanceMetrics.Builder utilizationPercent(Double utilizationPercent) Resource utilization in percentage- Parameters:
- utilizationPercent- the value to set
- Returns:
- this builder
 
 - 
usageChangePercentpublic InstanceMetrics.Builder usageChangePercent(Double usageChangePercent) Change in resource utilization in percentage- Parameters:
- usageChangePercent- the value to set
- Returns:
- this builder
 
 - 
buildpublic InstanceMetrics build() 
 - 
copypublic InstanceMetrics.Builder copy(InstanceMetrics model) 
 
- 
 
-