bernhard-0.2.6
توضیحات
Python client for Riemann
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | bernhard-0.2.6 |
| نام | bernhard |
| نسخه کتابخانه | 0.2.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Benjamin Anderspn |
| ایمیل نویسنده | b@banjiewen.net |
| آدرس صفحه اصلی | http://github.com/banjiewen/bernhard.git |
| آدرس اینترنتی | https://pypi.org/project/bernhard/ |
| مجوز | ASF2.0 |
# Bernhard
A simple Python client for [Riemann](http://github.com/aphyr/riemann). Usage:
```python
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:
```python
import bernhard
c = bernhard.Client()
c.send({'host': 'awesome.host.com', 'attributes': {'sky': 'sunny', 'sea': 'agitated'}})
```
Querying the index is as easy as:
```python
import bernhard
c = bernhard.Client()
q = c.query('true')
for e in q:
print "Host:", e.host, "State:", e.state
```
## Installing
```bash
pip install bernhard
```
You may encounter issues with the `protobuf` dependency; if so, just run `pip
install protobuf` manually, then `pip install bernhard`.
نحوه نصب
نصب پکیج whl bernhard-0.2.6:
pip install bernhard-0.2.6.whl
نصب پکیج tar.gz bernhard-0.2.6:
pip install bernhard-0.2.6.tar.gz