Class LogMetricTrigger
- java.lang.Object
-
- com.azure.resourcemanager.monitor.models.LogMetricTrigger
-
public final class LogMetricTrigger extends Object
A log metrics trigger descriptor.
-
-
Constructor Summary
Constructors Constructor Description LogMetricTrigger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringmetricColumn()Get the metricColumn property: Evaluation of metric on a particular column.MetricTriggerTypemetricTriggerType()Get the metricTriggerType property: Metric Trigger Type - 'Consecutive' or 'Total'.Doublethreshold()Get the threshold property: The threshold of the metric trigger.ConditionalOperatorthresholdOperator()Get the thresholdOperator property: Evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'.voidvalidate()Validates the instance.LogMetricTriggerwithMetricColumn(String metricColumn)Set the metricColumn property: Evaluation of metric on a particular column.LogMetricTriggerwithMetricTriggerType(MetricTriggerType metricTriggerType)Set the metricTriggerType property: Metric Trigger Type - 'Consecutive' or 'Total'.LogMetricTriggerwithThreshold(Double threshold)Set the threshold property: The threshold of the metric trigger.LogMetricTriggerwithThresholdOperator(ConditionalOperator thresholdOperator)Set the thresholdOperator property: Evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'.
-
-
-
Method Detail
-
thresholdOperator
public ConditionalOperator thresholdOperator()
Get the thresholdOperator property: Evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'.- Returns:
- the thresholdOperator value.
-
withThresholdOperator
public LogMetricTrigger withThresholdOperator(ConditionalOperator thresholdOperator)
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
public Double threshold()
Get the threshold property: The threshold of the metric trigger.- Returns:
- the threshold value.
-
withThreshold
public LogMetricTrigger withThreshold(Double threshold)
Set the threshold property: The threshold of the metric trigger.- Parameters:
threshold- the threshold value to set.- Returns:
- the LogMetricTrigger object itself.
-
metricTriggerType
public MetricTriggerType metricTriggerType()
Get the metricTriggerType property: Metric Trigger Type - 'Consecutive' or 'Total'.- Returns:
- the metricTriggerType value.
-
withMetricTriggerType
public LogMetricTrigger withMetricTriggerType(MetricTriggerType metricTriggerType)
Set the metricTriggerType property: Metric Trigger Type - 'Consecutive' or 'Total'.- Parameters:
metricTriggerType- the metricTriggerType value to set.- Returns:
- the LogMetricTrigger object itself.
-
metricColumn
public String metricColumn()
Get the metricColumn property: Evaluation of metric on a particular column.- Returns:
- the metricColumn value.
-
withMetricColumn
public LogMetricTrigger withMetricColumn(String metricColumn)
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.
-
-