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.Builder
baselineValue(Double baselineValue)
The baseline value of the metric.FleetMetricDefinition
build()
FleetMetricDefinition.Builder
copy(FleetMetricDefinition model)
FleetMetricDefinition.Builder
dimensions(List<MetricDimensionDefinition> dimensions)
The dimensions of the metric.FleetMetricDefinition.Builder
metricName(String metricName)
The name of the metric.FleetMetricDefinition.Builder
percentageChange(Double percentageChange)
The percentage change in the metric aggregated value compared to the baseline value.FleetMetricDefinition.Builder
targetValue(Double targetValue)
The target value of the metric.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’”.FleetMetricDefinition.Builder
unit(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)
-
-