Udostępnij za pośrednictwem


DynamicMetricCriteria Constructors

Definition

Overloads

DynamicMetricCriteria()

Initializes a new instance of the DynamicMetricCriteria class.

DynamicMetricCriteria(String, String, String, String, String, DynamicThresholdFailingPeriods, IDictionary<String,Object>, String, IList<MetricDimension>, Nullable<Boolean>, Nullable<DateTime>)

Initializes a new instance of the DynamicMetricCriteria class.

DynamicMetricCriteria()

Initializes a new instance of the DynamicMetricCriteria class.

public DynamicMetricCriteria ();
Public Sub New ()

Applies to

DynamicMetricCriteria(String, String, String, String, String, DynamicThresholdFailingPeriods, IDictionary<String,Object>, String, IList<MetricDimension>, Nullable<Boolean>, Nullable<DateTime>)

Initializes a new instance of the DynamicMetricCriteria class.

public DynamicMetricCriteria (string name, string metricName, string timeAggregation, string operatorProperty, string alertSensitivity, Microsoft.Azure.Management.Monitor.Models.DynamicThresholdFailingPeriods failingPeriods, 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, DateTime? ignoreDataBefore = default);
new Microsoft.Azure.Management.Monitor.Models.DynamicMetricCriteria : string * string * string * string * string * Microsoft.Azure.Management.Monitor.Models.DynamicThresholdFailingPeriods * System.Collections.Generic.IDictionary<string, obj> * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.MetricDimension> * Nullable<bool> * Nullable<DateTime> -> Microsoft.Azure.Management.Monitor.Models.DynamicMetricCriteria
Public Sub New (name As String, metricName As String, timeAggregation As String, operatorProperty As String, alertSensitivity As String, failingPeriods As DynamicThresholdFailingPeriods, 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, Optional ignoreDataBefore As Nullable(Of DateTime) = 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 operator used to compare the metric value against the threshold. Possible values include: 'GreaterThan', 'LessThan', 'GreaterOrLessThan'

alertSensitivity
String

The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern. Possible values include: 'Low', 'Medium', 'High'

failingPeriods
DynamicThresholdFailingPeriods

The minimum number of violations required within the selected lookback time window required to raise an 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.

ignoreDataBefore
Nullable<DateTime>

Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)

Applies to