CreateAutoScalingPolicyDetails

class oci.autoscaling.models.CreateAutoScalingPolicyDetails(**kwargs)

Bases: object

Creation details for an autoscaling policy. You can create the following types of autoscaling policies:

  • Schedule-based: Autoscaling events take place at the specific times that you schedule.

  • Threshold-based: An autoscaling action is triggered when a performance metric meets

or exceeds a threshold.

An autoscaling configuration can either have multiple schedule-based autoscaling policies, or one threshold-based autoscaling policy.

Methods:

__init__(**kwargs)

Initializes a new CreateAutoScalingPolicyDetails 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:

capacity

Gets the capacity of this CreateAutoScalingPolicyDetails.

display_name

Gets the display_name of this CreateAutoScalingPolicyDetails.

is_enabled

Gets the is_enabled of this CreateAutoScalingPolicyDetails.

policy_type

[Required] Gets the policy_type of this CreateAutoScalingPolicyDetails.

__init__(**kwargs)

Initializes a new CreateAutoScalingPolicyDetails 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
  • capacity (oci.autoscaling.models.Capacity) – The value to assign to the capacity property of this CreateAutoScalingPolicyDetails.

  • display_name (str) – The value to assign to the display_name property of this CreateAutoScalingPolicyDetails.

  • policy_type (str) – The value to assign to the policy_type property of this CreateAutoScalingPolicyDetails.

  • is_enabled (bool) – The value to assign to the is_enabled property of this CreateAutoScalingPolicyDetails.

property capacity

Gets the capacity of this CreateAutoScalingPolicyDetails. The capacity requirements of the autoscaling policy.

Returns

The capacity of this CreateAutoScalingPolicyDetails.

Return type

oci.autoscaling.models.Capacity

property display_name

Gets the display_name of this CreateAutoScalingPolicyDetails. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.

Returns

The display_name of this CreateAutoScalingPolicyDetails.

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 is_enabled

Gets the is_enabled of this CreateAutoScalingPolicyDetails. Whether the autoscaling policy is enabled.

Returns

The is_enabled of this CreateAutoScalingPolicyDetails.

Return type

bool

property policy_type

[Required] Gets the policy_type of this CreateAutoScalingPolicyDetails. The type of autoscaling policy.

Returns

The policy_type of this CreateAutoScalingPolicyDetails.

Return type

str