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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET