你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
该事件在执行池自动缩放时触发。 日志内容将揭示自动标度公式和池的评估结果。
以下示例展示了因样本数据不足而失败的池自动缩放事件的主体。
{
"id": "myPool1",
"timestamp": "2020-09-21T18:59:56.204Z",
"formula": "...",
"results": "...",
"error": {
"code": "InsufficientSampleData",
"message": "Autoscale evaluation failed due to insufficient sample data",
"values": [{
"name": "Message",
"value": "Line 15, Col 44: Insufficient data from data set: $RunningTasks wanted 70%, received 50%"
}
]
}
}
| 元素 | 类型 | 备注 |
|---|---|---|
id |
String | 池的 ID。 |
timestamp |
日期时间 | 自动缩放执行时的时间戳。 |
formula |
String | 自动缩放定义的公式。 |
results |
String | 公式中使用的所有变量的评估结果。 |
error |
复杂类型 | 自动缩放的详细错误。 |
错误
| 元素名称 | 类型 | 备注 |
|---|---|---|
code |
String | 自动缩放错误的标识符。 代码是固定的,旨在以编程方式使用。 |
message |
String | 一条描述自动缩放错误的消息,旨在用于用户界面显示。 |
values |
数组 | 一份名为-值对的列表,提供关于自动缩放错误的更多细节。 如果没有额外的细节值,则数组为空。 |
values
| 元素名称 | 类型 | 备注 |
|---|---|---|
name |
String | 细节名称。 |
value |
String | 细节价值。 |