Dela via


Metric Class

Definition

The result data of a query.

public class Metric
type Metric = class
Public Class Metric
Inheritance
Metric

Constructors

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.

Properties

DisplayDescription

Gets or sets detailed description of this metric.

ErrorCode

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

ErrorMessage

Gets or sets error message encountered querying this specific metric.

Id

Gets or sets the metric Id.

Name

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

Timeseries

Gets or sets the time series returned when a data query is performed.

Type

Gets or sets the resource type of the metric resource.

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'

Methods

Validate()

Validate the object.

Applies to