public final class TriggerCondition extends Object
| Constructor and Description |
|---|
TriggerCondition() |
| Modifier and Type | Method and Description |
|---|---|
LogMetricTrigger |
metricTrigger()
Get the metricTrigger property: Trigger condition for metric query rule.
|
double |
threshold()
Get the threshold property: Result or count threshold based on which rule should be triggered.
|
ConditionalOperator |
thresholdOperator()
Get the thresholdOperator property: Evaluation operation for rule - 'GreaterThan' or 'LessThan.
|
void |
validate()
Validates the instance.
|
TriggerCondition |
withMetricTrigger(LogMetricTrigger metricTrigger)
Set the metricTrigger property: Trigger condition for metric query rule.
|
TriggerCondition |
withThreshold(double threshold)
Set the threshold property: Result or count threshold based on which rule should be triggered.
|
TriggerCondition |
withThresholdOperator(ConditionalOperator thresholdOperator)
Set the thresholdOperator property: Evaluation operation for rule - 'GreaterThan' or 'LessThan.
|
public ConditionalOperator thresholdOperator()
public TriggerCondition withThresholdOperator(ConditionalOperator thresholdOperator)
thresholdOperator - the thresholdOperator value to set.public double threshold()
public TriggerCondition withThreshold(double threshold)
threshold - the threshold value to set.public LogMetricTrigger metricTrigger()
public TriggerCondition withMetricTrigger(LogMetricTrigger metricTrigger)
metricTrigger - the metricTrigger value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.