You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1cc0aaa
Browse filesBrowse the repository at this point in the historyBrowse files
feat(cli): configurable --coverage-lookback-days for --target-coverage (closes#360) (#794)
The GetReservationCoverage lookback was hardcoded to 30 days. Operators
reconciling CUDly's ExistingCoverage column against the AWS console
coverage-report export need to match the window used by each. Add
--coverage-lookback-days (default 30, matching CE's UI default) that
threads through Config.CoverageLookbackDays into GetRICoverageMap.
Validation rejects values < 1. The fetchExistingCoverage fallback guard
(lookbackDays <= 0 -> 30) is kept as a defensive belt-and-suspenders
path for callers that bypass flag parsing (e.g. API callers).
AppLogger.Printf("\n🔎 Fetching existing-RI coverage from Cost Explorer per-account across %d regions (lookback %d days)...\n", len(regions), existingCoverageLookbackDays)
AppLogger.Printf("\n🔎 Fetching existing-RI coverage from Cost Explorer per-account across %d regions (lookback %d days)...\n", len(regions), lookbackDays)
0 commit comments