AutoScalePolicyMetricRule

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

Bases: object

Metric and threshold details for triggering an autoscale action.

Attributes

METRIC_TYPE_CPU_UTILIZATION A constant which can be used with the metric_type property of a AutoScalePolicyMetricRule.
metric_type [Required] Gets the metric_type of this AutoScalePolicyMetricRule.
threshold [Required] Gets the threshold of this AutoScalePolicyMetricRule.

Methods

__init__(**kwargs) Initializes a new AutoScalePolicyMetricRule object with values from keyword arguments.
METRIC_TYPE_CPU_UTILIZATION = 'CPU_UTILIZATION'

A constant which can be used with the metric_type property of a AutoScalePolicyMetricRule. This constant has a value of “CPU_UTILIZATION”

__init__(**kwargs)

Initializes a new AutoScalePolicyMetricRule object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • metric_type (str) – The value to assign to the metric_type property of this AutoScalePolicyMetricRule. Allowed values for this property are: “CPU_UTILIZATION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • threshold (oci.bds.models.MetricThresholdRule) – The value to assign to the threshold property of this AutoScalePolicyMetricRule.
metric_type

[Required] Gets the metric_type of this AutoScalePolicyMetricRule. Allowed value is CPU_UTILIZATION.

Allowed values for this property are: “CPU_UTILIZATION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The metric_type of this AutoScalePolicyMetricRule.
Return type:str
threshold

[Required] Gets the threshold of this AutoScalePolicyMetricRule.

Returns:The threshold of this AutoScalePolicyMetricRule.
Return type:oci.bds.models.MetricThresholdRule