build tsdb query strings
Project description
tsdb query string builder
from tsdb.query import Query
from tsdb.query.filters import *
if __name__ == '__main__':
print(Query('some.metrics').rate(True, 10, 20).aggr('max').filters({
'a': 'b', 'c': 'd',
'e': literal_or('f'),
'g': regexp('.*', groupBy=False),
'h': not_key(),
}).m())
# max:rate{counter,10,20}:some.metrics{a=b,c=d,e=literal_or(f),h=not_key()}{g=regexp(.*)}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for tsdb_query_builder-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7126e6a5de672b0e549c3b4e44f0c41335ac0dd0aee28d1f615281aa6e4dcea8 |
|
MD5 | 3b89e17f5bf512ccc5e141a3a94cd3af |
|
BLAKE2b-256 | 7ad359d4db9547f26330d3c6cfe91df7c6141729663f85b7b0c8e58f1add6ea2 |