Description of the Plugin. More...
Public Member Functions | |
def | __init__ (self, config) |
Do not change anything here! | |
def | fms (self, bwPacket) |
Called on FMS alarm. | |
def | pocsag (self, bwPacket) |
Called on POCSAG alarm. | |
def | zvei (self, bwPacket) |
Called on ZVEI alarm. | |
def | msg (self, bwPacket) |
Called on MSG packet. | |
Public Member Functions inherited from plugin.pluginBase.PluginBase | |
def | __init__ (self, pluginName, config) |
init preload some needed locals and then call onLoad() directly | |
def | onLoad (self) |
Called by import of the plugin can be inherited. | |
def | setup (self) |
Called before alarm can be inherited. | |
def | fms (self, bwPacket) |
Called on FMS alarm can be inherited. | |
def | pocsag (self, bwPacket) |
Called on POCSAG alarm can be inherited. | |
def | zvei (self, bwPacket) |
Called on ZVEI alarm can be inherited. | |
def | msg (self, bwPacket) |
Called on MSG packet can be inherited. | |
def | teardown (self) |
Called after alarm can be inherited. | |
def | onUnload (self) |
Called on shutdown of boswatch can be inherited. | |
def | parseWildcards (self, msg) |
Return the message with parsed wildcards. | |
Protected Member Functions | |
def | _makeRequests (self, urls) |
def | _asyncRequests (self, urls) |
def | _fetch (self, url, session) |
Protected Member Functions inherited from plugin.pluginBase.PluginBase | |
def | _cleanup (self) |
Cleanup routine calls onUnload() directly. | |
def | _run (self, bwPacket) |
start an complete running turn of an plugin. | |
def | _getStatistics (self) |
Returns statistical information's from last plugin run. | |
Additional Inherited Members | |
Data Fields inherited from plugin.pluginBase.PluginBase | |
config | |
Protected Attributes inherited from plugin.pluginBase.PluginBase | |
_pluginName | |
_bwPacket | |
_sumTime | |
_cumTime | |
_setupTime | |
_alarmTime | |
_teardownTime | |
_runCount | |
_setupErrorCount | |
_alarmErrorCount | |
_teardownErrorCount | |
Static Protected Attributes inherited from plugin.pluginBase.PluginBase | |
list | _pluginsActive = [] |
Description of the Plugin.
def plugin.http.BoswatchPlugin.__init__ | ( | self, | |
config | |||
) |
Do not change anything here!
Reimplemented from plugin.pluginBase.PluginBase.
def plugin.http.BoswatchPlugin.fms | ( | self, | |
bwPacket | |||
) |
Called on FMS alarm.
@param bwPacket: bwPacket instance Remove if not implemented
Reimplemented from plugin.pluginBase.PluginBase.
def plugin.http.BoswatchPlugin.pocsag | ( | self, | |
bwPacket | |||
) |
Called on POCSAG alarm.
@param bwPacket: bwPacket instance Remove if not implemented
Reimplemented from plugin.pluginBase.PluginBase.
def plugin.http.BoswatchPlugin.zvei | ( | self, | |
bwPacket | |||
) |
Called on ZVEI alarm.
@param bwPacket: bwPacket instance Remove if not implemented
Reimplemented from plugin.pluginBase.PluginBase.
def plugin.http.BoswatchPlugin.msg | ( | self, | |
bwPacket | |||
) |
Called on MSG packet.
@param bwPacket: bwPacket instance Remove if not implemented
Reimplemented from plugin.pluginBase.PluginBase.
|
protected |
Parses wildcard urls and handles asynchronus requests @param urls: array of urls
|
protected |
Handles asynchronus requests @param urls: array of urls to send requests to
|
protected |
Fetches requests @param url: url @param session: Clientsession instance