CostSizingStrategy configures a SizingStrategy for both cost estimation and runtime cost tracking.
(strategy cost.SizingStrategy)
| 891 | |
| 892 | // CostSizingStrategy configures a SizingStrategy for both cost estimation and runtime cost tracking. |
| 893 | func CostSizingStrategy(strategy cost.SizingStrategy) EnvOption { |
| 894 | return func(e *Env) (*Env, error) { |
| 895 | e.costConfig.strategy = strategy |
| 896 | return e, nil |
| 897 | } |
| 898 | } |
| 899 | |
| 900 | // CostModelVersion pins cost estimation and runtime cost tracking to a revision of the cost |
| 901 | // model's rules. |
no outgoing calls