当池大小调整完成或失败时,将发出此事件。
以下示例显示池大小调整完成事件的正文,该事件的大小增加且成功完成。
{
"id": "myPool",
"nodeDeallocationOption": "invalid",
"currentDedicatedNodes": 10,
"targetDedicatedNodes": 10,
"currentLowPriorityNodes": 5,
"targetLowPriorityNodes": 5,
"enableAutoScale": false,
"isAutoPool": false,
"startTime": "2016-09-09T22:13:06.573Z",
"endTime": "2016-09-09T22:14:01.727Z",
"resultCode": "Success",
"resultMessage": "The operation succeeded"
}
Element | 类型 | Notes |
---|---|---|
id |
String | 池的 ID。 |
nodeDeallocationOption |
String | 指定如果池大小正在减少,则指定何时可以从池中删除节点。 可能的值为: requeue - Terminate running tasks and requeue them. 启用作业后,任务会再次运行。 在任务终止后立即删除节点。 terminate - Terminate running tasks. 任务不会再次运行。 在任务终止后立即删除节点。 taskcompletion - Allow currently running tasks to complete. 等待时不安排新任务。 完成所有任务时删除节点。 Retaineddata - Allow currently running tasks to complete, then wait for all task data retention periods to expire. 等待时不安排新任务。 当所有任务保留期都过期时删除节点。 默认值为重新排队。 If the pool size is increasing, then the value is set to invalid. |
currentDedicatedNodes |
Int32 | 当前分配给池的专用计算节点数。 |
targetDedicatedNodes |
Int32 | 池请求的专用计算节点数。 |
enableAutoScale |
Bool | 指定池大小是否随时间自动调整。 |
isAutoPool |
Bool | 指定是否已通过作业的 AutoPool 机制创建池。 |
startTime |
DateTime | 池大小调整开始的时间。 |
endTime |
DateTime | 池调整大小完成的时间。 |
resultCode |
String | 调整大小的结果。 |
resultMessage |
String | 有关结果的详细消息。 如果调整大小成功完成,则表示作成功。 |