forked from p15670423/monkey
Agent: Add IIslandAPIClient.send_log()
This commit is contained in:
parent
393bec29e7
commit
9936605242
|
@ -17,3 +17,16 @@ class IIslandAPIClient(ABC):
|
||||||
:raises IslandAPIError: If an unexpected error occurs while attempting to connect to the
|
:raises IslandAPIError: If an unexpected error occurs while attempting to connect to the
|
||||||
island
|
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
|
||||||
|
"""
|
||||||
|
|
Loading…
Reference in New Issue