@Generated(value="OracleSDKGenerator", comments="API Version: 20190531") public final class MetricThresholdRule extends Object
An autoscaling action is triggered when a performance metric meets or exceeds a threshold
Note: Objects should always be created or deserialized using the MetricThresholdRule.Builder. This model distinguishes fields
that are null because they are unset from fields that are explicitly set to null. This is done in
the setter methods of the MetricThresholdRule.Builder, which maintain a set of all explicitly set fields called
__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take
__explicitlySet__ into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null from unset null).
| Modifier and Type | Class and Description |
|---|---|
static class |
MetricThresholdRule.Builder |
static class |
MetricThresholdRule.Operator
The comparison operator to use.
|
| Constructor and Description |
|---|
MetricThresholdRule(Integer durationInMinutes,
MetricThresholdRule.Operator operator,
Integer value)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static MetricThresholdRule.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
Integer |
getDurationInMinutes()
This value is the minimum period of time metric value meets or exceeds threshold value before action is trigger.
|
MetricThresholdRule.Operator |
getOperator()
The comparison operator to use.
|
Integer |
getValue()
integer non negative value.
|
int |
hashCode() |
MetricThresholdRule.Builder |
toBuilder() |
String |
toString() |
@ConstructorProperties(value={"durationInMinutes","operator","value"}) @Deprecated public MetricThresholdRule(Integer durationInMinutes, MetricThresholdRule.Operator operator, Integer value)
public static MetricThresholdRule.Builder builder()
Create a new builder.
public MetricThresholdRule.Builder toBuilder()
public Integer getDurationInMinutes()
This value is the minimum period of time metric value meets or exceeds threshold value before action is trigger. The value is in minutes.
public MetricThresholdRule.Operator getOperator()
The comparison operator to use. Options are greater than (GT), less than (LT).
public Integer getValue()
integer non negative value. 0 < value < 100
Copyright © 2016–2021. All rights reserved.