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

ManagementEventRuleCondition 构造函数

定义

重载

ManagementEventRuleCondition()

初始化 ManagementEventRuleCondition 类的新实例。

ManagementEventRuleCondition(RuleDataSource, ManagementEventAggregationCondition)

初始化 ManagementEventRuleCondition 类的新实例。

ManagementEventRuleCondition()

初始化 ManagementEventRuleCondition 类的新实例。

public ManagementEventRuleCondition ();
Public Sub New ()

适用于

ManagementEventRuleCondition(RuleDataSource, ManagementEventAggregationCondition)

初始化 ManagementEventRuleCondition 类的新实例。

public ManagementEventRuleCondition (Microsoft.Azure.Management.Monitor.Models.RuleDataSource dataSource = default, Microsoft.Azure.Management.Monitor.Models.ManagementEventAggregationCondition aggregation = default);
new Microsoft.Azure.Management.Monitor.Models.ManagementEventRuleCondition : Microsoft.Azure.Management.Monitor.Models.RuleDataSource * Microsoft.Azure.Management.Monitor.Models.ManagementEventAggregationCondition -> Microsoft.Azure.Management.Monitor.Models.ManagementEventRuleCondition
Public Sub New (Optional dataSource As RuleDataSource = Nothing, Optional aggregation As ManagementEventAggregationCondition = Nothing)

参数

dataSource
RuleDataSource

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

aggregation
ManagementEventAggregationCondition

收集的数据应如何随着时间推移以及警报的激活时间组合在一起。 请注意,对于管理事件警报,聚合是可选的;如果未提供任何聚合,则任何事件都将导致激活警报。

适用于