AmlComputeNodeStateCounts 类

表示 AmlCompute 对象的详细节点计数信息。

使用 AmlComputeget_status 方法查看节点计数。

继承
builtins.object
AmlComputeNodeStateCounts

构造函数

AmlComputeNodeStateCounts(idle_node_count, leaving_node_count, preempted_node_count, preparing_node_count, running_node_count, unusable_node_count)

参数

idle_node_count
int
必需

当前空闲节点数。

leaving_node_count
int
必需

当前要取消预配的节点数。

preempted_node_count
int
必需

当前已占用节点数。

preparing_node_count
int
必需

当前正在预配的节点数。

running_node_count
int
必需

当前正在使用的节点数。

unusable_node_count
int
必需

当前不可用节点数。

方法

deserialize

将 JSON 对象转换为 AmlComputeNodeStateCounts 对象。

serialize

将此 AmlComputeNodeStateCounts 对象转换为 JSON 序列化字典。

deserialize

将 JSON 对象转换为 AmlComputeNodeStateCounts 对象。

static deserialize(object_dict)

参数

object_dict
dict
必需

要转换为 AmlComputeNodeStateCounts 对象的 JSON 对象。

返回

提供的 JSON 对象的 AmlComputeNodeStateCounts 表示形式。

返回类型

例外

serialize

将此 AmlComputeNodeStateCounts 对象转换为 JSON 序列化字典。

serialize()

返回

此 AmlComputeNodeStateCounts 对象的 JSON 表示形式。

返回类型

例外