Dela via


LocationThresholdRuleCondition Constructors

Definition

Overloads

LocationThresholdRuleCondition()

Initializes a new instance of the LocationThresholdRuleCondition class.

LocationThresholdRuleCondition(Int32, RuleDataSource, Nullable<TimeSpan>)

Initializes a new instance of the LocationThresholdRuleCondition class.

LocationThresholdRuleCondition()

Initializes a new instance of the LocationThresholdRuleCondition class.

public LocationThresholdRuleCondition ();
Public Sub New ()

Applies to

LocationThresholdRuleCondition(Int32, RuleDataSource, Nullable<TimeSpan>)

Initializes a new instance of the LocationThresholdRuleCondition class.

public LocationThresholdRuleCondition (int failedLocationCount, Microsoft.Azure.Management.Monitor.Models.RuleDataSource dataSource = default, TimeSpan? windowSize = default);
new Microsoft.Azure.Management.Monitor.Models.LocationThresholdRuleCondition : int * Microsoft.Azure.Management.Monitor.Models.RuleDataSource * Nullable<TimeSpan> -> Microsoft.Azure.Management.Monitor.Models.LocationThresholdRuleCondition
Public Sub New (failedLocationCount As Integer, Optional dataSource As RuleDataSource = Nothing, Optional windowSize As Nullable(Of TimeSpan) = Nothing)

Parameters

failedLocationCount
Int32

the number of locations that must fail to activate the alert.

dataSource
RuleDataSource

the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.

windowSize
Nullable<TimeSpan>

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.

Applies to