ManagementEventRuleCondition Class

A management event rule condition.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.monitor.v2015_04_01.models._models_py3.RuleCondition
ManagementEventRuleCondition

Constructor

ManagementEventRuleCondition(*, data_source: Optional[azure.mgmt.monitor.v2015_04_01.models._models_py3.RuleDataSource] = None, aggregation: Optional[azure.mgmt.monitor.v2015_04_01.models._models_py3.ManagementEventAggregationCondition] = None, **kwargs)

Variables

odata_type
str

Required. specifies the type of condition. This can be one of three types: ManagementEventRuleCondition (occurrences of management events), LocationThresholdRuleCondition (based on the number of failures of a web test), and ThresholdRuleCondition (based on the threshold of a metric).Constant filled by server.

data_source
<xref:$>(<xref:python-base-namespace>)RuleDataSource

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

aggregation
<xref:$>(<xref:python-base-namespace>)ManagementEventAggregationCondition

How the data that is collected should be combined over time and when the alert is activated. Note that for management event alerts aggregation is optional – if it is not provided then any event will cause the alert to activate.