Show / Hide Table of Contents

    Class MetricCriteria

    Criterion to filter metrics.

    Inheritance
    Object
    MultiMetricCriteria
    MetricCriteria
    Inherited Members
    MultiMetricCriteria.AdditionalProperties
    MultiMetricCriteria.Dimensions
    MultiMetricCriteria.MetricName
    MultiMetricCriteria.MetricNamespace
    MultiMetricCriteria.Name
    MultiMetricCriteria.TimeAggregation
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Monitor.dll
    Syntax
    [Newtonsoft.Json.JsonObject("StaticThresholdCriterion")]
    public class MetricCriteria : Microsoft.Azure.Management.Monitor.Models.MultiMetricCriteria

    Constructors

    MetricCriteria()

    Initializes a new instance of the MetricCriteria class.

    Declaration
    public MetricCriteria ();

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

    Initializes a new instance of the MetricCriteria class.

    Declaration
    public MetricCriteria (string name, string metricName, object timeAggregation, object operatorProperty, double threshold, System.Collections.Generic.IDictionary<string,object> additionalProperties = null, string metricNamespace = null, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.MetricDimension> dimensions = null);
    Parameters
    String name

    Name of the criteria.

    String metricName

    Name of the metric.

    Object timeAggregation

    the criteria time aggregation types.

    Object operatorProperty

    the criteria operator.

    Double threshold

    the criteria threshold value that activates the alert.

    IDictionary<String,Object> additionalProperties

    Unmatched properties from the message are deserialized this collection

    String metricNamespace

    Namespace of the metric.

    IList<MetricDimension> dimensions

    List of dimension conditions.

    Properties

    OperatorProperty

    Gets or sets the criteria operator.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="operator")]
    public object OperatorProperty { get; set; }
    Property Value
    Object

    Threshold

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

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="threshold")]
    public double Threshold { get; set; }
    Property Value
    Double

    Methods

    Validate()

    Validate the object.

    Declaration
    public override void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net