Skip to content

BudgetVerdict

A report’s total judged against a budget: core’s Budget::check, the verdict microvm cost --max-cost renders.

get aborts(): boolean;

Whether the caller’s judgement refuses the report: breached, under "abort".

boolean


get basis(): string;

"exact" or "lower-bound".

string


get breached(): boolean;

Whether the floor is over the ceiling. At the ceiling is within it.

boolean


get floor(): EstimatedUsd;

The total’s floor: the whole estimate unless isLowerBound.

EstimatedUsd


get isLowerBound(): boolean;

Whether the floor is a lower bound, because a line is unpriced.

boolean


get maxUsd(): EstimatedUsd;

The ceiling, as the caller wrote it.

EstimatedUsd


get onBreach(): string;

"warn" or "abort": what the caller said a breach does.

string


get overage(): EstimatedUsd | null;

How far over the ceiling the floor is, when breached; at least that much for a lower bound.

EstimatedUsd | null


get unpricedPhases(): string[];

The phases whose lines are unpriced, sorted.

string[]

render(): string;

One line for a human, the one microvm cost --max-cost prints.

string


toJson(): string;

Core’s JSON shape for the verdict, as a JSON string: maxUsd, onBreach, basis, breached, overageAtLeastUsd.

string

This page is generated from bindings/microvms-js/index.d.ts by TypeDoc 0.28.20 and typedoc-plugin-markdown 4.13.1, 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 dts. mise run dts:check fails when the committed file no longer matches the source.