Skip to content

Kathara.manager.docker.stats.DockerLinkStats

Tommaso Caiazzi edited this page Mar 18, 2024 · 7 revisions

module Kathara.manager.docker.stats.DockerLinkStats


class DockerLinkStats

The class responsible to handle Docker Networks statistics.

Attributes:

  • link_api_object (Network): The Docker Network associated with this statistics.
  • lab_hash (str): The hash identifier of the network scenario of the Docker Network.
  • name (str): The name of the collision domain.
  • network_name (str): The Docker Network Name.
  • user (str): The user that deployed the associated Docker Network.
  • enable_ipv6 (bool): True if ipv6 is enabled, else None.
  • external (List[str]): A list with the name of the attached external networks.
  • containers (List[Container]): A list of the Docker Container associated with the Docker Network.

method DockerLinkStats.__init__

__init__(link_api_object: docker.models.networks.Network)

method DockerLinkStats.to_dict

to_dict() → Dict[str, Any]

Transform statistics into a dict representation.

Returns:

  • Dict[str, Any]: Dict containing statistics.

method DockerLinkStats.update

update() → None

Update dynamic statistics with the current ones.

Returns: None


This file was automatically generated via lazydocs.

Clone this wiki locally