Share via


MonitorMetric Class

Definition

The result data of a query.

public class MonitorMetric : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Monitor.Models.MonitorMetric>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Monitor.Models.MonitorMetric>
type MonitorMetric = class
    interface IJsonModel<MonitorMetric>
    interface IPersistableModel<MonitorMetric>
Public Class MonitorMetric
Implements IJsonModel(Of MonitorMetric), IPersistableModel(Of MonitorMetric)
Inheritance
MonitorMetric
Implements

Properties

DisplayDescription

Detailed description of this metric.

ErrorCode

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

ErrorMessage

Error message encountered querying this specific metric.

Id

the metric Id.

MetricType

the resource type of the metric resource.

Name

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

Timeseries

the time series returned when a data query is performed.

Unit

The unit of the metric.

Explicit Interface Implementations

IJsonModel<MonitorMetric>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<MonitorMetric>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MonitorMetric>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MonitorMetric>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<MonitorMetric>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to