juturna.telemetry.memory package

Module contents

class juturna.telemetry.memory.MemoryTelemetry(ctx: TelemetryContext, max_records: int = 10000)

Bases: object

Keep the latest telemetry records in memory

record_telemetry(record_batch: list[tuple])

Store a batch of records

records() → list[tuple]

The records kept so far, oldest first

requires: ClassVar[frozenset[str]] = frozenset({})
start()

Accept records again, after a stop

stop()

Drop the records that arrive from now on, keep the ones collected