Pulse/internal/ai/context
rcourtman 9176e54b80 fix: use 24h window for MetricSamples (matches in-memory retention)
The in-memory MetricsHistory only retains 24 hours of data, not 7 days.
Changed computeGuestMetricSamples to use trendWindow24h instead of
trendWindow7d, and reduced sample count from 24 to 12 points.

This ensures the LLM actually receives metric samples in the context,
which wasn't happening before because the 7-day query returned empty data.
2025-12-21 22:19:40 +00:00
..
builder.go fix: use 24h window for MetricSamples (matches in-memory retention) 2025-12-21 22:19:40 +00:00
builder_test.go fix: Allow Host Agent thresholds to be set to 0 to disable alerting. Related to #864 2025-12-20 20:25:20 +00:00
formatter.go fix: use 24h window for MetricSamples (matches in-memory retention) 2025-12-21 22:19:40 +00:00
formatter_test.go feat(ai): pass raw metric samples to LLM for pattern interpretation 2025-12-21 21:09:24 +00:00
trends.go feat(thresholds): add collapsible accordion sections and UX improvements 2025-12-18 15:47:44 +00:00
trends_test.go fix: Allow Host Agent thresholds to be set to 0 to disable alerting. Related to #864 2025-12-20 20:25:20 +00:00
types.go feat(ai): pass raw metric samples to LLM for pattern interpretation 2025-12-21 21:09:24 +00:00