다음을 통해 공유


ArmAppServiceModelFactory.ResourceMetricDefinition Method

Definition

Initializes a new instance of 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

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

unit
String

Unit of the metric.

primaryAggregationType
String

Primary aggregation type.

metricAvailabilities
IEnumerable<ResourceMetricAvailability>

List of time grains supported for the metric together with retention period.

resourceUri
Uri

Resource URI.

properties
IReadOnlyDictionary<String,String>

Resource metric definition properties.

kind
String

Kind of resource.

Returns

A new ResourceMetricDefinition instance for mocking.

Applies to