LocationThresholdRuleConditionArgs

data class LocationThresholdRuleConditionArgs(val dataSource: Output<Either<RuleManagementEventDataSourceArgs, RuleMetricDataSourceArgs>>? = null, val failedLocationCount: Output<Int>, val odataType: Output<String>, val windowSize: Output<String>? = null) : ConvertibleToJava<LocationThresholdRuleConditionArgs>

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

Constructors

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

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
val odataType: Output<String>

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: Output<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.

Functions

Link copied to clipboard
open override fun toJava(): LocationThresholdRuleConditionArgs