Condition

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

Bases: object

A rule that defines a specific autoscaling action to take (scale in or scale out) and the metric that triggers that action.

Methods

__init__(**kwargs) Initializes a new Condition object with values from keyword arguments.

Attributes

action [Required] Gets the action of this Condition.
display_name Gets the display_name of this Condition.
id Gets the id of this Condition.
metric [Required] Gets the metric of this Condition.
__init__(**kwargs)

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

Parameters:
  • action (oci.autoscaling.models.Action) – The value to assign to the action property of this Condition.
  • display_name (str) – The value to assign to the display_name property of this Condition.
  • id (str) – The value to assign to the id property of this Condition.
  • metric (oci.autoscaling.models.Metric) – The value to assign to the metric property of this Condition.
action

[Required] Gets the action of this Condition.

Returns:The action of this Condition.
Return type:oci.autoscaling.models.Action
display_name

Gets the display_name of this Condition. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.

Returns:The display_name of this Condition.
Return type:str
id

Gets the id of this Condition. ID of the condition that is assigned after creation.

Returns:The id of this Condition.
Return type:str
metric

[Required] Gets the metric of this Condition.

Returns:The metric of this Condition.
Return type:oci.autoscaling.models.Metric