AutoScalePolicyDetails¶
- class oci.bds.models.AutoScalePolicyDetails(**kwargs)¶
Bases:
objectDetails of an autoscale policy.
You can create following types of autoscaling policies:
MetricBasedVerticalScalingPolicy: Vertical autoscaling action is triggered when a performance metric exceeds a threshold
MetricBasedHorizontalScalingPolicy: Horizontal autoscaling action is triggered when a performance metric exceeds a threshold
ScheduleBasedVerticalScalingPolicy: Vertical autoscaling action is triggered at the specific times that you schedule.
ScheduleBasedHorizontalScalingPolicy: Horizontal autoscaling action is triggered at the specific times that you schedule.
Attributes:
A constant which can be used with the action_type property of a AutoScalePolicyDetails.
A constant which can be used with the action_type property of a AutoScalePolicyDetails.
A constant which can be used with the policy_type property of a AutoScalePolicyDetails.
A constant which can be used with the policy_type property of a AutoScalePolicyDetails.
A constant which can be used with the policy_type property of a AutoScalePolicyDetails.
A constant which can be used with the policy_type property of a AutoScalePolicyDetails.
A constant which can be used with the trigger_type property of a AutoScalePolicyDetails.
A constant which can be used with the trigger_type property of a AutoScalePolicyDetails.
[Required] Gets the action_type of this AutoScalePolicyDetails.
[Required] Gets the policy_type of this AutoScalePolicyDetails.
[Required] Gets the trigger_type of this AutoScalePolicyDetails.
Methods:
__init__(**kwargs)Initializes a new AutoScalePolicyDetails object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- ACTION_TYPE_HORIZONTAL_SCALING = 'HORIZONTAL_SCALING'¶
A constant which can be used with the action_type property of a AutoScalePolicyDetails. This constant has a value of “HORIZONTAL_SCALING”
- ACTION_TYPE_VERTICAL_SCALING = 'VERTICAL_SCALING'¶
A constant which can be used with the action_type property of a AutoScalePolicyDetails. This constant has a value of “VERTICAL_SCALING”
- POLICY_TYPE_METRIC_BASED_HORIZONTAL_SCALING_POLICY = 'METRIC_BASED_HORIZONTAL_SCALING_POLICY'¶
A constant which can be used with the policy_type property of a AutoScalePolicyDetails. This constant has a value of “METRIC_BASED_HORIZONTAL_SCALING_POLICY”
- POLICY_TYPE_METRIC_BASED_VERTICAL_SCALING_POLICY = 'METRIC_BASED_VERTICAL_SCALING_POLICY'¶
A constant which can be used with the policy_type property of a AutoScalePolicyDetails. This constant has a value of “METRIC_BASED_VERTICAL_SCALING_POLICY”
- POLICY_TYPE_SCHEDULE_BASED_HORIZONTAL_SCALING_POLICY = 'SCHEDULE_BASED_HORIZONTAL_SCALING_POLICY'¶
A constant which can be used with the policy_type property of a AutoScalePolicyDetails. This constant has a value of “SCHEDULE_BASED_HORIZONTAL_SCALING_POLICY”
- POLICY_TYPE_SCHEDULE_BASED_VERTICAL_SCALING_POLICY = 'SCHEDULE_BASED_VERTICAL_SCALING_POLICY'¶
A constant which can be used with the policy_type property of a AutoScalePolicyDetails. This constant has a value of “SCHEDULE_BASED_VERTICAL_SCALING_POLICY”
- TRIGGER_TYPE_METRIC_BASED = 'METRIC_BASED'¶
A constant which can be used with the trigger_type property of a AutoScalePolicyDetails. This constant has a value of “METRIC_BASED”
- TRIGGER_TYPE_SCHEDULE_BASED = 'SCHEDULE_BASED'¶
A constant which can be used with the trigger_type property of a AutoScalePolicyDetails. This constant has a value of “SCHEDULE_BASED”
- __init__(**kwargs)¶
Initializes a new AutoScalePolicyDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:
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 AutoScalePolicyDetails. Allowed values for this property are: “METRIC_BASED_VERTICAL_SCALING_POLICY”, “METRIC_BASED_HORIZONTAL_SCALING_POLICY”, “SCHEDULE_BASED_VERTICAL_SCALING_POLICY”, “SCHEDULE_BASED_HORIZONTAL_SCALING_POLICY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
trigger_type (str) – The value to assign to the trigger_type property of this AutoScalePolicyDetails. Allowed values for this property are: “METRIC_BASED”, “SCHEDULE_BASED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
action_type (str) – The value to assign to the action_type property of this AutoScalePolicyDetails. Allowed values for this property are: “VERTICAL_SCALING”, “HORIZONTAL_SCALING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- property action_type¶
[Required] Gets the action_type of this AutoScalePolicyDetails. The type of autoscaling action to take.
Allowed values for this property are: “VERTICAL_SCALING”, “HORIZONTAL_SCALING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The action_type of this AutoScalePolicyDetails.
- Return type
str
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property policy_type¶
[Required] Gets the policy_type of this AutoScalePolicyDetails. Type of autoscaling policy.
Allowed values for this property are: “METRIC_BASED_VERTICAL_SCALING_POLICY”, “METRIC_BASED_HORIZONTAL_SCALING_POLICY”, “SCHEDULE_BASED_VERTICAL_SCALING_POLICY”, “SCHEDULE_BASED_HORIZONTAL_SCALING_POLICY”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The policy_type of this AutoScalePolicyDetails.
- Return type
str
- property trigger_type¶
[Required] Gets the trigger_type of this AutoScalePolicyDetails. The type of autoscaling trigger.
Allowed values for this property are: “METRIC_BASED”, “SCHEDULE_BASED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The trigger_type of this AutoScalePolicyDetails.
- Return type
str