Class RuleCondition
java.lang.Object
com.microsoft.azure.management.monitor.RuleCondition
- Direct Known Subclasses:
LocationThresholdRuleCondition
,ManagementEventRuleCondition
,ThresholdRuleCondition
The condition that results in the alert rule being activated.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the resource from which the rule collects its data.withDataSource
(RuleDataSource dataSource) Set the resource from which the rule collects its data.
-
Constructor Details
-
RuleCondition
public RuleCondition()
-
-
Method Details
-
dataSource
Get the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.- Returns:
- the dataSource value
-
withDataSource
Set the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.- Parameters:
dataSource
- the dataSource value to set- Returns:
- the RuleCondition object itself.
-