public class TriggerCondition extends Object
Constructor and Description |
---|
TriggerCondition() |
Modifier and Type | Method and Description |
---|---|
LogMetricTrigger |
metricTrigger()
Get trigger condition for metric query rule.
|
double |
threshold()
Get result or count threshold based on which rule should be triggered.
|
ConditionalOperator |
thresholdOperator()
Get evaluation operation for rule - 'GreaterThan' or 'LessThan.
|
TriggerCondition |
withMetricTrigger(LogMetricTrigger metricTrigger)
Set trigger condition for metric query rule.
|
TriggerCondition |
withThreshold(double threshold)
Set result or count threshold based on which rule should be triggered.
|
TriggerCondition |
withThresholdOperator(ConditionalOperator thresholdOperator)
Set evaluation operation for rule - 'GreaterThan' or 'LessThan.
|
public ConditionalOperator thresholdOperator()
public TriggerCondition withThresholdOperator(ConditionalOperator thresholdOperator)
thresholdOperator
- the thresholdOperator value to setpublic double threshold()
public TriggerCondition withThreshold(double threshold)
threshold
- the threshold value to setpublic LogMetricTrigger metricTrigger()
public TriggerCondition withMetricTrigger(LogMetricTrigger metricTrigger)
metricTrigger
- the metricTrigger value to setCopyright © 2019. All rights reserved.