Class FleetMetricDefinition.Builder
- java.lang.Object
-
- com.oracle.bmc.databasemanagement.model.FleetMetricDefinition.Builder
-
- Enclosing class:
- FleetMetricDefinition
public static class FleetMetricDefinition.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FleetMetricDefinition.BuilderbaselineValue(Double baselineValue)The baseline value of the metric.FleetMetricDefinitionbuild()FleetMetricDefinition.Buildercopy(FleetMetricDefinition model)FleetMetricDefinition.Builderdimensions(List<MetricDimensionDefinition> dimensions)The dimensions of the metric.FleetMetricDefinition.BuildermetricName(String metricName)The name of the metric.FleetMetricDefinition.BuilderpercentageChange(Double percentageChange)The percentage change in the metric aggregated value compared to the baseline value.FleetMetricDefinition.BuildertargetValue(Double targetValue)The target value of the metric.FleetMetricDefinition.Buildertimestamp(Date timestamp)The data point date and time in UTC in ISO-8601 format, which is “yyyy-MM-dd’T’hh:mm:ss.sss’Z’”.FleetMetricDefinition.Builderunit(String unit)The unit of the value.
-
-
-
Method Detail
-
metricName
public FleetMetricDefinition.Builder metricName(String metricName)
The name of the metric.- Parameters:
metricName- the value to set- Returns:
- this builder
-
baselineValue
public FleetMetricDefinition.Builder baselineValue(Double baselineValue)
The baseline value of the metric.- Parameters:
baselineValue- the value to set- Returns:
- this builder
-
targetValue
public FleetMetricDefinition.Builder targetValue(Double targetValue)
The target value of the metric.- Parameters:
targetValue- the value to set- Returns:
- this builder
-
unit
public FleetMetricDefinition.Builder unit(String unit)
The unit of the value.- Parameters:
unit- the value to set- Returns:
- this builder
-
timestamp
public FleetMetricDefinition.Builder timestamp(Date timestamp)
The data point date and time in UTC in ISO-8601 format, which is “yyyy-MM-dd’T’hh:mm:ss.sss’Z’”.- Parameters:
timestamp- the value to set- Returns:
- this builder
-
percentageChange
public FleetMetricDefinition.Builder percentageChange(Double percentageChange)
The percentage change in the metric aggregated value compared to the baseline value.- Parameters:
percentageChange- the value to set- Returns:
- this builder
-
dimensions
public FleetMetricDefinition.Builder dimensions(List<MetricDimensionDefinition> dimensions)
The dimensions of the metric.- Parameters:
dimensions- the value to set- Returns:
- this builder
-
build
public FleetMetricDefinition build()
-
copy
public FleetMetricDefinition.Builder copy(FleetMetricDefinition model)
-
-