UpdateMetricBasedVerticalScalingPolicyDetails

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

Bases: oci.bds.models.update_auto_scale_policy_details.UpdateAutoScalePolicyDetails

Update 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 UpdateMetricBasedVerticalScalingPolicyDetails 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 UpdateAutoScalePolicyDetails.
scale_down_config Gets the scale_down_config of this UpdateMetricBasedVerticalScalingPolicyDetails.
scale_up_config Gets the scale_up_config of this UpdateMetricBasedVerticalScalingPolicyDetails.
__init__(**kwargs)

Initializes a new UpdateMetricBasedVerticalScalingPolicyDetails 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:
  • policy_type (str) – The value to assign to the policy_type property of this UpdateMetricBasedVerticalScalingPolicyDetails.
  • scale_up_config (oci.bds.models.MetricBasedVerticalScaleUpConfig) – The value to assign to the scale_up_config property of this UpdateMetricBasedVerticalScalingPolicyDetails.
  • scale_down_config (oci.bds.models.MetricBasedVerticalScaleDownConfig) – The value to assign to the scale_down_config property of this UpdateMetricBasedVerticalScalingPolicyDetails.
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 UpdateAutoScalePolicyDetails. Type of autoscaling policy.

Returns:The policy_type of this UpdateAutoScalePolicyDetails.
Return type:str
scale_down_config

Gets the scale_down_config of this UpdateMetricBasedVerticalScalingPolicyDetails.

Returns:The scale_down_config of this UpdateMetricBasedVerticalScalingPolicyDetails.
Return type:oci.bds.models.MetricBasedVerticalScaleDownConfig
scale_up_config

Gets the scale_up_config of this UpdateMetricBasedVerticalScalingPolicyDetails.

Returns:The scale_up_config of this UpdateMetricBasedVerticalScalingPolicyDetails.
Return type:oci.bds.models.MetricBasedVerticalScaleUpConfig