public static class AnomalyDataPoint.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
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
|
AnomalyDataPoint |
build() |
AnomalyDataPoint.Builder |
copy(AnomalyDataPoint model) |
AnomalyDataPoint.Builder |
high(Double high)
upper threshold for the metric value
|
AnomalyDataPoint.Builder |
low(Double low)
lower threshold for the metric value
|
AnomalyDataPoint.Builder |
timestamp(Date timestamp)
timestamp of when the metric was collected
|
AnomalyDataPoint.Builder |
value(Double value)
value for the metric data point
|
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
anomaly
- the value to setpublic AnomalyDataPoint.Builder low(Double low)
lower threshold for the metric value
low
- the value to setpublic AnomalyDataPoint.Builder high(Double high)
upper threshold for the metric value
high
- the value to setpublic AnomalyDataPoint.Builder timestamp(Date timestamp)
timestamp of when the metric was collected
timestamp
- the value to setpublic AnomalyDataPoint.Builder value(Double value)
value for the metric data point
value
- the value to setpublic AnomalyDataPoint build()
public AnomalyDataPoint.Builder copy(AnomalyDataPoint model)
Copyright © 2016–2024. All rights reserved.