build tsdb query strings
Project description
tsdb query string builder
from metricsv2.builder.tsdb import Query
from metricsv2.builder.tsdb.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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7d3c874249abb8439801fb692a366d4befc12298d3e7864eef320689c962c16 |
|
MD5 | 8abca2d0d9ade781f21dcdb6f1b20d72 |
|
BLAKE2b-256 | 1c56430cf6a490373a04792b2024b87c87724a233d083e54c4696a0062b05e4b |