Class TriggerCondition
java.lang.Object
com.azure.resourcemanager.monitor.models.TriggerCondition
The condition that results in the Log Search rule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the metricTrigger property: Trigger condition for metric query rule.doubleGet the threshold property: Result or count threshold based on which rule should be triggered.Get the thresholdOperator property: Evaluation operation for rule - 'GreaterThan' or 'LessThan.voidvalidate()Validates the instance.withMetricTrigger(LogMetricTrigger metricTrigger) Set the metricTrigger property: Trigger condition for metric query rule.withThreshold(double threshold) Set the threshold property: Result or count threshold based on which rule should be triggered.withThresholdOperator(ConditionalOperator thresholdOperator) Set the thresholdOperator property: Evaluation operation for rule - 'GreaterThan' or 'LessThan.
-
Constructor Details
-
TriggerCondition
public TriggerCondition()
-
-
Method Details
-
thresholdOperator
Get the thresholdOperator property: Evaluation operation for rule - 'GreaterThan' or 'LessThan.- Returns:
- the thresholdOperator value.
-
withThresholdOperator
Set the thresholdOperator property: Evaluation operation for rule - 'GreaterThan' or 'LessThan.- Parameters:
thresholdOperator- the thresholdOperator value to set.- Returns:
- the TriggerCondition object itself.
-
threshold
public double threshold()Get the threshold property: Result or count threshold based on which rule should be triggered.- Returns:
- the threshold value.
-
withThreshold
Set the threshold property: 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 the metricTrigger property: Trigger condition for metric query rule.- Returns:
- the metricTrigger value.
-
withMetricTrigger
Set the metricTrigger property: Trigger condition for metric query rule.- Parameters:
metricTrigger- the metricTrigger value to set.- Returns:
- the TriggerCondition object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-