Show / Hide Table of Contents

    Class MetricValue

    Represents a metric value.

    Inheritance
    Object
    MetricValue
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Monitor.dll
    Syntax
    public class MetricValue

    Constructors

    MetricValue()

    Initializes a new instance of the MetricValue class.

    Declaration
    public MetricValue ();

    MetricValue(DateTime, Nullable<Double>, Nullable<Double>, Nullable<Double>, Nullable<Double>, Nullable<Double>)

    Initializes a new instance of the MetricValue class.

    Declaration
    public MetricValue (DateTime timeStamp, Nullable<double> average = null, Nullable<double> minimum = null, Nullable<double> maximum = null, Nullable<double> total = null, Nullable<double> count = null);
    Parameters
    DateTime timeStamp

    the timestamp for the metric value in ISO 8601 format.

    Nullable<Double> average

    the average value in the time range.

    Nullable<Double> minimum

    the least value in the time range.

    Nullable<Double> maximum

    the greatest value in the time range.

    Nullable<Double> total

    the sum of all of the values in the time range.

    Nullable<Double> count

    the number of samples in the time range. Can be used to determine the number of values that contributed to the average value.

    Properties

    Average

    Gets or sets the average value in the time range.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="average")]
    public Nullable<double> Average { get; set; }
    Property Value
    Nullable<Double>

    Count

    Gets or sets the number of samples in the time range. Can be used to determine the number of values that contributed to the average value.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="count")]
    public Nullable<double> Count { get; set; }
    Property Value
    Nullable<Double>

    Maximum

    Gets or sets the greatest value in the time range.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="maximum")]
    public Nullable<double> Maximum { get; set; }
    Property Value
    Nullable<Double>

    Minimum

    Gets or sets the least value in the time range.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="minimum")]
    public Nullable<double> Minimum { get; set; }
    Property Value
    Nullable<Double>

    TimeStamp

    Gets or sets the timestamp for the metric value in ISO 8601 format.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="timeStamp")]
    public DateTime TimeStamp { get; set; }
    Property Value
    DateTime

    Total

    Gets or sets the sum of all of the values in the time range.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="total")]
    public Nullable<double> Total { get; set; }
    Property Value
    Nullable<Double>

    Methods

    Validate()

    Validate the object.

    Declaration
    public virtual void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net