Share via


MonitorMetricDefinition Class

Definition

Metric definition class specifies the metadata for a metric.

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

Properties

Category

Custom category name for this metric.

Dimensions

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

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 and the display name of the metric, i.e. it is a localizable string.

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.

Explicit Interface Implementations

IJsonModel<MonitorMetricDefinition>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MonitorMetricDefinition>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MonitorMetricDefinition>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MonitorMetricDefinition>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MonitorMetricDefinition>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to