info section extended
This commit is contained in:
parent
8a691b0cf7
commit
e280bf8845
@ -15,6 +15,7 @@ ArgumentsMap = Dict[str, Union[str, bool, None]]
|
|||||||
|
|
||||||
TIMEOUT: Final[int] = 30
|
TIMEOUT: Final[int] = 30
|
||||||
NOT_AVAIL: Final[str] = "N/A"
|
NOT_AVAIL: Final[str] = "N/A"
|
||||||
|
AGENT_VERSION: Final[str] = "0.1.0"
|
||||||
|
|
||||||
|
|
||||||
class TraefikAPI:
|
class TraefikAPI:
|
||||||
@ -75,10 +76,11 @@ class TraefikAPI:
|
|||||||
traefik_info: Optional[dict] = self._get_version()
|
traefik_info: Optional[dict] = self._get_version()
|
||||||
if traefik_info:
|
if traefik_info:
|
||||||
print("<<<traefik_info:sep(59)>>>")
|
print("<<<traefik_info:sep(59)>>>")
|
||||||
print(traefik_info.get("Version", NOT_AVAIL))
|
print(f"Traefik_Version;{traefik_info.get('Version', NOT_AVAIL)}")
|
||||||
print(traefik_info.get("Codename", NOT_AVAIL))
|
print(f"Traefik_CodeName;{traefik_info.get('Codename', NOT_AVAIL)}")
|
||||||
print(traefik_info.get("startDate", NOT_AVAIL))
|
print(f"Traefik_StartDate;{traefik_info.get('startDate', NOT_AVAIL)}")
|
||||||
print(duration)
|
print(f"Agent_Runtime;{duration}")
|
||||||
|
print(f"Agent_Version;{AGENT_VERSION}")
|
||||||
|
|
||||||
def _get_version(self) -> Optional[dict]:
|
def _get_version(self) -> Optional[dict]:
|
||||||
"""Get data from API endpoint version"""
|
"""Get data from API endpoint version"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user