Class DynamicMetricCriteria

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

public class DynamicMetricCriteria extends MultiMetricCriteria
Criterion for dynamic threshold.
  • Constructor Details

    • DynamicMetricCriteria

      public DynamicMetricCriteria()
  • Method Details

    • operator

      public Object operator()
      Get the operator used to compare the metric value against the threshold.
      Returns:
      the operator value
    • withOperator

      public DynamicMetricCriteria withOperator(Object operator)
      Set the operator used to compare the metric value against the threshold.
      Parameters:
      operator - the operator value to set
      Returns:
      the DynamicMetricCriteria object itself.
    • alertSensitivity

      public Object alertSensitivity()
      Get the extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.
      Returns:
      the alertSensitivity value
    • withAlertSensitivity

      public DynamicMetricCriteria withAlertSensitivity(Object alertSensitivity)
      Set the extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.
      Parameters:
      alertSensitivity - the alertSensitivity value to set
      Returns:
      the DynamicMetricCriteria object itself.
    • failingPeriods

      public DynamicThresholdFailingPeriods failingPeriods()
      Get the minimum number of violations required within the selected lookback time window required to raise an alert.
      Returns:
      the failingPeriods value
    • withFailingPeriods

      public DynamicMetricCriteria withFailingPeriods(DynamicThresholdFailingPeriods failingPeriods)
      Set the minimum number of violations required within the selected lookback time window required to raise an alert.
      Parameters:
      failingPeriods - the failingPeriods value to set
      Returns:
      the DynamicMetricCriteria object itself.
    • ignoreDataBefore

      public org.joda.time.DateTime ignoreDataBefore()
      Get use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format).
      Returns:
      the ignoreDataBefore value
    • withIgnoreDataBefore

      public DynamicMetricCriteria withIgnoreDataBefore(org.joda.time.DateTime ignoreDataBefore)
      Set use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format).
      Parameters:
      ignoreDataBefore - the ignoreDataBefore value to set
      Returns:
      the DynamicMetricCriteria object itself.