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
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.
Azure SDK for .NET