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

Bases: oci.autoscaling.models.create_auto_scaling_policy_details.CreateAutoScalingPolicyDetails

Creation details for a threshold-based autoscaling policy.

In a threshold-based autoscaling policy, an autoscaling action is triggered when a performance metric meets or exceeds a threshold.


Initializes a new CreateThresholdPolicyDetails object with values from keyword arguments. The default value of the policy_type attribute of this class is threshold and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

  • capacity (Capacity) -- The value to assign to the capacity property of this CreateThresholdPolicyDetails.
  • display_name (str) -- The value to assign to the display_name property of this CreateThresholdPolicyDetails.
  • policy_type (str) -- The value to assign to the policy_type property of this CreateThresholdPolicyDetails.
  • rules (list[CreateConditionDetails]) -- The value to assign to the rules property of this CreateThresholdPolicyDetails.

[Required] Gets the capacity of this CreateAutoScalingPolicyDetails. The capacity requirements of the autoscaling policy.

Returns:The capacity of this CreateAutoScalingPolicyDetails.
Return type:Capacity

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

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.


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

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

[Required] Gets the rules of this CreateThresholdPolicyDetails.

Returns:The rules of this CreateThresholdPolicyDetails.
Return type:list[CreateConditionDetails]