다음을 통해 공유


MetricValue Class

Definition

Represents a metric value.

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

Properties

Average

The average value in the time range.

Count

The number of samples in the time range. Can be used to determine the number of values that contributed to the average value.

Maximum

The greatest value in the time range.

Minimum

The least value in the time range.

TimeStamp

The timestamp for the metric value in ISO 8601 format.

Total

The sum of all of the values in the time range.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
ToString()

Returns a string that represents the current object.

Explicit Interface Implementations

IJsonModel<MetricValue>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MetricValue>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MetricValue>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MetricValue>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MetricValue>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to