Sdílet prostřednictvím


MetricCriteria Constructor

Definition

Initializes a new instance of MetricCriteria.

public MetricCriteria (string name, string metricName, Azure.ResourceManager.Monitor.Models.MetricCriteriaTimeAggregationType timeAggregation, Azure.ResourceManager.Monitor.Models.MetricCriteriaOperator operator, double threshold);
new Azure.ResourceManager.Monitor.Models.MetricCriteria : string * string * Azure.ResourceManager.Monitor.Models.MetricCriteriaTimeAggregationType * Azure.ResourceManager.Monitor.Models.MetricCriteriaOperator * double -> Azure.ResourceManager.Monitor.Models.MetricCriteria
Public Sub New (name As String, metricName As String, timeAggregation As MetricCriteriaTimeAggregationType, operator As MetricCriteriaOperator, threshold As Double)

Parameters

name
String

Name of the criteria.

metricName
String

Name of the metric.

timeAggregation
MetricCriteriaTimeAggregationType

the criteria time aggregation types.

operator
MetricCriteriaOperator

the criteria operator.

threshold
Double

the criteria threshold value that activates the alert.

Exceptions

name or metricName is null.

Applies to