Class MetricCriteria

java.lang.Object
com.microsoft.azure.management.monitor.MultiMetricCriteria
com.microsoft.azure.management.monitor.MetricCriteria

public class MetricCriteria extends MultiMetricCriteria
Criterion to filter metrics.
  • Constructor Details

    • MetricCriteria

      public MetricCriteria()
  • Method Details

    • operator

      public Object operator()
      Get the criteria operator.
      Returns:
      the operator value
    • withOperator

      public MetricCriteria withOperator(Object operator)
      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

      public MetricCriteria withThreshold(double threshold)
      Set the criteria threshold value that activates the alert.
      Parameters:
      threshold - the threshold value to set
      Returns:
      the MetricCriteria object itself.