AddMetricBasedHorizontalScalingPolicyDetails

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

Bases: 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.

property policy_type

[Required] Gets the policy_type of this AddAutoScalePolicyDetails. Type of autoscaling policy.

Returns

The policy_type of this AddAutoScalePolicyDetails.

Return type

str

property 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

property 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