Class LocationThresholdRuleCondition

java.lang.Object
com.microsoft.azure.management.monitor.RuleCondition
com.microsoft.azure.management.monitor.LocationThresholdRuleCondition

public class LocationThresholdRuleCondition extends RuleCondition
A rule condition based on a certain number of locations failing.
  • Constructor Details

    • LocationThresholdRuleCondition

      public LocationThresholdRuleCondition()
  • Method Details

    • windowSize

      public org.joda.time.Period windowSize()
      Get the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
      Returns:
      the windowSize value
    • withWindowSize

      public LocationThresholdRuleCondition withWindowSize(org.joda.time.Period windowSize)
      Set the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day.
      Parameters:
      windowSize - the windowSize value to set
      Returns:
      the LocationThresholdRuleCondition object itself.
    • failedLocationCount

      public int failedLocationCount()
      Get the number of locations that must fail to activate the alert.
      Returns:
      the failedLocationCount value
    • withFailedLocationCount

      public LocationThresholdRuleCondition withFailedLocationCount(int failedLocationCount)
      Set the number of locations that must fail to activate the alert.
      Parameters:
      failedLocationCount - the failedLocationCount value to set
      Returns:
      the LocationThresholdRuleCondition object itself.