你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MetricDefinition Class

Definition

Metric definition.

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

Properties

Description

The metric description.

Dimensions

List of dimensions.

MetricAvailabilities

Metric availability specifies the time grain (aggregation interval or frequency).

Name

The metric name.

Namespace

The namespace the metric belongs to.

PrimaryAggregationType

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

SupportedAggregationTypes

The collection of what all 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