Kathara.manager.kubernetes.stats.KubernetesMachineStats - KatharaFramework/Kathara GitHub Wiki
The class responsible to handle Kubernetes Machine statistics.
Attributes:
-
machine_api_object
(V1Pod): The Kubernetes Pod associated with this statistics. -
lab_hash
(str): The hash identifier of the network scenario of the Kubernetes Pod. -
name
(str): The name of the device. -
pod_name
(str): The Kubernetes Pod Name. -
image
(str): The Image used for deploying the Kubernetes Pod. -
interfaces
(str): The interfaces connected to this Kubernetes Pod. -
status
(Optional[str]): The status of the Kubernetes Pod. -
assigned_node
(Optional[str]): The cluster node assigned to this Kubernetes Pod.
__init__(machine_api_object: kubernetes.client.models.v1_pod.V1Pod)
to_dict() → Dict[str, Any]
Transform statistics into a dict representation.
Returns:
-
Dict[str, Any]
: Dict containing statistics.
update() → None
Update dynamic statistics with the current ones.
Returns: None
This file was automatically generated via lazydocs.