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

ThresholdRuleCondition 类

定义

基于超过阈值的指标的规则条件。

[Newtonsoft.Json.JsonObject("Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition")]
public class ThresholdRuleCondition : Microsoft.Azure.Management.Monitor.Models.RuleCondition
[<Newtonsoft.Json.JsonObject("Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition")>]
type ThresholdRuleCondition = class
    inherit RuleCondition
Public Class ThresholdRuleCondition
Inherits RuleCondition
继承
ThresholdRuleCondition
属性
Newtonsoft.Json.JsonObjectAttribute

构造函数

ThresholdRuleCondition()

初始化 ThresholdRuleCondition 类的新实例。

ThresholdRuleCondition(ConditionOperator, Double, RuleDataSource, Nullable<TimeSpan>, Nullable<TimeAggregationOperator>)

初始化 ThresholdRuleCondition 类的新实例。

属性

DataSource

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

(继承自 RuleCondition)
OperatorProperty

获取或设置用于比较数据和阈值的运算符。 可能的值包括:“GreaterThan”、“GreaterThanOrEqual”、“LessThan”、“LessThanOrEqual”

Threshold

获取或设置激活警报的阈值。

TimeAggregation

获取或设置时间聚合运算符。 收集的数据应如何随时间推移进行组合。 默认值为 Metric 的 PrimaryAggregationType。 可能的值包括:“Average”、“Minimum”、“Maximum”、“Total”、“Last”

WindowSize

获取或设置 ISO 8601 持续时间格式 (的时间段,) 用于基于阈值监视警报活动。 如果指定,则它必须介于 5 分钟到 1 天之间。

方法

Validate()

验证 对象。

适用于