ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails¶
- class oci.data_science.models.ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails(**kwargs)¶
Bases:
ManagedComputeClusterAutoScalingPolicyDetailsDetails for a threshold-based autoscaling policy to enable on the managed compute cluster type compute target . In a threshold-based autoscaling policy, an autoscaling action is triggered when a performance metric meets or exceeds a threshold.
Attributes:
A constant which can be used with the auto_scaling_policy_type property of a ManagedComputeClusterAutoScalingPolicyDetails.
[Required] Gets the auto_scaling_policy_type of this ManagedComputeClusterAutoScalingPolicyDetails.
[Required] Gets the initial_instance_count of this ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.
[Required] Gets the maximum_instance_count of this ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.
[Required] Gets the minimum_instance_count of this ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.
[Required] Gets the rules of this ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.
Methods:
__init__(**kwargs)Initializes a new ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails 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.
- AUTO_SCALING_POLICY_TYPE_THRESHOLD = 'THRESHOLD'¶
A constant which can be used with the auto_scaling_policy_type property of a ManagedComputeClusterAutoScalingPolicyDetails. This constant has a value of “THRESHOLD”
- __init__(**kwargs)¶
Initializes a new ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails object with values from keyword arguments. The default value of the
auto_scaling_policy_typeattribute of this class isTHRESHOLDand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
auto_scaling_policy_type (str) – The value to assign to the auto_scaling_policy_type property of this ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails. Allowed values for this property are: “THRESHOLD”
rules (list[oci.data_science.models.ManagedComputeClusterMetricExpressionRule]) – The value to assign to the rules property of this ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.
maximum_instance_count (int) – The value to assign to the maximum_instance_count property of this ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.
minimum_instance_count (int) – The value to assign to the minimum_instance_count property of this ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.
initial_instance_count (int) – The value to assign to the initial_instance_count property of this ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.
- property auto_scaling_policy_type¶
[Required] Gets the auto_scaling_policy_type of this ManagedComputeClusterAutoScalingPolicyDetails. The type of autoscaling policy.
Allowed values for this property are: “THRESHOLD”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The auto_scaling_policy_type of this ManagedComputeClusterAutoScalingPolicyDetails.
- 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 initial_instance_count¶
[Required] Gets the initial_instance_count of this ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails. For a threshold-based autoscaling policy, this value is the initial number of instances to launch in the managed compute cluster type compute target immediately after autoscaling is enabled. Note that anytime this value is updated, the number of instances will be reset to this value. After autoscaling retrieves performance metrics, the number of instances is automatically adjusted from this initial number to a number that is based on the limits that you set.
- Returns
The initial_instance_count of this ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.
- Return type
int
- property maximum_instance_count¶
[Required] Gets the maximum_instance_count of this ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails. For a threshold-based autoscaling policy, this value is the maximum number of instances the managed compute cluster type compute target is allowed to increase to (scale out).
- Returns
The maximum_instance_count of this ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.
- Return type
int
- property minimum_instance_count¶
[Required] Gets the minimum_instance_count of this ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails. For a threshold-based autoscaling policy, this value is the minimum number of instances the managed compute cluster type compute target is allowed to decrease to (scale in).
- Returns
The minimum_instance_count of this ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.
- Return type
int
- property rules¶
[Required] Gets the rules of this ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails. The list of autoscaling policy rules.
- Returns
The rules of this ManagedComputeClusterThresholdBasedAutoScalingPolicyDetails.
- Return type
list[oci.data_science.models.ManagedComputeClusterMetricExpressionRule]