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

Metric 类

数据库指标。

变量仅由服务器填充,在发送请求时将被忽略。

继承
Metric

构造函数

Metric(**kwargs)

变量

start_time
datetime

指标的开始时间 (ISO-8601 格式) 。

end_time
datetime

指标的结束时间 (ISO-8601 格式) 。

time_grain
str

用于汇总指标值的时间步长。

unit
strUnitType

指标的单位。 可能的值包括:“count”、“bytes”、“seconds”、“percent”、“countPerSecond”、“bytesPerSecond”。

name
MetricName

指标的名称信息。

metric_values
list[MetricValue]

指定时间窗口和 timestep 的指标值。