Class LocationThresholdRuleCondition
A rule condition based on a certain number of locations failing.
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Monitor.dll
Syntax
[Newtonsoft.Json.JsonObject("Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition")]
public class LocationThresholdRuleCondition : Microsoft.Azure.Management.Monitor.Models.RuleCondition
Constructors
LocationThresholdRuleCondition()
Initializes a new instance of the LocationThresholdRuleCondition class.
Declaration
public LocationThresholdRuleCondition ();
LocationThresholdRuleCondition(Int32, RuleDataSource, Nullable<TimeSpan>)
Initializes a new instance of the LocationThresholdRuleCondition class.
Declaration
public LocationThresholdRuleCondition (int failedLocationCount, Microsoft.Azure.Management.Monitor.Models.RuleDataSource dataSource = null, Nullable<TimeSpan> windowSize = null);
Parameters
|
Int32
failedLocationCount
the number of locations that must fail to activate the alert. |
|
RuleDataSource
dataSource
the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource. |
|
Nullable<TimeSpan>
windowSize
the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day. |
Properties
FailedLocationCount
Gets or sets the number of locations that must fail to activate the alert.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="failedLocationCount")]
public int FailedLocationCount { get; set; }
Property Value
|
Int32
|
WindowSize
Gets or sets the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="windowSize")]
public Nullable<TimeSpan> WindowSize { get; set; }
Property Value
|
Nullable<TimeSpan>
|
Methods
Validate()
Validate the object.
Declaration
public virtual void Validate ();
Exceptions
|
ValidationException
Thrown if validation fails |