ScaleAction Constructors

Definition

Overloads

ScaleAction()

Initializes a new instance of the ScaleAction class.

ScaleAction(ScaleDirection, ScaleType, TimeSpan, String)

Initializes a new instance of the ScaleAction class.

ScaleAction()

Initializes a new instance of the ScaleAction class.

public ScaleAction ();
Public Sub New ()

Applies to

ScaleAction(ScaleDirection, ScaleType, TimeSpan, String)

Initializes a new instance of the ScaleAction class.

public ScaleAction (Microsoft.Azure.Management.Monitor.Models.ScaleDirection direction, Microsoft.Azure.Management.Monitor.Models.ScaleType type, TimeSpan cooldown, string value = default);
new Microsoft.Azure.Management.Monitor.Models.ScaleAction : Microsoft.Azure.Management.Monitor.Models.ScaleDirection * Microsoft.Azure.Management.Monitor.Models.ScaleType * TimeSpan * string -> Microsoft.Azure.Management.Monitor.Models.ScaleAction
Public Sub New (direction As ScaleDirection, type As ScaleType, cooldown As TimeSpan, Optional value As String = Nothing)

Parameters

direction
ScaleDirection

the scale direction. Whether the scaling action increases or decreases the number of instances. Possible values include: 'None', 'Increase', 'Decrease'

type
ScaleType

the type of action that should occur when the scale rule fires. Possible values include: 'ChangeCount', 'PercentChangeCount', 'ExactCount', 'ServiceAllowedNextValue'

cooldown
TimeSpan

the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format.

value
String

the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1.

Applies to