public class ThresholdRuleCondition extends RuleCondition
Constructor and Description |
---|
ThresholdRuleCondition() |
Modifier and Type | Method and Description |
---|---|
ConditionOperator |
operator()
Get the operator used to compare the data and the threshold.
|
double |
threshold()
Get the threshold value that activates the alert.
|
TimeAggregationOperator |
timeAggregation()
Get the time aggregation operator.
|
org.joda.time.Period |
windowSize()
Get 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 used to compare the data and the threshold.
|
ThresholdRuleCondition |
withThreshold(double threshold)
Set the threshold value that activates the alert.
|
ThresholdRuleCondition |
withTimeAggregation(TimeAggregationOperator timeAggregation)
Set the time aggregation operator.
|
ThresholdRuleCondition |
withWindowSize(org.joda.time.Period windowSize)
Set the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.
|
dataSource, withDataSource
public ConditionOperator operator()
public ThresholdRuleCondition withOperator(ConditionOperator operator)
operator
- the operator value to setpublic double threshold()
public ThresholdRuleCondition withThreshold(double threshold)
threshold
- the threshold value to setpublic org.joda.time.Period windowSize()
public ThresholdRuleCondition withWindowSize(org.joda.time.Period windowSize)
windowSize
- the windowSize value to setpublic TimeAggregationOperator timeAggregation()
public ThresholdRuleCondition withTimeAggregation(TimeAggregationOperator timeAggregation)
timeAggregation
- the timeAggregation value to setCopyright © 2019. All rights reserved.