Class MetricCriteria
java.lang.Object
com.microsoft.azure.management.monitor.MultiMetricCriteria
com.microsoft.azure.management.monitor.MetricCriteria
Criterion to filter metrics.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionoperator()
Get the criteria operator.double
Get the criteria threshold value that activates the alert.withOperator
(Object operator) Set the criteria operator.withThreshold
(double threshold) Set the criteria threshold value that activates the alert.Methods inherited from class com.microsoft.azure.management.monitor.MultiMetricCriteria
additionalProperties, dimensions, metricName, metricNamespace, name, timeAggregation, withAdditionalProperties, withDimensions, withMetricName, withMetricNamespace, withName, withTimeAggregation
-
Constructor Details
-
MetricCriteria
public MetricCriteria()
-
-
Method Details
-
operator
Get the criteria operator.- Returns:
- the operator value
-
withOperator
Set the criteria operator.- Parameters:
operator
- the operator value to set- Returns:
- the MetricCriteria object itself.
-
threshold
public double threshold()Get the criteria threshold value that activates the alert.- Returns:
- the threshold value
-
withThreshold
Set the criteria threshold value that activates the alert.- Parameters:
threshold
- the threshold value to set- Returns:
- the MetricCriteria object itself.
-