你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
LocationThresholdRuleCondition 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
基于一定数量的位置失败的规则条件。
[Newtonsoft.Json.JsonObject("Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition")]
public class LocationThresholdRuleCondition : Microsoft.Azure.Management.Monitor.Models.RuleCondition
[<Newtonsoft.Json.JsonObject("Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition")>]
type LocationThresholdRuleCondition = class
inherit RuleCondition
Public Class LocationThresholdRuleCondition
Inherits RuleCondition
- 继承
- 属性
-
Newtonsoft.Json.JsonObjectAttribute
构造函数
LocationThresholdRuleCondition() |
初始化 LocationThresholdRuleCondition 类的新实例。 |
LocationThresholdRuleCondition(Int32, RuleDataSource, Nullable<TimeSpan>) |
初始化 LocationThresholdRuleCondition 类的新实例。 |
属性
DataSource |
获取或设置规则从中收集数据的资源。 对于此类型,dataSource 将始终为 RuleMetricDataSource 类型。 (继承自 RuleCondition) |
FailedLocationCount |
获取或设置必须无法激活警报的位置数。 |
WindowSize |
获取或设置以 ISO 8601 持续时间格式 (的时间段,) 用于根据阈值监视警报活动。 如果指定,则它必须介于 5 分钟到 1 天之间。 |
方法
Validate() |
验证 对象。 |