Share via


MetricCriteria Class

Definition

Criterion to filter metrics.

[Newtonsoft.Json.JsonObject("StaticThresholdCriterion")]
public class MetricCriteria : Microsoft.Azure.Management.Monitor.Models.MultiMetricCriteria
[<Newtonsoft.Json.JsonObject("StaticThresholdCriterion")>]
type MetricCriteria = class
    inherit MultiMetricCriteria
Public Class MetricCriteria
Inherits MultiMetricCriteria
Inheritance
MetricCriteria
Attributes
Newtonsoft.Json.JsonObjectAttribute

Constructors

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.

Properties

AdditionalProperties

Gets or sets unmatched properties from the message are deserialized this collection

(Inherited from MultiMetricCriteria)
Dimensions

Gets or sets list of dimension conditions.

(Inherited from MultiMetricCriteria)
MetricName

Gets or sets name of the metric.

(Inherited from MultiMetricCriteria)
MetricNamespace

Gets or sets namespace of the metric.

(Inherited from MultiMetricCriteria)
Name

Gets or sets name of the criteria.

(Inherited from MultiMetricCriteria)
OperatorProperty

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

SkipMetricValidation

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

(Inherited from MultiMetricCriteria)
Threshold

Gets or sets the criteria threshold value that activates the alert.

TimeAggregation

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

(Inherited from MultiMetricCriteria)

Methods

Validate()

Validate the object.

Applies to