public static class EvaluatedMetric.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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.
|
public EvaluatedMetric.Builder name(String name)
The name of the metric (e.g., CpuUtilization
).
name
- the value to setpublic EvaluatedMetric.Builder statistic(String statistic)
The name of the statistic (e.g., p95
).
statistic
- the value to setpublic EvaluatedMetric.Builder threshold(Double threshold)
The threshold that must be crossed for the recommendation to appear.
threshold
- the value to setpublic EvaluatedMetric.Builder target(Double target)
Optional. The metric value that the recommendation will target.
target
- the value to setpublic EvaluatedMetric build()
public EvaluatedMetric.Builder copy(EvaluatedMetric model)
Copyright © 2016–2024. All rights reserved.