Budget planning
Converts an explicit window and availability target into a simple time-based downtime allowance.
Day 048 / DevOps / Availability
A dependency-free Python CLI that turns a time-based availability target into a downtime budget and compares supplied downtime using decimal arithmetic.
Converts an explicit window and availability target into a simple time-based downtime allowance.
Uses the unrounded budget for status while formatting observed availability separately.
Explains that calendar assumptions, exclusions, partial failures and contract rules need separate treatment.
Explicit measurement windows
Decimal downtime budgets
Observed availability
Remaining or exceeded minutes
Exact boundary classification
Bounded numeric validation
Text and JSON reports
Ten standard-library tests
Decimal, argparse and JSON provide the dependency-free CLI.
Rejects non-finite values, invalid windows, targets and downtime outside the measurement period.
Ten tests cover exact boundaries, tiny overruns, full outages, fractional windows, input validation and CLI JSON exit behavior.