Compartilhar via


ArmAppServiceModelFactory.ResourceMetricDefinition Método

Definição

Inicializa uma nova instância de ResourceMetricDefinition.

public static Azure.ResourceManager.AppService.Models.ResourceMetricDefinition ResourceMetricDefinition (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string unit = default, string primaryAggregationType = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppService.Models.ResourceMetricAvailability> metricAvailabilities = default, Uri resourceUri = default, System.Collections.Generic.IReadOnlyDictionary<string,string> properties = default, string kind = default);
static member ResourceMetricDefinition : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * string * seq<Azure.ResourceManager.AppService.Models.ResourceMetricAvailability> * Uri * System.Collections.Generic.IReadOnlyDictionary<string, string> * string -> Azure.ResourceManager.AppService.Models.ResourceMetricDefinition
Public Shared Function ResourceMetricDefinition (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional unit As String = Nothing, Optional primaryAggregationType As String = Nothing, Optional metricAvailabilities As IEnumerable(Of ResourceMetricAvailability) = Nothing, Optional resourceUri As Uri = Nothing, Optional properties As IReadOnlyDictionary(Of String, String) = Nothing, Optional kind As String = Nothing) As ResourceMetricDefinition

Parâmetros

name
String

O nome.

resourceType
ResourceType

O resourceType.

systemData
SystemData

O systemData.

unit
String

Unidade da métrica.

primaryAggregationType
String

Tipo de agregação primária.

metricAvailabilities
IEnumerable<ResourceMetricAvailability>

Lista de granularidades de tempo com suporte para a métrica junto com o período de retenção.

resourceUri
Uri

URI de recurso.

properties
IReadOnlyDictionary<String,String>

Propriedades de definição de métrica de recurso.

kind
String

Tipo de recurso.

Retornos

Uma nova ResourceMetricDefinition instância para simulação.

Aplica-se a