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

MetricSpecification interface

Azure 监视指标的规范。

属性

aggregationType

仅为此字段提供一个值。 有效值:平均值、最小值、最大值、总计、计数。

category

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

dimensions

指标的维度。

displayDescription

指标的本地化友好说明。

displayName

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

fillGapWithZero

自选。 如果设置为 true,则会在未发出/发布任何指标的时间段内返回零。例如,返回发出特定错误代码的次数的指标。 错误代码可能不会经常出现,而不是 RP 发布 0,鞋盒可以自动填充 0,以便在未发出任何内容的时间期间自动填充 0。

name

指标的名称。

unit

指标有意义的单位。

属性详细信息

aggregationType

仅为此字段提供一个值。 有效值:平均值、最小值、最大值、总计、计数。

aggregationType?: string

属性值

string

category

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

category?: string

属性值

string

dimensions

指标的维度。

dimensions?: Dimension[]

属性值

displayDescription

指标的本地化友好说明。

displayDescription?: string

属性值

string

displayName

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

displayName?: string

属性值

string

fillGapWithZero

自选。 如果设置为 true,则会在未发出/发布任何指标的时间段内返回零。例如,返回发出特定错误代码的次数的指标。 错误代码可能不会经常出现,而不是 RP 发布 0,鞋盒可以自动填充 0,以便在未发出任何内容的时间期间自动填充 0。

fillGapWithZero?: string

属性值

string

name

指标的名称。

name?: string

属性值

string

unit

指标有意义的单位。

unit?: string

属性值

string