AutoScalingConfiguration

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

Bases: object

An autoscaling configuration allows you to dynamically scale the resources in a Compute instance pool. For more information, see Autoscaling.

__init__(**kwargs)

Initializes a new AutoScalingConfiguration object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • compartment_id (str) -- The value to assign to the compartment_id property of this AutoScalingConfiguration.
  • defined_tags (dict(str, dict(str, object))) -- The value to assign to the defined_tags property of this AutoScalingConfiguration.
  • display_name (str) -- The value to assign to the display_name property of this AutoScalingConfiguration.
  • freeform_tags (dict(str, str)) -- The value to assign to the freeform_tags property of this AutoScalingConfiguration.
  • id (str) -- The value to assign to the id property of this AutoScalingConfiguration.
  • cool_down_in_seconds (int) -- The value to assign to the cool_down_in_seconds property of this AutoScalingConfiguration.
  • is_enabled (bool) -- The value to assign to the is_enabled property of this AutoScalingConfiguration.
  • resource (Resource) -- The value to assign to the resource property of this AutoScalingConfiguration.
  • policies (list[AutoScalingPolicy]) -- The value to assign to the policies property of this AutoScalingConfiguration.
  • time_created (datetime) -- The value to assign to the time_created property of this AutoScalingConfiguration.
compartment_id

[Required] Gets the compartment_id of this AutoScalingConfiguration. The OCID of the compartment containing the autoscaling configuration.

Returns:The compartment_id of this AutoScalingConfiguration.
Return type:str
cool_down_in_seconds

Gets the cool_down_in_seconds of this AutoScalingConfiguration. The minimum period of time to wait between scaling actions. The cooldown period gives the system time to stabilize before rescaling. The minimum value is 300 seconds, which is also the default.

Returns:The cool_down_in_seconds of this AutoScalingConfiguration.
Return type:int
defined_tags

Gets the defined_tags of this AutoScalingConfiguration. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Example: {"Operations": {"CostCenter": "42"}}

Returns:The defined_tags of this AutoScalingConfiguration.
Return type:dict(str, dict(str, object))
display_name

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

Returns:The display_name of this AutoScalingConfiguration.
Return type:str
freeform_tags

Gets the freeform_tags of this AutoScalingConfiguration. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

Example: {"Department": "Finance"}

Returns:The freeform_tags of this AutoScalingConfiguration.
Return type:dict(str, str)
id

[Required] Gets the id of this AutoScalingConfiguration. The OCID of the autoscaling configuration.

Returns:The id of this AutoScalingConfiguration.
Return type:str
is_enabled

Gets the is_enabled of this AutoScalingConfiguration. Whether the autoscaling configuration is enabled.

Returns:The is_enabled of this AutoScalingConfiguration.
Return type:bool
policies

[Required] Gets the policies of this AutoScalingConfiguration. Autoscaling policy definitions for the autoscaling configuration. An autoscaling policy defines the criteria that trigger autoscaling actions and the actions to take.

Each autoscaling configuration can have one autoscaling policy.

Returns:The policies of this AutoScalingConfiguration.
Return type:list[AutoScalingPolicy]
resource

[Required] Gets the resource of this AutoScalingConfiguration.

Returns:The resource of this AutoScalingConfiguration.
Return type:Resource
time_created

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

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

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