Show / Hide Table of Contents

    Class Response

    The response to a metrics query.

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

    Constructors

    Response()

    Initializes a new instance of the Response class.

    Declaration
    public Response ();

    Response(String, IList<Metric>, Nullable<Double>, Nullable<TimeSpan>, String, String)

    Initializes a new instance of the Response class.

    Declaration
    public Response (string timespan, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.Metric> value, Nullable<double> cost = null, Nullable<TimeSpan> interval = null, string namespaceProperty = null, string resourceregion = null);
    Parameters
    String timespan

    The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested.

    IList<Metric> value

    the value of the collection.

    Nullable<Double> cost

    The integer value representing the cost of the query, for data case.

    Nullable<TimeSpan> interval

    The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made.

    String namespaceProperty

    The namespace of the metrics been queried

    String resourceregion

    The region of the resource been queried for metrics.

    Properties

    Cost

    Gets or sets the integer value representing the cost of the query, for data case.

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

    Interval

    Gets or sets the interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="interval")]
    public Nullable<TimeSpan> Interval { get; set; }
    Property Value
    Nullable<TimeSpan>

    NamespaceProperty

    Gets or sets the namespace of the metrics been queried

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="namespace")]
    public string NamespaceProperty { get; set; }
    Property Value
    String

    Resourceregion

    Gets or sets the region of the resource been queried for metrics.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="resourceregion")]
    public string Resourceregion { get; set; }
    Property Value
    String

    Timespan

    Gets or sets the timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="timespan")]
    public string Timespan { get; set; }
    Property Value
    String

    Value

    Gets or sets the value of the collection.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="value")]
    public System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.Metric> Value { get; set; }
    Property Value
    IList<Metric>

    Methods

    Validate()

    Validate the object.

    Declaration
    public virtual void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net