Metric

class oci.autoscaling.models.Metric(**kwargs)

Bases: object

Metric and threshold details for triggering an autoscaling action.

Attributes

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

Methods

__init__(**kwargs) Initializes a new Metric 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 Metric. This constant has a value of “CPU_UTILIZATION”

METRIC_TYPE_MEMORY_UTILIZATION = 'MEMORY_UTILIZATION'

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

__init__(**kwargs)

Initializes a new Metric 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 Metric. Allowed values for this property are: “CPU_UTILIZATION”, “MEMORY_UTILIZATION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • threshold (oci.autoscaling.models.Threshold) – The value to assign to the threshold property of this Metric.
metric_type

[Required] Gets the metric_type of this Metric. Allowed values for this property are: “CPU_UTILIZATION”, “MEMORY_UTILIZATION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

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

[Required] Gets the threshold of this Metric.

Returns:The threshold of this Metric.
Return type:oci.autoscaling.models.Threshold