AddMetricBasedVerticalScalingPolicyDetails

class oci.bds.models.AddMetricBasedVerticalScalingPolicyDetails(**kwargs)

Bases: oci.bds.models.add_auto_scale_policy_details.AddAutoScalePolicyDetails

Details 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_config Gets the scale_down_config of this AddMetricBasedVerticalScalingPolicyDetails.
scale_up_config Gets 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_type attribute of this class is METRIC_BASED_VERTICAL_SCALING_POLICY and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
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