Skip to main content

Send status events to flapjack from python.

Project description

pyflapjackevents is a small library that serializes flapjack events as described in it’s own Data structures. It’s main intention is to allow sending monitor events to flapjack from python programs.

An example:

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.

Installation

Just do:

pip install pyflapjackevents

or installing it from source:

git clone https://github.com/tuenti/pyflapjackevents.git
cd pyflapjackevents
python setup.py install

Requirements

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.

License

pyflapjackevents is available under the Apache License, Version 2.0. See LICENSE file for more info.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyflapjackevents-0.1.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file pyflapjackevents-0.1.tar.gz.

File metadata

File hashes

Hashes for pyflapjackevents-0.1.tar.gz
Algorithm Hash digest
SHA256 a5fe35b12573e6b87bf40f42cf5feb566922956550791a26e6dc73f54c54107c
MD5 d011f9128441e037150ce00346ecc4c6
BLAKE2b-256 b360db099d420908f80cda0ff47c2580230585d97afeed6b1f5bb7911cee3379

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page