Class ScaleAction
The parameters for the scaling action.
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Monitor.dll
Syntax
public class ScaleAction
Constructors
ScaleAction()
Initializes a new instance of the ScaleAction class.
Declaration
public ScaleAction ();
ScaleAction(ScaleDirection, ScaleType, TimeSpan, String)
Initializes a new instance of the ScaleAction class.
Declaration
public ScaleAction (Microsoft.Azure.Management.Monitor.Models.ScaleDirection direction, Microsoft.Azure.Management.Monitor.Models.ScaleType type, TimeSpan cooldown, string value = null);
Parameters
|
ScaleDirection
direction
the scale direction. Whether the scaling action increases or decreases the number of instances. Possible values include: 'None', 'Increase', 'Decrease' |
|
ScaleType
type
the type of action that should occur when the scale rule fires. Possible values include: 'ChangeCount', 'PercentChangeCount', 'ExactCount' |
|
TimeSpan
cooldown
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. |
|
String
value
the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1. |
Properties
Cooldown
Gets or sets 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.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="cooldown")]
public TimeSpan Cooldown { get; set; }
Property Value
|
TimeSpan
|
Direction
Gets or sets the scale direction. Whether the scaling action increases or decreases the number of instances. Possible values include: 'None', 'Increase', 'Decrease'
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="direction")]
public Microsoft.Azure.Management.Monitor.Models.ScaleDirection Direction { get; set; }
Property Value
|
ScaleDirection
|
Type
Gets or sets the type of action that should occur when the scale rule fires. Possible values include: 'ChangeCount', 'PercentChangeCount', 'ExactCount'
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="type")]
public Microsoft.Azure.Management.Monitor.Models.ScaleType Type { get; set; }
Property Value
|
ScaleType
|
Value
Gets or sets the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="value")]
public string Value { get; set; }
Property Value
|
String
|
Methods
Validate()
Validate the object.
Declaration
public virtual void Validate ();
Exceptions
|
ValidationException
Thrown if validation fails |