models.node_status_result module

class models.node_status_result.NodeStatusResult(active_operation=None, cluster_id=None, id=None, in_cluster=None, incarnation_id=None, ip=None, last_upgrade_time_secs=None, marked_for_removal=None, message=None, removal_reason=None, services=None, software_version=None, uptime=None)[source]

Bases: object

Implementation of the ‘NodeStatusResult’ model.

Specifies the current status of a Node in the cluster.

Attributes:
active_operation (ActiveOperationEnum): Specifies the active operation

on the Node if there is one. ‘kNone’ specifies that there is no active operation on the Node. ‘kDestroyCluster’ specifies that the Cluster which the Node is a part of is currently being destroyed. ‘kUpgradeCluster’ specifies that the Cluster which the Node is a part of is currently being upgraded to a new software package. ‘kRestartCluster’ specifies that the Cluster which the Node is a part of is currently being restarted. ‘kCreateCluster’ specifies that the Node is currently being used to create a new Cluster. ‘kExpandCluster’ specifies that the Node is currently being added to a Cluster or being used to assist in adding another Node to a Cluster. ‘kUpgradeNode’ specifies that the Node is currently being upgraded to a new software package. ‘kRemoveNode’ specifies that the Node is currently being removed from a Cluster or that it is assisting in removing another Node from a Cluster. ‘kAddDisks’ specifies that the Node is being used to assist in adding disks to the Cluster. ‘kMarkDiskOffline’ specifies that the Node is being use to assist in marking a disk in the Cluster as offline.

cluster_id (long|int): Specifies the Cluster ID if the Node is part of

a Cluster.

id (long|int): Specifies the ID of the Node. in_cluster (bool): Specifies whether or not the Node is part of a

Cluster.

incarnation_id (long|int): Specifies the Incarnation ID if the Node is

part of a Cluster.

ip (string): Specifies the IP address of the Node. last_upgrade_time_secs (long|int): Specifies the time of the last

upgrade in seconds since the epoch.

marked_for_removal (bool): Specifies whether or not this node is

marked for removal.

message (string): Specifies an optional message describing the current

state of the Node.

removal_reason (RemovalReasonEnum): Specifies the reason for the

removal operation if there is a removal operation going on. ‘kUnknown’ specifies that the removal reason is not known. ‘kAutoHealthCheck’ specifies that an internal health check found problems with the Node. ‘kUserGracefulRemoval’ specifies that the user requested a graceful removal. ‘kUserAvoidAccess’ specifies that the user requested to avoid access to this Node. ‘kUserGracefulNodeRemoval’ specifies that the user requested a graceful removal for all of the disks in this Node. ‘kUserRemoveDownNode’ specifies that the user requested a graceful removal of the Node while it is down.

services (list of ServiceProcessEntry): Specifies the list of services

running on the cluster and their process Ids.

software_version (string): Specifies the version of the software

running on the Node.

uptime (string): Uptime of node.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.

Returns:

object: An instance of this structure class.