CTM Business case update
This commit is contained in:
@@ -170,6 +170,11 @@ def _monthly_units(site: SiteInput, feature: str, scope: FeatureScope,
|
||||
# can be used to scope to a subset of interactions (e.g. non-English only).
|
||||
eligibility = scope.eligibility_pct if scope.eligibility_pct is not None else 1.0
|
||||
return site.voice_volume_monthly * eligibility # translations
|
||||
if feature == "Predictive Routing":
|
||||
# Every predictively-routed voice interaction consumes the PR meter;
|
||||
# eligibility_pct scopes to the share of volume on PR-enabled queues.
|
||||
eligibility = scope.eligibility_pct if scope.eligibility_pct is not None else 1.0
|
||||
return site.voice_volume_monthly * eligibility # routed interactions
|
||||
raise KeyError(f"No consumption-volume mapping for feature {feature!r}")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user