Riemann的Python3客户端
项目描述
Bernhard
Bernhard是一个简单的Python3客户端,用于Riemann。用法
import bernhard
c = bernhard.Client()
c.send({'host': 'myhost.foobar.com', 'service': 'myservice', 'metric': 12})
q = c.query('true')
Bernhard支持使用以下语法自定义属性
import bernhard
c = bernhard.Client()
c.send({'host': 'awesome.host.com', 'attributes': {'sky': 'sunny', 'sea': 'agitated'}})
查询索引就像这样简单
import bernhard
c = bernhard.Client()
q = c.query('true')
for e in q:
print "Host:", e.host, "State:", e.state
安装
pip install bernhard-py3
项目详情
关闭
bernhard-py3-1.0.1.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 82067ecc1fc985f3b466bbf2e7403068fcb913ae8435b65eabf45f9812d5cb68 |
|
MD5 | 1a86cdba66f33b3fa769682c6a611272 |
|
BLAKE2b-256 | 50b0a46362e061a1a9fe2d16f7259a27255c7994929cb8d9b67ce6921bd6c72a |