ThresholdPolicy

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

Bases: oci.autoscaling.models.auto_scaling_policy.AutoScalingPolicy

An autoscaling policy that defines threshold-based rules for an autoscaling configuration.

__init__(**kwargs)

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

Parameters:
  • capacity (Capacity) -- The value to assign to the capacity property of this ThresholdPolicy.
  • id (str) -- The value to assign to the id property of this ThresholdPolicy.
  • display_name (str) -- The value to assign to the display_name property of this ThresholdPolicy.
  • policy_type (str) -- The value to assign to the policy_type property of this ThresholdPolicy.
  • time_created (datetime) -- The value to assign to the time_created property of this ThresholdPolicy.
  • rules (list[Condition]) -- The value to assign to the rules property of this ThresholdPolicy.
capacity

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

Returns:The capacity of this AutoScalingPolicy.
Return type:Capacity
display_name

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

Returns:The display_name of this AutoScalingPolicy.
Return type:str
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.

id

Gets the id of this AutoScalingPolicy. The ID of the autoscaling policy that is assigned after creation.

Returns:The id of this AutoScalingPolicy.
Return type:str
policy_type

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

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

[Required] Gets the rules of this ThresholdPolicy.

Returns:The rules of this ThresholdPolicy.
Return type:list[Condition]
time_created

[Required] Gets the time_created of this AutoScalingPolicy. The date and time the autoscaling configuration was created, in the format defined by RFC3339.

Example: 2016-08-25T21:10:29.600Z

Returns:The time_created of this AutoScalingPolicy.
Return type:datetime