Added unit to logs getter #95
2 changed files with 2 additions and 0 deletions
|
@ -211,6 +211,7 @@ class DockerHost(Host):
|
||||||
message_regex: str,
|
message_regex: str,
|
||||||
since: Optional[datetime] = None,
|
since: Optional[datetime] = None,
|
||||||
until: Optional[datetime] = None,
|
until: Optional[datetime] = None,
|
||||||
|
unit: Optional[str] = None,
|
||||||
) -> bool:
|
) -> bool:
|
||||||
client = self._get_docker_client()
|
client = self._get_docker_client()
|
||||||
for service_config in self._config.services:
|
for service_config in self._config.services:
|
||||||
|
|
|
@ -254,6 +254,7 @@ class Host(ABC):
|
||||||
message_regex: str,
|
message_regex: str,
|
||||||
since: Optional[datetime] = None,
|
since: Optional[datetime] = None,
|
||||||
until: Optional[datetime] = None,
|
until: Optional[datetime] = None,
|
||||||
|
unit: Optional[str] = None,
|
||||||
) -> bool:
|
) -> bool:
|
||||||
"""Checks logs on host for specified message regex.
|
"""Checks logs on host for specified message regex.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue