你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

LocationThresholdRuleCondition 构造函数

定义

重载

LocationThresholdRuleCondition()

初始化 LocationThresholdRuleCondition 类的新实例。

LocationThresholdRuleCondition(Int32, RuleDataSource, Nullable<TimeSpan>)

初始化 LocationThresholdRuleCondition 类的新实例。

LocationThresholdRuleCondition()

初始化 LocationThresholdRuleCondition 类的新实例。

public LocationThresholdRuleCondition ();
Public Sub New ()

适用于

LocationThresholdRuleCondition(Int32, RuleDataSource, Nullable<TimeSpan>)

初始化 LocationThresholdRuleCondition 类的新实例。

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)

参数

failedLocationCount
Int32

必须无法激活警报的位置数。

dataSource
RuleDataSource

规则从中收集数据的资源。 对于此类型,dataSource 将始终为 RuleMetricDataSource 类型。

windowSize
Nullable<TimeSpan>

iso 8601 持续时间格式 (的时间段) ,用于根据阈值监视警报活动。 如果指定,则它必须介于 5 分钟到 1 天之间。

适用于