WithSizingStrategy sets the SizingStrategy used to resolve sizes during both cost estimation and runtime cost tracking. A nil strategy is ignored, leaving the default in place.
(strategy SizingStrategy)
| 221 | // |
| 222 | // A nil strategy is ignored, leaving the default in place. |
| 223 | func WithSizingStrategy(strategy SizingStrategy) ModelOption { |
| 224 | return func(o *modelOptions) { |
| 225 | o.hasStrategy = true |
| 226 | if strategy != nil { |
| 227 | o.strategy = strategy |
| 228 | } |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | // ModelVersion pins the revision of the cost model's estimation and runtime tracking rules. |
| 233 | // |
no outgoing calls