Source code for platypush.message.event.ping

from platypush.message.event import Event


[docs]class PingEvent(Event): """ Ping event, used for testing purposes """
[docs] def __init__(self, message=None, *args, **kwargs): """ :param message: Ping message :type message: object """ super().__init__(message=message, *args, **kwargs)
[docs]class HostDownEvent(Event): """ Event triggered when a remote host stops responding ping requests. """
[docs] def __init__(self, host: str, *args, **kwargs): super().__init__(host=host, *args, **kwargs)
[docs]class HostUpEvent(Event): """ Event triggered when a remote host starts responding ping requests. """
[docs] def __init__(self, host: str, *args, **kwargs): super().__init__(host=host, *args, **kwargs)
# vim:sw=4:ts=4:et: