DynamicMetricCriteria(String, String, AggregationType, DynamicThresholdOperator, DynamicThresholdSensitivity, DynamicThresholdFailingPeriods) Constructor

Definition

Initializes a new instance of DynamicMetricCriteria.

public DynamicMetricCriteria (string name, string metricName, Azure.ResourceManager.Insights.Models.AggregationType timeAggregation, Azure.ResourceManager.Insights.Models.DynamicThresholdOperator operator, Azure.ResourceManager.Insights.Models.DynamicThresholdSensitivity alertSensitivity, Azure.ResourceManager.Insights.Models.DynamicThresholdFailingPeriods failingPeriods);
new Azure.ResourceManager.Insights.Models.DynamicMetricCriteria : string * string * Azure.ResourceManager.Insights.Models.AggregationType * Azure.ResourceManager.Insights.Models.DynamicThresholdOperator * Azure.ResourceManager.Insights.Models.DynamicThresholdSensitivity * Azure.ResourceManager.Insights.Models.DynamicThresholdFailingPeriods -> Azure.ResourceManager.Insights.Models.DynamicMetricCriteria
Public Sub New (name As String, metricName As String, timeAggregation As AggregationType, operator As DynamicThresholdOperator, alertSensitivity As DynamicThresholdSensitivity, failingPeriods As DynamicThresholdFailingPeriods)

Parameters

name
System.String

Name of the criteria.

metricName
System.String

Name of the metric.

timeAggregation
AggregationType

the criteria time aggregation types.

operator
DynamicThresholdOperator

The operator used to compare the metric value against the threshold.

alertSensitivity
DynamicThresholdSensitivity

The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.

failingPeriods
DynamicThresholdFailingPeriods

The minimum number of violations required within the selected lookback time window required to raise an alert.

Exceptions

System.ArgumentNullException

name, metricName, or failingPeriods is null.

Applies to