Bernhard
A simple Python3 client for Riemann. Usage:
import bernhard
c = bernhard.Client()
c.send({'host': 'myhost.foobar.com', 'service': 'myservice', 'metric': 12})
q = c.query('true')
Bernhard supports custom attributes with the syntax:
import bernhard
c = bernhard.Client()
c.send({'host': 'awesome.host.com', 'attributes': {'sky': 'sunny', 'sea': 'agitated'}})
Querying the index is as easy as:
import bernhard
c = bernhard.Client()
q = c.query('true')
for e in q:
print "Host:", e.host, "State:", e.state
Installing
pip install bernhard-py3
Release files for bernhard-py3 1.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 | |
|---|---|---|---|
| bernhard-py3-1.0.1.tar.gz | 10.1 kB | Details |
Release files / bernhard-py3-1.0.1.tar.gz
| Download URL | bernhard-py3-1.0.1.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82067ecc1fc985f3b466bbf2e7403068fcb913ae8435b65eabf45f9812d5cb68
|
|
BLAKE2b-256 checksum How to use checksums |
50b0a46362e061a1a9fe2d16f7259a27255c7994929cb8d9b67ce6921bd6c72a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|