Share via


ThresholdRuleCondition Konstruktoren

Definition

Überlädt

ThresholdRuleCondition()

Initialisiert eine neue instance der ThresholdRuleCondition-Klasse.

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

Initialisiert eine neue instance der ThresholdRuleCondition-Klasse.

ThresholdRuleCondition()

Initialisiert eine neue instance der ThresholdRuleCondition-Klasse.

public ThresholdRuleCondition ();
Public Sub New ()

Gilt für:

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

Initialisiert eine neue instance der ThresholdRuleCondition-Klasse.

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)

Parameter

operatorProperty
ConditionOperator

der Operator, der zum Vergleichen der Daten und des Schwellenwerts verwendet wird. Mögliche Werte: "GreaterThan", "GreaterThanOrEqual", "LessThan", "LessThanOrEqual"

threshold
Double

der Schwellenwert, der die Warnung aktiviert.

dataSource
RuleDataSource

die Ressource, aus der die Regel ihre Daten sammelt. Für diesen Typ hat dataSource immer den Typ RuleMetricDataSource.

windowSize
Nullable<TimeSpan>

der Zeitraum (im ISO 8601-Dauerformat), der zum Überwachen der Warnungsaktivität basierend auf dem Schwellenwert verwendet wird. Wenn angegeben, muss es zwischen 5 Minuten und 1 Tag dauern.

timeAggregation
Nullable<TimeAggregationOperator>

der Zeitaggregationsoperator. Wie die gesammelten Daten im Laufe der Zeit kombiniert werden sollen. Der Standardwert ist der PrimaryAggregationType der Metrik. Mögliche Werte: "Average", "Minimum", "Maximum", "Total", "Last"

Gilt für: