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.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1585af7a516c3c39a0347f37e8b3e26794d1b45e02087c9620f1d59322f1220 |
|
MD5 | 40b5a73e798c6906a263ec63cfb1f6c5 |
|
BLAKE2b-256 | 550f9dc72dabcd7c16cb9577f463f5ff53b3b91ddbdc6deb8f661123661ff5f0 |