Repository navigation
Signal and memory history in the details page - #99
Merged
Merged
Conversation
Otter keeps a sample of each device's signal and free memory every 5 minutes for 7 days, from its check-ins; a restart adds one at once with its reset reason. The details page charts them over 24 hours or 7 days (half-hour means over a week), one chart per measure, restarts marked (red after a crash), the line broken while the device was away, and the nearest sample shown on hover. Fixes #98
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #98
history.py):device_samples(migration 0021): one sample per device every 5 min from check-ins (signal, free heap), plus one at once on a restart carrying its reset reason. Pruned after 7 days, at most hourly.GET /api/devices/{id}/history?hours=24|168→ samples and restarts. Samples go with the device.Checked with a simulated week (night signal dips, a slow leak, a restart and a crash, an outage) in light and dark, 24 h and 7 days, hover, no console errors.
🤖 Generated with Claude Code