Class LogMetricTrigger
- java.lang.Object
-
- com.microsoft.azure.management.monitor.LogMetricTrigger
-
public 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 evaluation of metric on a particular column.MetricTriggerTypemetricTriggerType()Get metric Trigger Type - 'Consecutive' or 'Total'.Doublethreshold()Get the threshold of the metric trigger.ConditionalOperatorthresholdOperator()Get evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'.LogMetricTriggerwithMetricColumn(String metricColumn)Set evaluation of metric on a particular column.LogMetricTriggerwithMetricTriggerType(MetricTriggerType metricTriggerType)Set metric Trigger Type - 'Consecutive' or 'Total'.LogMetricTriggerwithThreshold(Double threshold)Set the threshold of the metric trigger.LogMetricTriggerwithThresholdOperator(ConditionalOperator thresholdOperator)Set evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'.
-
-
-
Method Detail
-
thresholdOperator
public ConditionalOperator thresholdOperator()
Get evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'. Possible values include: 'GreaterThan', 'LessThan', 'Equal'.- Returns:
- the thresholdOperator value
-
withThresholdOperator
public LogMetricTrigger withThresholdOperator(ConditionalOperator thresholdOperator)
Set evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'. Possible values include: 'GreaterThan', 'LessThan', 'Equal'.- Parameters:
thresholdOperator- the thresholdOperator value to set- Returns:
- the LogMetricTrigger object itself.
-
threshold
public Double threshold()
Get the threshold of the metric trigger.- Returns:
- the threshold value
-
withThreshold
public LogMetricTrigger withThreshold(Double threshold)
Set the threshold of the metric trigger.- Parameters:
threshold- the threshold value to set- Returns:
- the LogMetricTrigger object itself.
-
metricTriggerType
public MetricTriggerType metricTriggerType()
Get metric Trigger Type - 'Consecutive' or 'Total'. Possible values include: 'Consecutive', 'Total'.- Returns:
- the metricTriggerType value
-
withMetricTriggerType
public LogMetricTrigger withMetricTriggerType(MetricTriggerType metricTriggerType)
Set metric Trigger Type - 'Consecutive' or 'Total'. Possible values include: 'Consecutive', 'Total'.- Parameters:
metricTriggerType- the metricTriggerType value to set- Returns:
- the LogMetricTrigger object itself.
-
metricColumn
public String metricColumn()
Get evaluation of metric on a particular column.- Returns:
- the metricColumn value
-
withMetricColumn
public LogMetricTrigger withMetricColumn(String metricColumn)
Set evaluation of metric on a particular column.- Parameters:
metricColumn- the metricColumn value to set- Returns:
- the LogMetricTrigger object itself.
-
-