你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MetricSpecification 构造函数

定义

重载

MetricSpecification()

初始化 MetricSpecification 类的新实例。

MetricSpecification(String, String, String, MetricUnit, MetricAggregationType, Nullable<MetricAggregationType>, IList<String>, IList<MetricDimension>, Boolean, String, String, IList<String>)

初始化 MetricSpecification 类的新实例。

MetricSpecification()

初始化 MetricSpecification 类的新实例。

public MetricSpecification ();
Public Sub New ()

适用于

MetricSpecification(String, String, String, MetricUnit, MetricAggregationType, Nullable<MetricAggregationType>, IList<String>, IList<MetricDimension>, Boolean, String, String, IList<String>)

初始化 MetricSpecification 类的新实例。

public MetricSpecification (string name = default, string displayName = default, string displayDescription = default, Microsoft.Azure.Management.Media.Models.MetricUnit unit = default, Microsoft.Azure.Management.Media.Models.MetricAggregationType aggregationType = default, Microsoft.Azure.Management.Media.Models.MetricAggregationType? lockAggregationType = default, System.Collections.Generic.IList<string> supportedAggregationTypes = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Media.Models.MetricDimension> dimensions = default, bool enableRegionalMdmAccount = false, string sourceMdmAccount = default, string sourceMdmNamespace = default, System.Collections.Generic.IList<string> supportedTimeGrainTypes = default);
new Microsoft.Azure.Management.Media.Models.MetricSpecification : string * string * string * Microsoft.Azure.Management.Media.Models.MetricUnit * Microsoft.Azure.Management.Media.Models.MetricAggregationType * Nullable<Microsoft.Azure.Management.Media.Models.MetricAggregationType> * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Microsoft.Azure.Management.Media.Models.MetricDimension> * bool * string * string * System.Collections.Generic.IList<string> -> Microsoft.Azure.Management.Media.Models.MetricSpecification
Public Sub New (Optional name As String = Nothing, Optional displayName As String = Nothing, Optional displayDescription As String = Nothing, Optional unit As MetricUnit = Nothing, Optional aggregationType As MetricAggregationType = Nothing, Optional lockAggregationType As Nullable(Of MetricAggregationType) = Nothing, Optional supportedAggregationTypes As IList(Of String) = Nothing, Optional dimensions As IList(Of MetricDimension) = Nothing, Optional enableRegionalMdmAccount As Boolean = false, Optional sourceMdmAccount As String = Nothing, Optional sourceMdmNamespace As String = Nothing, Optional supportedTimeGrainTypes As IList(Of String) = Nothing)

参数

name
String

指标名称。

displayName
String

指标显示名称。

displayDescription
String

指标显示说明。

unit
MetricUnit

指标单位。 可能的值包括:“Bytes”、“Count”、“Milliseconds”

aggregationType
MetricAggregationType

指标聚合类型。 可能的值包括:“Average”、“Count”、“Total”

lockAggregationType
Nullable<MetricAggregationType>

指标锁聚合类型。 可能的值包括:“Average”、“Count”、“Total”

supportedAggregationTypes
IList<String>

支持的聚合类型。

dimensions
IList<MetricDimension>

指标维度。

enableRegionalMdmAccount
Boolean

指示是否启用区域 MDM 帐户。

sourceMdmAccount
String

源 MDM 帐户。

sourceMdmNamespace
String

源 MDM 命名空间。

supportedTimeGrainTypes
IList<String>

支持的时间粒度类型。

适用于