MetricThresholdRule¶
- class oci.bds.models.MetricThresholdRule(**kwargs)¶
Bases:
objectAn autoscale action is triggered when a performance metric exceeds a threshold.
Attributes:
A constant which can be used with the operator property of a MetricThresholdRule.
A constant which can be used with the operator property of a MetricThresholdRule.
[Required] Gets the duration_in_minutes of this MetricThresholdRule.
[Required] Gets the operator of this MetricThresholdRule.
[Required] Gets the value of this MetricThresholdRule.
Methods:
__init__(**kwargs)Initializes a new MetricThresholdRule object with values from keyword arguments.
- OPERATOR_GT = 'GT'¶
A constant which can be used with the operator property of a MetricThresholdRule. This constant has a value of “GT”
- OPERATOR_LT = 'LT'¶
A constant which can be used with the operator property of a MetricThresholdRule. This constant has a value of “LT”
- __init__(**kwargs)¶
Initializes a new MetricThresholdRule object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
duration_in_minutes (int) – The value to assign to the duration_in_minutes property of this MetricThresholdRule.
operator (str) – The value to assign to the operator property of this MetricThresholdRule. Allowed values for this property are: “GT”, “LT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
value (int) – The value to assign to the value property of this MetricThresholdRule.
- property duration_in_minutes¶
[Required] Gets the duration_in_minutes of this MetricThresholdRule. 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.
- Returns
The duration_in_minutes of this MetricThresholdRule.
- Return type
int
- property operator¶
[Required] Gets the operator of this MetricThresholdRule. The comparison operator to use. Options are greater than (GT) or less than (LT).
Allowed values for this property are: “GT”, “LT”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The operator of this MetricThresholdRule.
- Return type
str
- property value¶
[Required] Gets the value of this MetricThresholdRule. Integer non-negative value. 0 < value < 100
- Returns
The value of this MetricThresholdRule.
- Return type
int