Commit cbe34c5
Get-sqmDiskSpaceReport: snapshot-history growth forecast (method B1) (1.7.0.0)
Replaces the default-trace AutoGrow forecast (empty for pre-sized DBs and unreliable due to the
short default-trace retention) with a self-collected snapshot history plus linear least-squares
regression.
- Each run appends per-volume usage to History\DiskHistory_<instance>.json and fits UsedGB over the
last -HistoryDays days: GB/day, DaysUntilFull, and a confidence (R²/point count: Low/Medium/High).
- Measures the actual consumption trend (incl. data growth inside pre-sized files) and is keyed by
volume_mount_point (mount-point safe).
- Below -MinDataPoints snapshots a volume is reported as "collecting (n of m)" instead of silent n/a.
- New params -HistoryPath/-MinDataPoints/-NoHistory; new fields DataPoints/ForecastConfidence/
ForecastBasis; report columns GB/Tag, DaysFull, Konf. -WhatIf does not persist history.
- Verified against a local SQL 2022: cold start collects, seeded history yields ~2 GB/day / correct
DaysUntilFull / High confidence.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 9e257df commit cbe34c5
3 files changed
Lines changed: 244 additions & 78 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
3 | 23 | | |
4 | 24 | | |
5 | 25 | | |
| |||
0 commit comments