Threshold

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

Bases: object

Threshold model.

Attributes

OPERATOR_GT A constant which can be used with the operator property of a Threshold.
OPERATOR_GTE A constant which can be used with the operator property of a Threshold.
OPERATOR_LT A constant which can be used with the operator property of a Threshold.
OPERATOR_LTE A constant which can be used with the operator property of a Threshold.
operator [Required] Gets the operator of this Threshold.
value [Required] Gets the value of this Threshold.

Methods

__init__(**kwargs) Initializes a new Threshold object with values from keyword arguments.
OPERATOR_GT = 'GT'

A constant which can be used with the operator property of a Threshold. This constant has a value of “GT”

OPERATOR_GTE = 'GTE'

A constant which can be used with the operator property of a Threshold. This constant has a value of “GTE”

OPERATOR_LT = 'LT'

A constant which can be used with the operator property of a Threshold. This constant has a value of “LT”

OPERATOR_LTE = 'LTE'

A constant which can be used with the operator property of a Threshold. This constant has a value of “LTE”

__init__(**kwargs)

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

Parameters:
  • operator (str) – The value to assign to the operator property of this Threshold. Allowed values for this property are: “GT”, “GTE”, “LT”, “LTE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • value (int) – The value to assign to the value property of this Threshold.
operator

[Required] Gets the operator of this Threshold. The comparison operator to use. Options are greater than (GT), greater than or equal to (GTE), less than (LT), and less than or equal to (LTE).

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

Returns:The operator of this Threshold.
Return type:str
value

[Required] Gets the value of this Threshold.

Returns:The value of this Threshold.
Return type:int