Send status events to flapjack from python.
server = redis.Redis(host='localhost', port='6380') sink = FlapjackEventSink(server, 'events') event = FlapjackEvent( 'test-entity', 'test-check', FlapjackEvent.EVENT_SERVICE, FlapjackEvent.STATE_OK, summary = 'test-summary', details = 'test-details', ) sink.send(event)
This would serialize the event and send it to the appropriate Redis channel for flapjack consumption.
pip install pyflapjackevents
or installing it from source:
git clone https://github.com/tuenti/pyflapjackevents.git cd pyflapjackevents python setup.py install
There’re no special requirements for this library.
Credits & Contact
pyflapjackevents was created by Tuenti Technologies S.L.. You can follow Tuenti engineering team on Twitter @tuentieng.
pyflapjackevents is available under the Apache License, Version 2.0. See LICENSE file for more info.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.