Language

ArmMonitorModelFactory.MonitorScaleAction Method

Definition

The parameters for the scaling action.

public static Azure.ResourceManager.Monitor.Models.MonitorScaleAction MonitorScaleAction(Azure.ResourceManager.Monitor.Models.MonitorScaleDirection direction = Azure.ResourceManager.Monitor.Models.MonitorScaleDirection.None, Azure.ResourceManager.Monitor.Models.MonitorScaleType scaleType = Azure.ResourceManager.Monitor.Models.MonitorScaleType.ChangeCount, string value = default, TimeSpan cooldown = default);
static member MonitorScaleAction : Azure.ResourceManager.Monitor.Models.MonitorScaleDirection * Azure.ResourceManager.Monitor.Models.MonitorScaleType * string * TimeSpan -> Azure.ResourceManager.Monitor.Models.MonitorScaleAction
Public Shared Function MonitorScaleAction (Optional direction As MonitorScaleDirection = Azure.ResourceManager.Monitor.Models.MonitorScaleDirection.None, Optional scaleType As MonitorScaleType = Azure.ResourceManager.Monitor.Models.MonitorScaleType.ChangeCount, Optional value As String = Nothing, Optional cooldown As TimeSpan = Nothing) As MonitorScaleAction

Parameters

direction
MonitorScaleDirection

the scale direction. Whether the scaling action increases or decreases the number of instances.

scaleType
MonitorScaleType

the type of action that should occur when the scale rule fires.

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.

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.

Returns

A new MonitorScaleAction instance for mocking.

Applies to