Class Metric
The result data of a query.
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Monitor.dll
Syntax
public class Metric
Constructors
Metric()
Initializes a new instance of the Metric class.
Declaration
public Metric ();
Metric(String, String, LocalizableString, Unit, IList<TimeSeriesElement>)
Initializes a new instance of the Metric class.
Declaration
public Metric (string id, string type, Microsoft.Azure.Management.Monitor.Models.LocalizableString name, Microsoft.Azure.Management.Monitor.Models.Unit unit, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.TimeSeriesElement> timeseries);
Parameters
|
String
id
the metric Id. |
|
String
type
the resource type of the metric resource. |
|
LocalizableString
name
the name and the display name of the metric, i.e. it is localizable string. |
|
Unit
unit
the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified', 'Cores', 'MilliCores', 'NanoCores', 'BitsPerSecond' |
|
IList<TimeSeriesElement>
timeseries
the time series returned when a data query is performed. |
Properties
Id
Gets or sets the metric Id.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="id")]
public string Id { get; set; }
Property Value
|
String
|
Name
Gets or sets the name and the display name of the metric, i.e. it is localizable string.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="name")]
public Microsoft.Azure.Management.Monitor.Models.LocalizableString Name { get; set; }
Property Value
|
LocalizableString
|
Timeseries
Gets or sets the time series returned when a data query is performed.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="timeseries")]
public System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.TimeSeriesElement> Timeseries { get; set; }
Property Value
|
IList<TimeSeriesElement>
|
Type
Gets or sets the resource type of the metric resource.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="type")]
public string Type { get; set; }
Property Value
|
String
|
Unit
Gets or sets the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified', 'Cores', 'MilliCores', 'NanoCores', 'BitsPerSecond'
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="unit")]
public Microsoft.Azure.Management.Monitor.Models.Unit Unit { get; set; }
Property Value
|
Unit
|
Methods
Validate()
Validate the object.
Declaration
public virtual void Validate ();
Exceptions
|
ValidationException
Thrown if validation fails |