Share via


MetricDefinition Constructors

Definition

Overloads

MetricDefinition()

Initializes a new instance of the MetricDefinition class.

MetricDefinition(Nullable<Boolean>, String, String, LocalizableString, String, String, String, String, Nullable<AggregationType>, IList<Nullable<AggregationType>>, IList<MetricAvailability>, String, IList<LocalizableString>)

Initializes a new instance of the MetricDefinition class.

MetricDefinition()

Initializes a new instance of the MetricDefinition class.

public MetricDefinition ();
Public Sub New ()

Applies to

MetricDefinition(Nullable<Boolean>, String, String, LocalizableString, String, String, String, String, Nullable<AggregationType>, IList<Nullable<AggregationType>>, IList<MetricAvailability>, String, IList<LocalizableString>)

Initializes a new instance of the MetricDefinition class.

public MetricDefinition (bool? isDimensionRequired = default, string resourceId = default, string namespaceProperty = default, Microsoft.Azure.Management.Monitor.Models.LocalizableString name = default, string displayDescription = default, string category = default, string metricClass = default, string unit = default, Microsoft.Azure.Management.Monitor.Models.AggregationType? primaryAggregationType = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.AggregationType?> supportedAggregationTypes = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.MetricAvailability> metricAvailabilities = default, string id = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.LocalizableString> dimensions = default);
new Microsoft.Azure.Management.Monitor.Models.MetricDefinition : Nullable<bool> * string * string * Microsoft.Azure.Management.Monitor.Models.LocalizableString * string * string * string * string * Nullable<Microsoft.Azure.Management.Monitor.Models.AggregationType> * System.Collections.Generic.IList<Nullable<Microsoft.Azure.Management.Monitor.Models.AggregationType>> * System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.MetricAvailability> * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.LocalizableString> -> Microsoft.Azure.Management.Monitor.Models.MetricDefinition
Public Sub New (Optional isDimensionRequired As Nullable(Of Boolean) = Nothing, Optional resourceId As String = Nothing, Optional namespaceProperty As String = Nothing, Optional name As LocalizableString = Nothing, Optional displayDescription As String = Nothing, Optional category As String = Nothing, Optional metricClass As String = Nothing, Optional unit As String = Nothing, Optional primaryAggregationType As Nullable(Of AggregationType) = Nothing, Optional supportedAggregationTypes As IList(Of Nullable(Of AggregationType)) = Nothing, Optional metricAvailabilities As IList(Of MetricAvailability) = Nothing, Optional id As String = Nothing, Optional dimensions As IList(Of LocalizableString) = Nothing)

Parameters

isDimensionRequired
Nullable<Boolean>

Flag to indicate whether the dimension is required.

resourceId
String

the resource identifier of the resource that emitted the metric.

namespaceProperty
String

the namespace the metric belongs to.

name
LocalizableString

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
String

The class of the metric. Possible values include: 'Availability', 'Transactions', 'Errors', 'Latency', 'Saturation'

unit
String

The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified', 'Cores', 'MilliCores', 'NanoCores', 'BitsPerSecond'

primaryAggregationType
Nullable<AggregationType>

the primary aggregation type value defining how to use the values for display. Possible values include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total'

supportedAggregationTypes
IList<Nullable<AggregationType>>

the collection of what aggregation types are supported.

metricAvailabilities
IList<MetricAvailability>

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

id
String

the resource identifier of the metric definition.

dimensions
IList<LocalizableString>

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

Applies to