Pulse/pkg
rcourtman 4c1d7a2797 Fix PMG API parameter issues causing 400 errors
Related to #614

Corrects three issues with PMG monitoring:

1. Remove unsupported timeframe parameter from GetMailStatistics
   - PMG API /statistics/mail does not accept timeframe parameter
   - Previously sent "timeframe=day" causing 400 error
   - API returns current day statistics by default

2. Fix GetMailCount timespan parameter to use seconds
   - Changed from 24 (hours) to 86400 (seconds)
   - PMG API expects timespan in seconds, not hours
   - Previously sent "timespan=24" causing 400 error

3. Update function signature and tests
   - Renamed GetMailCount parameter from timespanHours to timespanSeconds
   - Updated test expectations to match corrected API calls
   - Tests verify parameters are sent correctly

These changes align the PMG client with actual PMG API requirements,
fixing the data population issues reported in v4.25.0.
2025-11-05 19:28:37 +00:00
..
agents Refactor: Code cleanup and localStorage consolidation 2025-11-04 21:50:46 +00:00
discovery Update Pulse install flow and related components 2025-10-21 19:58:53 +00:00
pbs Fix settings security tab navigation 2025-10-11 23:29:47 +00:00
pmg Fix PMG API parameter issues causing 400 errors 2025-11-05 19:28:37 +00:00
proxmox Refactor: Code cleanup and localStorage consolidation 2025-11-04 21:50:46 +00:00
tlsutil Add DNS caching to reduce excessive DNS queries 2025-11-05 18:25:38 +00:00