Package com.oracle.bmc.optimizer.model
Class EvaluatedMetric.Builder
- java.lang.Object
-
- com.oracle.bmc.optimizer.model.EvaluatedMetric.Builder
-
- Enclosing class:
- EvaluatedMetric
public static class EvaluatedMetric.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EvaluatedMetric
build()
EvaluatedMetric.Builder
copy(EvaluatedMetric model)
EvaluatedMetric.Builder
name(String name)
The name of the metric (e.g., CpuUtilization).EvaluatedMetric.Builder
statistic(String statistic)
The name of the statistic (e.g., p95).EvaluatedMetric.Builder
target(Double target)
Optional.EvaluatedMetric.Builder
threshold(Double threshold)
The threshold that must be crossed for the recommendation to appear.
-
-
-
Method Detail
-
name
public EvaluatedMetric.Builder name(String name)
The name of the metric (e.g., CpuUtilization).- Parameters:
name
- the value to set- Returns:
- this builder
-
statistic
public EvaluatedMetric.Builder statistic(String statistic)
The name of the statistic (e.g., p95).- Parameters:
statistic
- the value to set- Returns:
- this builder
-
threshold
public EvaluatedMetric.Builder threshold(Double threshold)
The threshold that must be crossed for the recommendation to appear.- Parameters:
threshold
- the value to set- Returns:
- this builder
-
target
public EvaluatedMetric.Builder target(Double target)
Optional.The metric value that the recommendation will target.
- Parameters:
target
- the value to set- Returns:
- this builder
-
build
public EvaluatedMetric build()
-
copy
public EvaluatedMetric.Builder copy(EvaluatedMetric model)
-
-