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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tsdb_query_builder-0.0.4.tar.gz.
File metadata
- Download URL: tsdb_query_builder-0.0.4.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d08fd7aecaf6b43c72be7e778780832d917f053a2408d69f402ac839c78e253
|
|
| MD5 |
c437deba398e00918d06117bc7d9d109
|
|
| BLAKE2b-256 |
6e5e376e4543c797cd7a6c07d776d85a754da1956d662f2084836c4de9ae5a46
|
File details
Details for the file tsdb_query_builder-0.0.4-py3-none-any.whl.
File metadata
- Download URL: tsdb_query_builder-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1585af7a516c3c39a0347f37e8b3e26794d1b45e02087c9620f1d59322f1220
|
|
| MD5 |
40b5a73e798c6906a263ec63cfb1f6c5
|
|
| BLAKE2b-256 |
550f9dc72dabcd7c16cb9577f463f5ff53b3b91ddbdc6deb8f661123661ff5f0
|