Class SingleMetricBaseline
The baseline results of a single metric.
Namespace: System.Dynamic.ExpandoObject
Assembly: Microsoft.Azure.Management.Monitor.dll
Syntax
[Microsoft.Rest.Serialization.JsonTransformation]
public class SingleMetricBaseline
Constructors
SingleMetricBaseline()
Initializes a new instance of the SingleMetricBaseline class.
Declaration
public SingleMetricBaseline ();
SingleMetricBaseline(String, String, String, String, TimeSpan, IList<TimeSeriesBaseline>, String)
Initializes a new instance of the SingleMetricBaseline class.
Declaration
public SingleMetricBaseline (string id, string type, string name, string timespan, TimeSpan interval, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.TimeSeriesBaseline> baselines, string namespaceProperty = null);
Parameters
|
String
id
The metric baseline Id. |
|
String
type
The resource type of the metric baseline resource. |
|
String
name
The name of the metric for which the baselines were retrieved. |
|
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. |
|
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. |
|
IList<TimeSeriesBaseline>
baselines
The baseline for each time series that was queried. |
|
String
namespaceProperty
The namespace of the metrics been queried. |
Properties
Baselines
Gets or sets the baseline for each time series that was queried.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.baselines")]
public System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.TimeSeriesBaseline> Baselines { get; set; }
Property Value
|
IList<TimeSeriesBaseline>
|
Id
Gets or sets the metric baseline Id.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="id")]
public string Id { get; set; }
Property Value
|
String
|
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="properties.interval")]
public TimeSpan Interval { get; set; }
Property Value
|
TimeSpan
|
Name
Gets or sets the name of the metric for which the baselines were retrieved.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="name")]
public string Name { get; set; }
Property Value
|
String
|
NamespaceProperty
Gets or sets the namespace of the metrics been queried.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="properties.namespace")]
public string NamespaceProperty { 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="properties.timespan")]
public string Timespan { get; set; }
Property Value
|
String
|
Type
Gets or sets the resource type of the metric baseline resource.
Declaration
[Newtonsoft.Json.JsonProperty(PropertyName="type")]
public string Type { get; set; }
Property Value
|
String
|
Methods
Validate()
Validate the object.
Declaration
public virtual void Validate ();
Exceptions
|
ValidationException
Thrown if validation fails |