MetricCriteria Constructors

Definition

Overloads

MetricCriteria()

Initializes a new instance of the MetricCriteria class.

MetricCriteria(String, String, String, String, Double, IDictionary<String,Object>, String, IList<MetricDimension>, Nullable<Boolean>)

Initializes a new instance of the MetricCriteria class.

MetricCriteria()

Initializes a new instance of the MetricCriteria class.

public MetricCriteria ();
Public Sub New ()

Applies to

MetricCriteria(String, String, String, String, Double, IDictionary<String,Object>, String, IList<MetricDimension>, Nullable<Boolean>)

Initializes a new instance of the MetricCriteria class.

public MetricCriteria (string name, string metricName, string timeAggregation, string operatorProperty, double threshold, System.Collections.Generic.IDictionary<string,object> additionalProperties = default, string metricNamespace = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.MetricDimension> dimensions = default, bool? skipMetricValidation = default);
new Microsoft.Azure.Management.Monitor.Models.MetricCriteria : string * string * string * string * double * System.Collections.Generic.IDictionary<string, obj> * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.MetricDimension> * Nullable<bool> -> Microsoft.Azure.Management.Monitor.Models.MetricCriteria
Public Sub New (name As String, metricName As String, timeAggregation As String, operatorProperty As String, threshold As Double, Optional additionalProperties As IDictionary(Of String, Object) = Nothing, Optional metricNamespace As String = Nothing, Optional dimensions As IList(Of MetricDimension) = Nothing, Optional skipMetricValidation As Nullable(Of Boolean) = Nothing)

Parameters

name
String

Name of the criteria.

metricName
String

Name of the metric.

timeAggregation
String

the criteria time aggregation types. Possible values include: 'Average', 'Count', 'Minimum', 'Maximum', 'Total'

operatorProperty
String

the criteria operator. Possible values include: 'Equals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual'

threshold
Double

the criteria threshold value that activates the alert.

additionalProperties
IDictionary<String,Object>

Unmatched properties from the message are deserialized this collection

metricNamespace
String

Namespace of the metric.

dimensions
IList<MetricDimension>

List of dimension conditions.

skipMetricValidation
Nullable<Boolean>

Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.

Applies to