public static class MetricThresholdRule.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MetricThresholdRule |
build() |
MetricThresholdRule.Builder |
copy(MetricThresholdRule model) |
MetricThresholdRule.Builder |
durationInMinutes(Integer durationInMinutes)
This value is the minimum period of time the metric value exceeds the threshold value
before the action is triggered.
|
MetricThresholdRule.Builder |
operator(MetricThresholdRule.Operator operator)
The comparison operator to use.
|
MetricThresholdRule.Builder |
value(Integer value)
Integer non-negative value.
|
public MetricThresholdRule.Builder durationInMinutes(Integer durationInMinutes)
This value is the minimum period of time the metric value exceeds the threshold value before the action is triggered. The value is in minutes.
durationInMinutes
- the value to setpublic MetricThresholdRule.Builder operator(MetricThresholdRule.Operator operator)
The comparison operator to use. Options are greater than (GT) or less than (LT).
operator
- the value to setpublic MetricThresholdRule.Builder value(Integer value)
Integer non-negative value. 0 < value < 100
value
- the value to setpublic MetricThresholdRule build()
public MetricThresholdRule.Builder copy(MetricThresholdRule model)
Copyright © 2016–2024. All rights reserved.