Class ManagementEventRuleCondition
java.lang.Object
com.microsoft.azure.management.monitor.RuleCondition
com.microsoft.azure.management.monitor.ManagementEventRuleCondition
A management event rule condition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet how the data that is collected should be combined over time and when the alert is activated.withAggregation(ManagementEventAggregationCondition aggregation) Set how the data that is collected should be combined over time and when the alert is activated.Methods inherited from class com.microsoft.azure.management.monitor.RuleCondition
dataSource, withDataSource
-
Constructor Details
-
ManagementEventRuleCondition
public ManagementEventRuleCondition()
-
-
Method Details
-
aggregation
Get 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.- Returns:
- the aggregation value
-
withAggregation
public ManagementEventRuleCondition withAggregation(ManagementEventAggregationCondition aggregation) Set 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.- Parameters:
aggregation- the aggregation value to set- Returns:
- the ManagementEventRuleCondition object itself.
-