public class LocationThresholdRuleCondition extends RuleCondition
Constructor and Description |
---|
LocationThresholdRuleCondition() |
Modifier and Type | Method and Description |
---|---|
int |
failedLocationCount()
Get the number of locations that must fail to activate the alert.
|
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.
|
LocationThresholdRuleCondition |
withFailedLocationCount(int failedLocationCount)
Set the number of locations that must fail to activate the alert.
|
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.
|
dataSource, withDataSource
public org.joda.time.Period windowSize()
public LocationThresholdRuleCondition withWindowSize(org.joda.time.Period windowSize)
windowSize
- the windowSize value to setpublic int failedLocationCount()
public LocationThresholdRuleCondition withFailedLocationCount(int failedLocationCount)
failedLocationCount
- the failedLocationCount value to setCopyright © 2019. All rights reserved.