Class LocationThresholdRuleCondition
java.lang.Object
com.microsoft.azure.management.monitor.RuleCondition
com.microsoft.azure.management.monitor.LocationThresholdRuleCondition
A rule condition based on a certain number of locations failing.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the number of locations that must fail to activate the alert.org.joda.time.Period
Get the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.withFailedLocationCount
(int failedLocationCount) Set the number of locations that must fail to activate the alert.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.Methods inherited from class com.microsoft.azure.management.monitor.RuleCondition
dataSource, withDataSource
-
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
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
Set the number of locations that must fail to activate the alert.- Parameters:
failedLocationCount
- the failedLocationCount value to set- Returns:
- the LocationThresholdRuleCondition object itself.
-