public class LocationThresholdRuleCondition extends RuleCondition
| Constructor and Description |
|---|
LocationThresholdRuleCondition() |
| Modifier and Type | Method and Description |
|---|---|
int |
failedLocationCount()
Get the failedLocationCount property: the number of locations that must fail to activate the alert.
|
void |
validate()
Validates the instance.
|
Duration |
windowSize()
Get the windowSize property: 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 failedLocationCount property: the number of locations that must fail to activate the alert.
|
LocationThresholdRuleCondition |
withWindowSize(Duration windowSize)
Set the windowSize property: the period of time (in ISO 8601 duration format) that is used to monitor alert
activity based on the threshold.
|
dataSource, withDataSourcepublic Duration windowSize()
public LocationThresholdRuleCondition withWindowSize(Duration windowSize)
windowSize - the windowSize value to set.public int failedLocationCount()
public LocationThresholdRuleCondition withFailedLocationCount(int failedLocationCount)
failedLocationCount - the failedLocationCount value to set.public void validate()
validate in class RuleConditionIllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.