Class ScaleRule
A rule that provide the triggers and parameters for the scaling action.
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Monitor.dll
Syntax
public class ScaleRule
Constructors
ScaleRule()
Initializes a new instance of the ScaleRule class.
Declaration
public ScaleRule ();
ScaleRule(MetricTrigger, ScaleAction)
Initializes a new instance of the ScaleRule class.
Declaration
public ScaleRule (Microsoft.Azure.Management.Monitor.Models.MetricTrigger metricTrigger, Microsoft.Azure.Management.Monitor.Models.ScaleAction scaleAction);
Parameters
|
MetricTrigger
metricTrigger
the trigger that results in a scaling action. |
|
ScaleAction
scaleAction
the parameters for the scaling action. |
Properties
MetricTrigger
Gets or sets the trigger that results in a scaling action.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="metricTrigger")]
public Microsoft.Azure.Management.Monitor.Models.MetricTrigger MetricTrigger { get; set; }
Property Value
|
MetricTrigger
|
ScaleAction
Gets or sets the parameters for the scaling action.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="scaleAction")]
public Microsoft.Azure.Management.Monitor.Models.ScaleAction ScaleAction { get; set; }
Property Value
|
ScaleAction
|
Methods
Validate()
Validate the object.
Declaration
public virtual void Validate ();
Exceptions
|
ValidationException
Thrown if validation fails |