Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tsdb-query-builder

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tsdb-query-builder

build tsdb query strings

  • 0.0.4
  • PyPI
  • Socket score

Maintainers
1

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(.*)}

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc