LocationThresholdRuleConditionResponse

data class LocationThresholdRuleConditionResponse(val dataSource: Either<RuleManagementEventDataSourceResponse, RuleMetricDataSourceResponse>? = null, val failedLocationCount: Int, val odataType: String, val windowSize: String? = null)

A rule condition based on a certain number of locations failing.

Constructors

Link copied to clipboard
constructor(dataSource: Either<RuleManagementEventDataSourceResponse, RuleMetricDataSourceResponse>? = null, failedLocationCount: Int, odataType: String, windowSize: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource.

Link copied to clipboard

the number of locations that must fail to activate the alert.

Link copied to clipboard

specifies the type of condition. This can be one of three types: ManagementEventRuleCondition (occurrences of management events), LocationThresholdRuleCondition (based on the number of failures of a web test), and ThresholdRuleCondition (based on the threshold of a metric). Expected value is 'Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition'.

Link copied to clipboard
val windowSize: String? = null

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.