ThresholdRuleConditionArgs

data class ThresholdRuleConditionArgs(val dataSource: Output<Either<RuleManagementEventDataSourceArgs, RuleMetricDataSourceArgs>>? = null, val odataType: Output<String>, val operator: Output<ConditionOperator>, val threshold: Output<Double>, val timeAggregation: Output<TimeAggregationOperator>? = null, val windowSize: Output<String>? = null) : ConvertibleToJava<ThresholdRuleConditionArgs>

A rule condition based on a metric crossing a threshold.

Constructors

Link copied to clipboard
constructor(dataSource: Output<Either<RuleManagementEventDataSourceArgs, RuleMetricDataSourceArgs>>? = null, odataType: Output<String>, operator: Output<ConditionOperator>, threshold: Output<Double>, timeAggregation: Output<TimeAggregationOperator>? = null, 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
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.ThresholdRuleCondition'.

Link copied to clipboard

the operator used to compare the data and the threshold.

Link copied to clipboard
val threshold: Output<Double>

the threshold value that activates the alert.

Link copied to clipboard

the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric.

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(): ThresholdRuleConditionArgs