AddMetricBasedHorizontalScalingPolicyDetails

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

Bases: oci.bds.models.add_auto_scale_policy_details.AddAutoScalePolicyDetails

Details of a metric based horizontal 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 AddMetricBasedHorizontalScalingPolicyDetails 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_in_config Gets the scale_in_config of this AddMetricBasedHorizontalScalingPolicyDetails.
scale_out_config Gets the scale_out_config of this AddMetricBasedHorizontalScalingPolicyDetails.
__init__(**kwargs)

Initializes a new AddMetricBasedHorizontalScalingPolicyDetails object with values from keyword arguments. The default value of the policy_type attribute of this class is METRIC_BASED_HORIZONTAL_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_in_config

Gets the scale_in_config of this AddMetricBasedHorizontalScalingPolicyDetails.

Returns:The scale_in_config of this AddMetricBasedHorizontalScalingPolicyDetails.
Return type:oci.bds.models.MetricBasedHorizontalScaleInConfig
scale_out_config

Gets the scale_out_config of this AddMetricBasedHorizontalScalingPolicyDetails.

Returns:The scale_out_config of this AddMetricBasedHorizontalScalingPolicyDetails.
Return type:oci.bds.models.MetricBasedHorizontalScaleOutConfig