CreateConditionDetails

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

Bases: object

Creation details for a condition in a threshold-based autoscaling policy.

Methods

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

Attributes

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

Initializes a new CreateConditionDetails 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 CreateConditionDetails.
  • display_name (str) – The value to assign to the display_name property of this CreateConditionDetails.
  • metric (oci.autoscaling.models.Metric) – The value to assign to the metric property of this CreateConditionDetails.
action

[Required] Gets the action of this CreateConditionDetails.

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

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

Returns:The display_name of this CreateConditionDetails.
Return type:str
metric

[Required] Gets the metric of this CreateConditionDetails.

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