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
Release history Release notifications | RSS feed
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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c855ebcb72ba53afee3b52324816f81898b94b6123a1d1cac797174756317148 |
|
MD5 | e08ad4c0e2ebac5f4543ada116e97461 |
|
BLAKE2b-256 | dc6330af5f4d04a3d16289a6482ed17b519917d9a264fb070ef161f99af92448 |