platypush.message.event.ping

class platypush.message.event.ping.HostDownEvent(host: str, *args, **kwargs)[source]

Event triggered when a remote host stops responding ping requests.

__init__(host: str, *args, **kwargs)[source]

Params: target – Target node [String] origin – Origin node (default: current node) [String] id – Event ID (default: auto-generated) kwargs – Additional arguments for the event [kwDict]

class platypush.message.event.ping.HostUpEvent(host: str, *args, **kwargs)[source]

Event triggered when a remote host starts responding ping requests.

__init__(host: str, *args, **kwargs)[source]

Params: target – Target node [String] origin – Origin node (default: current node) [String] id – Event ID (default: auto-generated) kwargs – Additional arguments for the event [kwDict]

class platypush.message.event.ping.PingEvent(message=None, *args, **kwargs)[source]

Ping event, used for testing purposes

__init__(message=None, *args, **kwargs)[source]
Parameters:message (object) – Ping message