Agent: Add IIslandAPIClient.send_log()

This commit is contained in:
Mike Salvatore 2022-09-19 19:21:03 -04:00
parent 393bec29e7
commit 9936605242
1 changed files with 13 additions and 0 deletions

View File

@ -17,3 +17,16 @@ class IIslandAPIClient(ABC):
:raises IslandAPIError: If an unexpected error occurs while attempting to connect to the
island
"""
@abstractmethod
def send_log(self, log_contents: str):
"""
Send the contents of the agent's log to the island
:param log_contents: The contents of the agent's log
:raises IslandAPIConnectionError: If a connection cannot be made to the island
:raises IslandAPITimeoutError: If a timeout occurs while attempting to connect to the island
or send the log contents
:raises IslandAPIError: If an unexpected error occurred while attempting to send the
contents of the agent's log to the island
"""