Package com.tnsai.quality.cost
Class CostBudgetEvaluator
java.lang.Object
com.tnsai.quality.cost.CostBudgetEvaluator
Resolves a
CostBudget's current BudgetState by
querying its CostBudgetStore for cumulative spend (issue #82).
Stateless wrapper — the evaluator just routes the budget's
scope/period query to the store and packages the result. Designed
so the (follow-up) CostBudgetEnforcer hook can read state
without coupling itself to the store's API directly.
- Since:
- 0.5.0 (issue #82)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(CostBudget budget) Evaluate the budget against current spend in the store.evaluate(CostBudget budget, Instant evaluatedAt) Evaluate as ofevaluatedAt— thenowthe resulting state'sBudgetState.evaluatedAtcarries.
-
Constructor Details
-
CostBudgetEvaluator
-
-
Method Details
-
evaluate
Evaluate the budget against current spend in the store. -
evaluate
Evaluate as ofevaluatedAt— thenowthe resulting state'sBudgetState.evaluatedAtcarries. The store's "current spend over period" query still uses wall-clock; passingevaluatedAtonly stamps the snapshot.
-