bernhard-py3 1.0.1

Last updated:

0 purchases

bernhard-py3 1.0.1 Image
bernhard-py3 1.0.1 Images
Add to Cart

Description:

bernhardpy3 1.0.1

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.