RuleCondition Class
- java.
lang. Object - com.
microsoft. azure. management. monitor. RuleCondition
- com.
public class RuleCondition
The condition that results in the alert rule being activated.
Constructor Summary
Constructor | Description | |
---|---|---|
RuleCondition() |
Method Summary
Modifier and Type | Method and Description |
---|---|
Rule |
dataSource()
Get the resource from which the rule collects its data. |
Rule |
withDataSource(RuleDataSource dataSource)
Set the resource from which the rule collects its data. |
Methods inherited from java.lang.Object
Constructor Details
RuleCondition
public RuleCondition()
Method Details
dataSource
public RuleDataSource dataSource()
Get the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
Returns:
withDataSource
public RuleCondition withDataSource(RuleDataSource dataSource)
Set the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for