@finalclass BudgetVerdictA report’s total judged against a budget: core’s Budget::check, the verdict
microvm cost --max-cost renders.
Constructor
Section titled “Constructor”BudgetVerdict declares no __new__ or __init__, so it is not constructed directly: an instance comes back from another call in this package.
Properties
Section titled “Properties”aborts
Section titled “aborts”aborts: boolWhether the caller’s judgement refuses the report: breached, under "abort".
basis: str"exact" or "lower-bound".
breached
Section titled “breached”breached: boolWhether the floor is over the ceiling. At the ceiling is within it.
floor: EstimatedUsdThe total’s floor: the whole estimate unless is_lower_bound.
is_lower_bound
Section titled “is_lower_bound”is_lower_bound: boolWhether the floor is a lower bound, because a line is unpriced.
max_usd
Section titled “max_usd”max_usd: EstimatedUsdThe ceiling, as the caller wrote it.
on_breach
Section titled “on_breach”on_breach: str"warn" or "abort": what the caller said a breach does.
overage
Section titled “overage”overage: EstimatedUsd | NoneHow far over the ceiling the floor is, when breached; at least that much for a lower bound.
unpriced_phases
Section titled “unpriced_phases”unpriced_phases: list[str]The phases whose lines are unpriced, sorted.
Methods
Section titled “Methods”render
Section titled “render”def render() -> strOne line for a human, the one microvm cost --max-cost prints.
to_dict
Section titled “to_dict”def to_dict() -> dictCore’s JSON shape for the verdict, as a dict: maxUsd, onBreach, basis, breached,
overageAtLeastUsd.
Special methods
Section titled “Special methods”__repr__
Section titled “__repr__”def __repr__() -> strProvenance
Section titled “Provenance”This page is generated from bindings/microvms-py/microvms.pyi by Griffe 2.3.0, run from site/scripts/gen-reference.mjs on every pnpm run sync, so an edit made here is overwritten by the next run.
To change the page, change the doc comment in the binding’s Rust source, then regenerate the declarations with mise run stubs. mise run stubs:check fails when the committed file no longer matches the source.