AutoScalingPolicy

class oci.data_science.models.AutoScalingPolicy(**kwargs)

Bases: oci.data_science.models.scaling_policy.ScalingPolicy

The scaling policy to enable autoscaling on the model deployment.

Attributes

POLICY_TYPE_AUTOSCALING str(object=’’) -> str
POLICY_TYPE_FIXED_SIZE str(object=’’) -> str
auto_scaling_policies [Required] Gets the auto_scaling_policies of this AutoScalingPolicy.
cool_down_in_seconds Gets the cool_down_in_seconds of this AutoScalingPolicy.
is_enabled Gets the is_enabled of this AutoScalingPolicy.
policy_type [Required] Gets the policy_type of this ScalingPolicy.

Methods

__init__(**kwargs) Initializes a new AutoScalingPolicy 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.
POLICY_TYPE_AUTOSCALING = 'AUTOSCALING'
POLICY_TYPE_FIXED_SIZE = 'FIXED_SIZE'
__init__(**kwargs)

Initializes a new AutoScalingPolicy object with values from keyword arguments. The default value of the policy_type attribute of this class is AUTOSCALING and it should not be changed. 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 AutoScalingPolicy. Allowed values for this property are: “FIXED_SIZE”, “AUTOSCALING”
  • cool_down_in_seconds (int) – The value to assign to the cool_down_in_seconds property of this AutoScalingPolicy.
  • is_enabled (bool) – The value to assign to the is_enabled property of this AutoScalingPolicy.
  • auto_scaling_policies (list[oci.data_science.models.AutoScalingPolicyDetails]) – The value to assign to the auto_scaling_policies property of this AutoScalingPolicy.
auto_scaling_policies

[Required] Gets the auto_scaling_policies of this AutoScalingPolicy. The list of autoscaling policy details.

Returns:The auto_scaling_policies of this AutoScalingPolicy.
Return type:list[oci.data_science.models.AutoScalingPolicyDetails]
cool_down_in_seconds

Gets the cool_down_in_seconds of this AutoScalingPolicy. For threshold-based autoscaling policies, this value is 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 600 seconds, which is also the default. The cooldown period starts when the model deployment becomes ACTIVE after the scaling operation.

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

is_enabled

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

Returns:The is_enabled of this AutoScalingPolicy.
Return type:bool
policy_type

[Required] Gets the policy_type of this ScalingPolicy. The type of scaling policy.

Allowed values for this property are: “FIXED_SIZE”, “AUTOSCALING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

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