shellbot.updaters.elastic module¶
-
class
shellbot.updaters.elastic.
ElasticsearchUpdater
(engine=None, **kwargs)[source]¶ Bases:
shellbot.updaters.base.Updater
Writes inbound events to Elasticsearch
An event may be a Message, a Join or Leave notification, or any other Event.
Updaters expose a filtering function that can be connected to the inbound flow of events handled by the Listener.
Example:
updater = ElasticsearchUpdater(host='db.local:9200') listener = Listener(filter=updater.filter)