AutoScalePolicy

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

Bases: object

Policy definitions for the autoscale configuration.

Attributes

POLICY_TYPE_SCHEDULE_BASED A constant which can be used with the policy_type property of a AutoScalePolicy.
POLICY_TYPE_THRESHOLD_BASED A constant which can be used with the policy_type property of a AutoScalePolicy.
policy_type [Required] Gets the policy_type of this AutoScalePolicy.
rules [Required] Gets the rules of this AutoScalePolicy.

Methods

__init__(**kwargs) Initializes a new AutoScalePolicy object with values from keyword arguments.
POLICY_TYPE_SCHEDULE_BASED = 'SCHEDULE_BASED'

A constant which can be used with the policy_type property of a AutoScalePolicy. This constant has a value of “SCHEDULE_BASED”

POLICY_TYPE_THRESHOLD_BASED = 'THRESHOLD_BASED'

A constant which can be used with the policy_type property of a AutoScalePolicy. This constant has a value of “THRESHOLD_BASED”

__init__(**kwargs)

Initializes a new AutoScalePolicy object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • policy_type (str) – The value to assign to the policy_type property of this AutoScalePolicy. Allowed values for this property are: “THRESHOLD_BASED”, “SCHEDULE_BASED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • rules (list[oci.bds.models.AutoScalePolicyRule]) – The value to assign to the rules property of this AutoScalePolicy.
policy_type

[Required] Gets the policy_type of this AutoScalePolicy. Types of autoscale policies. Options are SCHEDULE-BASED or THRESHOLD-BASED. (Only THRESHOLD-BASED is supported in this release.)

Allowed values for this property are: “THRESHOLD_BASED”, “SCHEDULE_BASED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The policy_type of this AutoScalePolicy.
Return type:str
rules

[Required] Gets the rules of this AutoScalePolicy. The list of rules for autoscaling. If an action has multiple rules, the last rule in the array will be applied.

Returns:The rules of this AutoScalePolicy.
Return type:list[oci.bds.models.AutoScalePolicyRule]