Skip to content

Commit e1c2510

Browse files
committed
Sample usage of the script
1 parent 21de184 commit e1c2510

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

example.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
from erlang import get_erlang_c
2+
3+
volume = 200
4+
aht = 180 # seconds; 3 mins
5+
traffic_intensity = (volume * 3) / 60 # 10
6+
target_answer_time = 20 # seconds
7+
target_sla = .80 # industry standard is 80
8+
shrinkage = 0.30 # industry standard is 80 as well
9+
10+
results = get_erlang_c(
11+
volume = volume,
12+
traffic_intesity = traffic_intensity,
13+
target_answer_time = target_answer_time,
14+
aht_seconds = aht,
15+
target_sla = target_sla,
16+
shrinkage = shrinkage
17+
)
18+
19+
for i in results:
20+
print(f'{i}: {results[i]}')
21+
22+

0 commit comments

Comments
 (0)