AmlComputeNodeStateCounts Class

Represents detailed node count information for an AmlCompute object.

Use the get_status method of the AmlCompute to view node counts.

Initialize a AmlComputeNodeStateCounts object.

Inheritance
builtins.object
AmlComputeNodeStateCounts

Constructor

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

Parameters

Name Description
idle_node_count
Required
int

The current number of idle nodes.

leaving_node_count
Required
int

The current number of nodes that are being deprovisioned.

preempted_node_count
Required
int

The current number of preempted nodes.

preparing_node_count
Required
int

The current number of nodes that are being provisioned.

running_node_count
Required
int

The current number of in use nodes.

unusable_node_count
Required
int

The current number of unusable nodes.

idle_node_count
Required
int

Current number of idle nodes

leaving_node_count
Required
int

Current number of nodes that are being deprovisioned

preempted_node_count
Required
int

Current number of preempted nodes

preparing_node_count
Required
int

Current number of nodes that are being provisioned

running_node_count
Required
int

Current number of in use nodes

unusable_node_count
Required
int

Current number of unusable nodes

Methods

deserialize

Convert a JSON object into an AmlComputeNodeStateCounts object.

serialize

Convert this AmlComputeNodeStateCounts object into a JSON serialized dictionary.

deserialize

Convert a JSON object into an AmlComputeNodeStateCounts object.

static deserialize(object_dict)

Parameters

Name Description
object_dict
Required

A JSON object to convert to an AmlComputeNodeStateCounts object.

Returns

Type Description

The AmlComputeNodeStateCounts representation of the provided JSON object.

Exceptions

Type Description

serialize

Convert this AmlComputeNodeStateCounts object into a JSON serialized dictionary.

serialize()

Returns

Type Description

The JSON representation of this AmlComputeNodeStateCounts object.

Exceptions

Type Description