AddMetricBasedVerticalScalingPolicyDetails¶
-
class
oci.bds.models.AddMetricBasedVerticalScalingPolicyDetails(**kwargs)¶ Bases:
oci.bds.models.add_auto_scale_policy_details.AddAutoScalePolicyDetailsDetails of a metric based vertical autoscaling policy.
In a metric-based autoscaling policy, an autoscaling action is triggered when a performance metric exceeds a threshold.
Methods
__init__(**kwargs)Initializes a new AddMetricBasedVerticalScalingPolicyDetails 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. Attributes
policy_type[Required] Gets the policy_type of this AddAutoScalePolicyDetails. scale_down_configGets the scale_down_config of this AddMetricBasedVerticalScalingPolicyDetails. scale_up_configGets the scale_up_config of this AddMetricBasedVerticalScalingPolicyDetails. -
__init__(**kwargs)¶ Initializes a new AddMetricBasedVerticalScalingPolicyDetails object with values from keyword arguments. The default value of the
policy_typeattribute of this class isMETRIC_BASED_VERTICAL_SCALING_POLICYand 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 AddMetricBasedVerticalScalingPolicyDetails.
- scale_up_config (oci.bds.models.MetricBasedVerticalScaleUpConfig) – The value to assign to the scale_up_config property of this AddMetricBasedVerticalScalingPolicyDetails.
- scale_down_config (oci.bds.models.MetricBasedVerticalScaleDownConfig) – The value to assign to the scale_down_config property of this AddMetricBasedVerticalScalingPolicyDetails.
-
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.
-
policy_type¶ [Required] Gets the policy_type of this AddAutoScalePolicyDetails. Type of autoscaling policy.
Returns: The policy_type of this AddAutoScalePolicyDetails. Return type: str
-
scale_down_config¶ Gets the scale_down_config of this AddMetricBasedVerticalScalingPolicyDetails.
Returns: The scale_down_config of this AddMetricBasedVerticalScalingPolicyDetails. Return type: oci.bds.models.MetricBasedVerticalScaleDownConfig
-
scale_up_config¶ Gets the scale_up_config of this AddMetricBasedVerticalScalingPolicyDetails.
Returns: The scale_up_config of this AddMetricBasedVerticalScalingPolicyDetails. Return type: oci.bds.models.MetricBasedVerticalScaleUpConfig
-