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.
Metadata
Release files for pyflapjackevents 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyflapjackevents-0.1.tar.gz | 3.4 kB | Without provenance | Details |
Release files / pyflapjackevents-0.1.tar.gz
| Download URL | pyflapjackevents-0.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5fe35b12573e6b87bf40f42cf5feb566922956550791a26e6dc73f54c54107c
|
|
BLAKE2b-256 checksum How to use checksums |
b360db099d420908f80cda0ff47c2580230585d97afeed6b1f5bb7911cee3379
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyflapjackevents 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.