models.node_stats module

class models.node_stats.NodeStats(id=None, usage_perf_stats=None)[source]

Bases: object

Implementation of the ‘NodeStats’ model.

NodeStats provides various statistics for the node.

Attributes:

id (long|int): Id is the Id of the Node. usage_perf_stats (UsageAndPerformanceStats): Provides usage and

performance statistics for entities such as a disks, Nodes or Clusters.

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.