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

MetricSpecification 构造函数

定义

重载

MetricSpecification()

初始化 MetricSpecification 类的新实例。

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

初始化 MetricSpecification 类的新实例。

MetricSpecification()

初始化 MetricSpecification 类的新实例。

public MetricSpecification ();
Public Sub New ()

适用于

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

初始化 MetricSpecification 类的新实例。

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

参数

name
String

指标的名称

displayName
String

指标的本地化友好显示名称

displayDescription
String

指标的本地化友好说明

unit
String

对指标有意义的单位

category
String

指标所属的指标类别的名称。 指标只能属于单个类别。

aggregationType
String

仅为此字段提供一个值。 有效值:Average、Minimum、Maximum、Total、Count。

supportedAggregationTypes
IList<String>

支持的聚合类型

supportedTimeGrainTypes
IList<String>

支持的时间粒度类型

fillGapWithZero
Nullable<Boolean>

可选。 如果设置为 true,则在未发出/发布指标的持续时间内将返回零。

dimensions
IList<MetricDimension>

指标的维度

适用于