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 Summary
Constructors Constructor Description LocationThresholdRuleCondition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intfailedLocationCount()Get the number of locations that must fail to activate the alert.org.joda.time.PeriodwindowSize()Get the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.LocationThresholdRuleConditionwithFailedLocationCount(int failedLocationCount)Set the number of locations that must fail to activate the alert.LocationThresholdRuleConditionwithWindowSize(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.-
Methods inherited from class com.microsoft.azure.management.monitor.RuleCondition
dataSource, withDataSource
-
-
-
-
Method Detail
-
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.
-
-