Action

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

Bases: object

The action to take when autoscaling is triggered.

Attributes

TYPE_CHANGE_COUNT_BY A constant which can be used with the type property of a Action.
type [Required] Gets the type of this Action.
value [Required] Gets the value of this Action.

Methods

__init__(**kwargs) Initializes a new Action object with values from keyword arguments.
TYPE_CHANGE_COUNT_BY = 'CHANGE_COUNT_BY'

A constant which can be used with the type property of a Action. This constant has a value of “CHANGE_COUNT_BY”

__init__(**kwargs)

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

Parameters:
  • type (str) – The value to assign to the type property of this Action. Allowed values for this property are: “CHANGE_COUNT_BY”, ‘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 Action.
type

[Required] Gets the type of this Action. The type of action to take.

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

Returns:The type of this Action.
Return type:str
value

[Required] Gets the value of this Action. To scale out (increase the number of instances), provide a positive value. To scale in (decrease the number of instances), provide a negative value.

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