AutoScalePolicyRule¶
- class oci.bds.models.AutoScalePolicyRule(**kwargs)¶
Bases:
objectA rule that defines a specific autoscale action to take and the metric that triggers that action.
Attributes:
A constant which can be used with the action property of a AutoScalePolicyRule.
A constant which can be used with the action property of a AutoScalePolicyRule.
[Required] Gets the action of this AutoScalePolicyRule.
[Required] Gets the metric of this AutoScalePolicyRule.
Methods:
__init__(**kwargs)Initializes a new AutoScalePolicyRule object with values from keyword arguments.
- ACTION_CHANGE_SHAPE_SCALE_DOWN = 'CHANGE_SHAPE_SCALE_DOWN'¶
A constant which can be used with the action property of a AutoScalePolicyRule. This constant has a value of “CHANGE_SHAPE_SCALE_DOWN”
- ACTION_CHANGE_SHAPE_SCALE_UP = 'CHANGE_SHAPE_SCALE_UP'¶
A constant which can be used with the action property of a AutoScalePolicyRule. This constant has a value of “CHANGE_SHAPE_SCALE_UP”
- __init__(**kwargs)¶
Initializes a new AutoScalePolicyRule object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
action (str) – The value to assign to the action property of this AutoScalePolicyRule. Allowed values for this property are: “CHANGE_SHAPE_SCALE_UP”, “CHANGE_SHAPE_SCALE_DOWN”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
metric (oci.bds.models.AutoScalePolicyMetricRule) – The value to assign to the metric property of this AutoScalePolicyRule.
- property action¶
[Required] Gets the action of this AutoScalePolicyRule. The valid value are CHANGE_SHAPE_SCALE_UP or CHANGE_SHAPE_SCALE_DOWN.
Allowed values for this property are: “CHANGE_SHAPE_SCALE_UP”, “CHANGE_SHAPE_SCALE_DOWN”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The action of this AutoScalePolicyRule.
- Return type
str
- property metric¶
[Required] Gets the metric of this AutoScalePolicyRule.
- Returns
The metric of this AutoScalePolicyRule.
- Return type