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. |
||
|---|---|---|
| .. | ||
| builder.go | ||
| builder_test.go | ||
| formatter.go | ||
| formatter_test.go | ||
| trends.go | ||
| trends_test.go | ||
| types.go | ||