AutoScalePolicyRule

class oci.bds.models.AutoScalePolicyRule(**kwargs)

Bases: object

A rule that defines a specific autoscale action to take and the metric that triggers that action.

Attributes

ACTION_CHANGE_SHAPE_SCALE_DOWN A constant which can be used with the action property of a AutoScalePolicyRule.
ACTION_CHANGE_SHAPE_SCALE_UP A constant which can be used with the action property of a AutoScalePolicyRule.
action [Required] Gets the action of this AutoScalePolicyRule.
metric [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.
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
metric

[Required] Gets the metric of this AutoScalePolicyRule.

Returns:The metric of this AutoScalePolicyRule.
Return type:oci.bds.models.AutoScalePolicyMetricRule