This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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.

Release History

Release History

This version
History Node

0.1

History Node

0.1dev-r0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyflapjackevents-0.1.tar.gz (3.4 kB) Copy SHA256 Checksum SHA256 Source Jan 5, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting