Class TriggerCondition
java.lang.Object
com.microsoft.azure.management.monitor.TriggerCondition
The condition that results in the Log Search rule.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet trigger condition for metric query rule.double
Get result or count threshold based on which rule should be triggered.Get evaluation operation for rule - 'GreaterThan' or 'LessThan.withMetricTrigger
(LogMetricTrigger metricTrigger) Set trigger condition for metric query rule.withThreshold
(double threshold) Set result or count threshold based on which rule should be triggered.withThresholdOperator
(ConditionalOperator thresholdOperator) Set evaluation operation for rule - 'GreaterThan' or 'LessThan.
-
Constructor Details
-
TriggerCondition
public TriggerCondition()
-
-
Method Details
-
thresholdOperator
Get evaluation operation for rule - 'GreaterThan' or 'LessThan. Possible values include: 'GreaterThan', 'LessThan', 'Equal'.- Returns:
- the thresholdOperator value
-
withThresholdOperator
Set evaluation operation for rule - 'GreaterThan' or 'LessThan. Possible values include: 'GreaterThan', 'LessThan', 'Equal'.- Parameters:
thresholdOperator
- the thresholdOperator value to set- Returns:
- the TriggerCondition object itself.
-
threshold
public double threshold()Get result or count threshold based on which rule should be triggered.- Returns:
- the threshold value
-
withThreshold
Set result or count threshold based on which rule should be triggered.- Parameters:
threshold
- the threshold value to set- Returns:
- the TriggerCondition object itself.
-
metricTrigger
Get trigger condition for metric query rule.- Returns:
- the metricTrigger value
-
withMetricTrigger
Set trigger condition for metric query rule.- Parameters:
metricTrigger
- the metricTrigger value to set- Returns:
- the TriggerCondition object itself.
-