Share via


ThresholdRuleCondition Constructors

Definition

Overloads

ThresholdRuleCondition()

Initializes a new instance of the ThresholdRuleCondition class.

ThresholdRuleCondition(ConditionOperator, Double, RuleDataSource, Nullable<TimeSpan>, Nullable<TimeAggregationOperator>)

Initializes a new instance of the ThresholdRuleCondition class.

ThresholdRuleCondition()

Initializes a new instance of the ThresholdRuleCondition class.

public ThresholdRuleCondition ();
Public Sub New ()

Applies to

ThresholdRuleCondition(ConditionOperator, Double, RuleDataSource, Nullable<TimeSpan>, Nullable<TimeAggregationOperator>)

Initializes a new instance of the ThresholdRuleCondition class.

public ThresholdRuleCondition (Microsoft.Azure.Management.Monitor.Models.ConditionOperator operatorProperty, double threshold, Microsoft.Azure.Management.Monitor.Models.RuleDataSource dataSource = default, TimeSpan? windowSize = default, Microsoft.Azure.Management.Monitor.Models.TimeAggregationOperator? timeAggregation = default);
new Microsoft.Azure.Management.Monitor.Models.ThresholdRuleCondition : Microsoft.Azure.Management.Monitor.Models.ConditionOperator * double * Microsoft.Azure.Management.Monitor.Models.RuleDataSource * Nullable<TimeSpan> * Nullable<Microsoft.Azure.Management.Monitor.Models.TimeAggregationOperator> -> Microsoft.Azure.Management.Monitor.Models.ThresholdRuleCondition
Public Sub New (operatorProperty As ConditionOperator, threshold As Double, Optional dataSource As RuleDataSource = Nothing, Optional windowSize As Nullable(Of TimeSpan) = Nothing, Optional timeAggregation As Nullable(Of TimeAggregationOperator) = Nothing)

Parameters

operatorProperty
ConditionOperator

the operator used to compare the data and the threshold. Possible values include: 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual'

threshold
Double

the threshold value that activates the alert.

dataSource
RuleDataSource

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

windowSize
Nullable<TimeSpan>

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.

timeAggregation
Nullable<TimeAggregationOperator>

the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric. Possible values include: 'Average', 'Minimum', 'Maximum', 'Total', 'Last'

Applies to