Class AnomalyDataPoint.Builder
- java.lang.Object
-
- com.oracle.bmc.stackmonitoring.model.AnomalyDataPoint.Builder
-
- Enclosing class:
- AnomalyDataPoint
public static class AnomalyDataPoint.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnomalyDataPoint.Builderanomaly(Double anomaly)if the value is anomaly or not 0 indicates not an anomaly -1 indicates value is below the threshold +1 indicates value is above the thresholdAnomalyDataPointbuild()AnomalyDataPoint.Buildercopy(AnomalyDataPoint model)AnomalyDataPoint.Builderhigh(Double high)upper threshold for the metric valueAnomalyDataPoint.Builderlow(Double low)lower threshold for the metric valueAnomalyDataPoint.Buildertimestamp(Date timestamp)timestamp of when the metric was collectedAnomalyDataPoint.Buildervalue(Double value)value for the metric data point
-
-
-
Method Detail
-
anomaly
public AnomalyDataPoint.Builder anomaly(Double anomaly)
if the value is anomaly or not 0 indicates not an anomaly -1 indicates value is below the threshold +1 indicates value is above the threshold- Parameters:
anomaly- the value to set- Returns:
- this builder
-
low
public AnomalyDataPoint.Builder low(Double low)
lower threshold for the metric value- Parameters:
low- the value to set- Returns:
- this builder
-
high
public AnomalyDataPoint.Builder high(Double high)
upper threshold for the metric value- Parameters:
high- the value to set- Returns:
- this builder
-
timestamp
public AnomalyDataPoint.Builder timestamp(Date timestamp)
timestamp of when the metric was collected- Parameters:
timestamp- the value to set- Returns:
- this builder
-
value
public AnomalyDataPoint.Builder value(Double value)
value for the metric data point- Parameters:
value- the value to set- Returns:
- this builder
-
build
public AnomalyDataPoint build()
-
copy
public AnomalyDataPoint.Builder copy(AnomalyDataPoint model)
-
-