Added unit to logs getter

Signed-off-by: Dmitry Anurin <d.anurin@yadro.com>
support/v0.37
Dmitry Anurin 2023-10-11 11:10:58 +03:00 committed by anurindm
parent 98f9c78f09
commit dd347dd8fb
2 changed files with 2 additions and 0 deletions

View File

@ -217,6 +217,7 @@ class DockerHost(Host):
message_regex: str,
since: Optional[datetime] = None,
until: Optional[datetime] = None,
unit: Optional[str] = None,
) -> bool:
client = self._get_docker_client()
for service_config in self._config.services:

View File

@ -257,6 +257,7 @@ class Host(ABC):
message_regex: str,
since: Optional[datetime] = None,
until: Optional[datetime] = None,
unit: Optional[str] = None,
) -> bool:
"""Checks logs on host for specified message regex.