reductstore_agent.utils module
Utility functions for the reductstore_agent package.
- reductstore_agent.utils.get_or_create_event_loop() AbstractEventLoop
Get the current event loop or create a new one if none exists.
- reductstore_agent.utils.metadata_size(labels: dict) int
Return byte size of metadata.
- reductstore_agent.utils.ns_to_us(ns: int) int
Round nanoseconds to microseconds.
- reductstore_agent.utils.parse_bytes_with_si_units(value: str | int | float) int
Parse byte values that can be specified as integers or with SI units.