다음을 통해 공유


MetricDefinition Class

Definition

Metric definition class specifies the metadata for a metric.

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

Properties

Category

Custom category name for this metric.

Dimensions

Returns a list of dimension names.

DisplayDescription

Detailed description of this metric.

Id

The resource identifier of the metric definition.

IsDimensionRequired

Flag to indicate whether the dimension is required.

MetricAvailabilities

The collection of what aggregation intervals are available to be queried.

MetricClass

The class of the metric.

Name

The name of the metric.

Namespace

The namespace the metric belongs to.

PrimaryAggregationType

The primary aggregation type value defining how to use the values for display.

ResourceId

The resource identifier of the resource that emitted the metric.

SupportedAggregationTypes

The collection of what aggregation types are supported.

Unit

The unit of the metric.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MetricDefinition>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MetricDefinition>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MetricDefinition>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MetricDefinition>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MetricDefinition>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to