MetricCriteria Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Azure SDK for .NET