AmlComputeNodeStateCounts 类
构造函数
AmlComputeNodeStateCounts(idle_node_count, leaving_node_count, preempted_node_count, preparing_node_count, running_node_count, unusable_node_count)
参数
| 名称 | 说明 |
|---|---|
|
idle_node_count
必需
|
空闲节点的当前数目。 |
|
leaving_node_count
必需
|
正在取消预配的当前节点数。 |
|
preempted_node_count
必需
|
抢占的节点的当前数目。 |
|
preparing_node_count
必需
|
正在预配的当前节点数。 |
|
running_node_count
必需
|
正在使用的节点的当前数量。 |
|
unusable_node_count
必需
|
当前不可用的节点数。 |
|
idle_node_count
必需
|
当前空闲节点数 |
|
leaving_node_count
必需
|
正在取消预配的当前节点数 |
|
preempted_node_count
必需
|
当前抢占的节点数 |
|
preparing_node_count
必需
|
正在预配的当前节点数 |
|
running_node_count
必需
|
当前正在使用的节点数 |
|
unusable_node_count
必需
|
当前不可用节点数 |
方法
| deserialize |
将 JSON 对象转换为 AmlComputeNodeStateCounts 对象。 |
| serialize |
将此 AmlComputeNodeStateCounts 对象转换为 JSON 序列化字典。 |
deserialize
将 JSON 对象转换为 AmlComputeNodeStateCounts 对象。
static deserialize(object_dict)
参数
| 名称 | 说明 |
|---|---|
|
object_dict
必需
|
要转换为 AmlComputeNodeStateCounts 对象的 JSON 对象。 |
返回
| 类型 | 说明 |
|---|---|
|
提供的 JSON 对象的 AmlComputeNodeStateCounts 表示形式。 |
例外
| 类型 | 说明 |
|---|---|
serialize
将此 AmlComputeNodeStateCounts 对象转换为 JSON 序列化字典。
serialize()
返回
| 类型 | 说明 |
|---|---|
|
此 AmlComputeNodeStateCounts 对象的 JSON 表示形式。 |