### YamlMime:JavaType uid: "com.microsoft.azure.management.monitor.LocationThresholdRuleCondition" fullName: "com.microsoft.azure.management.monitor.LocationThresholdRuleCondition" name: "LocationThresholdRuleCondition" nameWithType: "LocationThresholdRuleCondition" summary: "A rule condition based on a certain number of locations failing." inheritances: - "" - "" inheritedClassMethods: - classRef: "" methodsRef: - "" - "" - classRef: "" methodsRef: - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" syntax: "public class **LocationThresholdRuleCondition**
extends " constructors: - uid: "com.microsoft.azure.management.monitor.LocationThresholdRuleCondition.LocationThresholdRuleCondition()" fullName: "com.microsoft.azure.management.monitor.LocationThresholdRuleCondition.LocationThresholdRuleCondition()" name: "LocationThresholdRuleCondition()" nameWithType: "LocationThresholdRuleCondition.LocationThresholdRuleCondition()" syntax: "public LocationThresholdRuleCondition()" methods: - uid: "com.microsoft.azure.management.monitor.LocationThresholdRuleCondition.failedLocationCount()" fullName: "com.microsoft.azure.management.monitor.LocationThresholdRuleCondition.failedLocationCount()" name: "failedLocationCount()" nameWithType: "LocationThresholdRuleCondition.failedLocationCount()" summary: "Get the number of locations that must fail to activate the alert." syntax: "public int failedLocationCount()" desc: "Get the number of locations that must fail to activate the alert." returns: description: "the failedLocationCount value" type: "" - uid: "com.microsoft.azure.management.monitor.LocationThresholdRuleCondition.windowSize()" fullName: "com.microsoft.azure.management.monitor.LocationThresholdRuleCondition.windowSize()" name: "windowSize()" nameWithType: "LocationThresholdRuleCondition.windowSize()" summary: "Get the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold." syntax: "public Period windowSize()" desc: "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: description: "the windowSize value" type: "" - uid: "com.microsoft.azure.management.monitor.LocationThresholdRuleCondition.withFailedLocationCount(int)" fullName: "com.microsoft.azure.management.monitor.LocationThresholdRuleCondition.withFailedLocationCount(int failedLocationCount)" name: "withFailedLocationCount(int failedLocationCount)" nameWithType: "LocationThresholdRuleCondition.withFailedLocationCount(int failedLocationCount)" summary: "Set the number of locations that must fail to activate the alert." parameters: - description: "the failedLocationCount value to set" name: "failedLocationCount" type: "" syntax: "public LocationThresholdRuleCondition withFailedLocationCount(int failedLocationCount)" desc: "Set the number of locations that must fail to activate the alert." returns: description: "the LocationThresholdRuleCondition object itself." type: "" - uid: "com.microsoft.azure.management.monitor.LocationThresholdRuleCondition.withWindowSize(org.joda.time.Period)" fullName: "com.microsoft.azure.management.monitor.LocationThresholdRuleCondition.withWindowSize(Period windowSize)" name: "withWindowSize(Period windowSize)" nameWithType: "LocationThresholdRuleCondition.withWindowSize(Period windowSize)" summary: "Set the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold." parameters: - description: "the windowSize value to set" name: "windowSize" type: "" syntax: "public LocationThresholdRuleCondition withWindowSize(Period windowSize)" desc: "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." returns: description: "the LocationThresholdRuleCondition object itself." type: "" type: "class" desc: "A rule condition based on a certain number of locations failing." metadata: {} package: "com.microsoft.azure.management.monitor" artifact: com.microsoft.azure:azure-mgmt-monitor:1.41.4