AddAutoScalePolicyDetails

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

Bases: object

Policy definition for the autoscale configuration.

An autoscaling policy is part of an autoscaling configuration. For more information, see Autoscaling

You can create following type 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.

Methods

__init__(**kwargs) Initializes a new AddAutoScalePolicyDetails 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.

Attributes

policy_type [Required] Gets the policy_type of this AddAutoScalePolicyDetails.

An autoscaling configuration can have one of above supported policies.

__init__(**kwargs)

Initializes a new AddAutoScalePolicyDetails 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 AddAutoScalePolicyDetails.
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.

policy_type

[Required] Gets the policy_type of this AddAutoScalePolicyDetails. Type of autoscaling policy.

Returns:The policy_type of this AddAutoScalePolicyDetails.
Return type:str