ArmMonitorModelFactory.MonitorMetricDefinition Method

Definition

Initializes a new instance of MonitorMetricDefinition.

public static Azure.ResourceManager.Monitor.Models.MonitorMetricDefinition MonitorMetricDefinition (bool? isDimensionRequired = default, string resourceId = default, string namespace = default, Azure.ResourceManager.Monitor.Models.MonitorLocalizableString name = default, string displayDescription = default, string category = default, Azure.ResourceManager.Monitor.Models.MonitorMetricClass? metricClass = default, Azure.ResourceManager.Monitor.Models.MonitorMetricUnit? unit = default, Azure.ResourceManager.Monitor.Models.MonitorAggregationType? primaryAggregationType = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.MonitorAggregationType> supportedAggregationTypes = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.MonitorMetricAvailability> metricAvailabilities = default, string id = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Monitor.Models.MonitorLocalizableString> dimensions = default);
static member MonitorMetricDefinition : Nullable<bool> * string * string * Azure.ResourceManager.Monitor.Models.MonitorLocalizableString * string * string * Nullable<Azure.ResourceManager.Monitor.Models.MonitorMetricClass> * Nullable<Azure.ResourceManager.Monitor.Models.MonitorMetricUnit> * Nullable<Azure.ResourceManager.Monitor.Models.MonitorAggregationType> * seq<Azure.ResourceManager.Monitor.Models.MonitorAggregationType> * seq<Azure.ResourceManager.Monitor.Models.MonitorMetricAvailability> * string * seq<Azure.ResourceManager.Monitor.Models.MonitorLocalizableString> -> Azure.ResourceManager.Monitor.Models.MonitorMetricDefinition
Public Shared Function MonitorMetricDefinition (Optional isDimensionRequired As Nullable(Of Boolean) = Nothing, Optional resourceId As String = Nothing, Optional namespace As String = Nothing, Optional name As MonitorLocalizableString = Nothing, Optional displayDescription As String = Nothing, Optional category As String = Nothing, Optional metricClass As Nullable(Of MonitorMetricClass) = Nothing, Optional unit As Nullable(Of MonitorMetricUnit) = Nothing, Optional primaryAggregationType As Nullable(Of MonitorAggregationType) = Nothing, Optional supportedAggregationTypes As IEnumerable(Of MonitorAggregationType) = Nothing, Optional metricAvailabilities As IEnumerable(Of MonitorMetricAvailability) = Nothing, Optional id As String = Nothing, Optional dimensions As IEnumerable(Of MonitorLocalizableString) = Nothing) As MonitorMetricDefinition

Parameters

isDimensionRequired
Nullable<Boolean>

Flag to indicate whether the dimension is required.

resourceId
String

the resource identifier of the resource that emitted the metric.

namespace
String

the namespace the metric belongs to.

name
MonitorLocalizableString

the name and the display name of the metric, i.e. it is a localizable string.

displayDescription
String

Detailed description of this metric.

category
String

Custom category name for this metric.

metricClass
Nullable<MonitorMetricClass>

The class of the metric.

unit
Nullable<MonitorMetricUnit>

The unit of the metric.

primaryAggregationType
Nullable<MonitorAggregationType>

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

supportedAggregationTypes
IEnumerable<MonitorAggregationType>

the collection of what aggregation types are supported.

metricAvailabilities
IEnumerable<MonitorMetricAvailability>

the collection of what aggregation intervals are available to be queried.

id
String

the resource identifier of the metric definition.

dimensions
IEnumerable<MonitorLocalizableString>

the name and the display name of the dimension, i.e. it is a localizable string.

Returns

A new MonitorMetricDefinition instance for mocking.

Applies to