Package com.oracle.bmc.bds.model
Class MetricThresholdRule.Builder
- java.lang.Object
-
- com.oracle.bmc.bds.model.MetricThresholdRule.Builder
-
- Enclosing class:
- MetricThresholdRule
public static class MetricThresholdRule.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetricThresholdRulebuild()MetricThresholdRule.Buildercopy(MetricThresholdRule model)MetricThresholdRule.BuilderdurationInMinutes(Integer durationInMinutes)This value is the minimum period of time the metric value exceeds the threshold value before the action is triggered.MetricThresholdRule.Builderoperator(MetricThresholdRule.Operator operator)The comparison operator to use.MetricThresholdRule.Buildervalue(Integer value)Integer non-negative value.
-
-
-
Method Detail
-
durationInMinutes
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.
- Parameters:
durationInMinutes- the value to set- Returns:
- this builder
-
operator
public MetricThresholdRule.Builder operator(MetricThresholdRule.Operator operator)
The comparison operator to use.Options are greater than (GT) or less than (LT).
- Parameters:
operator- the value to set- Returns:
- this builder
-
value
public MetricThresholdRule.Builder value(Integer value)
Integer non-negative value.0 < value < 100
- Parameters:
value- the value to set- Returns:
- this builder
-
build
public MetricThresholdRule build()
-
copy
public MetricThresholdRule.Builder copy(MetricThresholdRule model)
-
-