Udostępnij za pośrednictwem


CosmosDBMetricDefinition Class

Definition

The definition of a metric.

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

Properties

MetricAvailabilities

The list of metric availabilities for the account.

Name

The name information for the metric.

PrimaryAggregationType

The primary aggregation type of the metric.

ResourceId

The resource uri of the database.

Unit

The unit of the metric.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<CosmosDBMetricDefinition>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<CosmosDBMetricDefinition>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CosmosDBMetricDefinition>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CosmosDBMetricDefinition>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<CosmosDBMetricDefinition>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to