Skip to main content

target_cost

Function target_cost 

Source
pub fn target_cost(scope: &ActivityScope) -> TargetCost
Expand description

scope’s budget cost with this module’s demand figure substituted for c3’s estimate.

This is the reporting seam c4’s specification requires — “report the per-poll request count to c3’s budget model rather than estimating it there” — and TargetCost::with_demand_requests_per_repository is where c3 left it open. Callers that project a budget (f1’s host show, f2’s repo add and org add, g3’s settings) should build their TargetCost through this function rather than through TargetCost::from_activity_scope directly.