embedded_database
qoa4ml.observability.odop_obs.embedded_database
¶
Classes¶
EmbeddedDatabase
¶
Functions¶
get_latest_timestamp(lookback_seconds=None)
¶
Return the most recent datapoint as a one-element list (or [] if none).
The previous implementation returned results[-1:] after a
search(time <= now) — implicitly depending on row ordering and
using a naive datetime comparison that was silently empty on
non-UTC hosts. The query now uses UTC-aware datetimes and picks
the max-timestamp point explicitly.