Class LogMetricTrigger
java.lang.Object
com.azure.resourcemanager.monitor.models.LogMetricTrigger
A log metrics trigger descriptor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the metricColumn property: Evaluation of metric on a particular column.Get the metricTriggerType property: Metric Trigger Type - 'Consecutive' or 'Total'.Get the threshold property: The threshold of the metric trigger.Get the thresholdOperator property: Evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'.voidvalidate()Validates the instance.withMetricColumn(String metricColumn) Set the metricColumn property: Evaluation of metric on a particular column.withMetricTriggerType(MetricTriggerType metricTriggerType) Set the metricTriggerType property: Metric Trigger Type - 'Consecutive' or 'Total'.withThreshold(Double threshold) Set the threshold property: The threshold of the metric trigger.withThresholdOperator(ConditionalOperator thresholdOperator) Set the thresholdOperator property: Evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'.
-
Constructor Details
-
LogMetricTrigger
public LogMetricTrigger()
-
-
Method Details
-
thresholdOperator
Get the thresholdOperator property: Evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'.- Returns:
- the thresholdOperator value.
-
withThresholdOperator
Set the thresholdOperator property: Evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'.- Parameters:
thresholdOperator- the thresholdOperator value to set.- Returns:
- the LogMetricTrigger object itself.
-
threshold
Get the threshold property: The threshold of the metric trigger.- Returns:
- the threshold value.
-
withThreshold
Set the threshold property: The threshold of the metric trigger.- Parameters:
threshold- the threshold value to set.- Returns:
- the LogMetricTrigger object itself.
-
metricTriggerType
Get the metricTriggerType property: Metric Trigger Type - 'Consecutive' or 'Total'.- Returns:
- the metricTriggerType value.
-
withMetricTriggerType
Set the metricTriggerType property: Metric Trigger Type - 'Consecutive' or 'Total'.- Parameters:
metricTriggerType- the metricTriggerType value to set.- Returns:
- the LogMetricTrigger object itself.
-
metricColumn
Get the metricColumn property: Evaluation of metric on a particular column.- Returns:
- the metricColumn value.
-
withMetricColumn
Set the metricColumn property: Evaluation of metric on a particular column.- Parameters:
metricColumn- the metricColumn value to set.- Returns:
- the LogMetricTrigger object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-