Compartilhar via


ArmCosmosDBModelFactory.CosmosDBMetricDefinition Método

Definição

Inicializa uma nova instância do CosmosDBMetricDefinition.

public static Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricDefinition CosmosDBMetricDefinition (System.Collections.Generic.IEnumerable<Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricAvailability> metricAvailabilities = default, Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricPrimaryAggregationType? primaryAggregationType = default, Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricUnitType? unit = default, Azure.Core.ResourceIdentifier resourceId = default, Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricName name = default);
static member CosmosDBMetricDefinition : seq<Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricAvailability> * Nullable<Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricPrimaryAggregationType> * Nullable<Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricUnitType> * Azure.Core.ResourceIdentifier * Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricName -> Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricDefinition
Public Shared Function CosmosDBMetricDefinition (Optional metricAvailabilities As IEnumerable(Of CosmosDBMetricAvailability) = Nothing, Optional primaryAggregationType As Nullable(Of CosmosDBMetricPrimaryAggregationType) = Nothing, Optional unit As Nullable(Of CosmosDBMetricUnitType) = Nothing, Optional resourceId As ResourceIdentifier = Nothing, Optional name As CosmosDBMetricName = Nothing) As CosmosDBMetricDefinition

Parâmetros

metricAvailabilities
IEnumerable<CosmosDBMetricAvailability>

A lista de disponibilidades de métrica para a conta.

primaryAggregationType
Nullable<CosmosDBMetricPrimaryAggregationType>

O tipo de agregação primária da métrica.

unit
Nullable<CosmosDBMetricUnitType>

A unidade da métrica.

resourceId
ResourceIdentifier

O uri do recurso do banco de dados.

name
CosmosDBMetricName

As informações de nome da métrica.

Retornos

Uma nova CosmosDBMetricDefinition instância para zombar.

Aplica-se a