public class ThresholdRuleCondition extends RuleCondition
| Constructor and Description |
|---|
ThresholdRuleCondition() |
| Modifier and Type | Method and Description |
|---|---|
ConditionOperator |
operator()
Get the operator property: the operator used to compare the data and the threshold.
|
double |
threshold()
Get the threshold property: the threshold value that activates the alert.
|
TimeAggregationOperator |
timeAggregation()
Get the timeAggregation property: the time aggregation operator.
|
void |
validate()
Validates the instance.
|
Duration |
windowSize()
Get the windowSize property: the period of time (in ISO 8601 duration format) that is used to monitor alert
activity based on the threshold.
|
ThresholdRuleCondition |
withOperator(ConditionOperator operator)
Set the operator property: the operator used to compare the data and the threshold.
|
ThresholdRuleCondition |
withThreshold(double threshold)
Set the threshold property: the threshold value that activates the alert.
|
ThresholdRuleCondition |
withTimeAggregation(TimeAggregationOperator timeAggregation)
Set the timeAggregation property: the time aggregation operator.
|
ThresholdRuleCondition |
withWindowSize(Duration windowSize)
Set the windowSize property: the period of time (in ISO 8601 duration format) that is used to monitor alert
activity based on the threshold.
|
dataSource, withDataSourcepublic ConditionOperator operator()
public ThresholdRuleCondition withOperator(ConditionOperator operator)
operator - the operator value to set.public double threshold()
public ThresholdRuleCondition withThreshold(double threshold)
threshold - the threshold value to set.public Duration windowSize()
public ThresholdRuleCondition withWindowSize(Duration windowSize)
windowSize - the windowSize value to set.public TimeAggregationOperator timeAggregation()
public ThresholdRuleCondition withTimeAggregation(TimeAggregationOperator timeAggregation)
timeAggregation - the timeAggregation value to set.public void validate()
validate in class RuleConditionIllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.