Metric Constructors

Definition

Overloads

Metric()

Initializes a new instance of the Metric class.

Metric(String, String, LocalizableString, String, IList<TimeSeriesElement>, String, String, String)

Initializes a new instance of the Metric class.

Metric()

Initializes a new instance of the Metric class.

public Metric ();
Public Sub New ()

Applies to

Metric(String, String, LocalizableString, String, IList<TimeSeriesElement>, String, String, String)

Initializes a new instance of the Metric class.

public Metric (string id, string type, Microsoft.Azure.Management.Monitor.Models.LocalizableString name, string unit, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.TimeSeriesElement> timeseries, string displayDescription = default, string errorCode = default, string errorMessage = default);
new Microsoft.Azure.Management.Monitor.Models.Metric : string * string * Microsoft.Azure.Management.Monitor.Models.LocalizableString * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.TimeSeriesElement> * string * string * string -> Microsoft.Azure.Management.Monitor.Models.Metric
Public Sub New (id As String, type As String, name As LocalizableString, unit As String, timeseries As IList(Of TimeSeriesElement), Optional displayDescription As String = Nothing, Optional errorCode As String = Nothing, Optional errorMessage As String = Nothing)

Parameters

id
String

the metric Id.

type
String

the resource type of the metric resource.

name
LocalizableString

the name and the display name of the metric, i.e. it is localizable string.

unit
String

The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified', 'Cores', 'MilliCores', 'NanoCores', 'BitsPerSecond'

timeseries
IList<TimeSeriesElement>

the time series returned when a data query is performed.

displayDescription
String

Detailed description of this metric.

errorCode
String

'Success' or the error details on query failures for this metric.

errorMessage
String

Error message encountered querying this specific metric.

Applies to