Community
Track Dispatcher Reponse Times
Hey all,
I was able to filter get messages and sort it into a python dictionary that recorded all messages driver's receive or send.
I know it might not be perfect but ideally we want to track how long drivers wait until anyone from our company responds to them. My code was going to be something like this
for x in dictionary:
if x[id] == driver
j=0
if dictionary[x][id] == dictionary[x+1][id] //check if next message is same driver
j++
elseif dictionary[x][id] != dictionary[x+1][id] //next message was dispatcher
array[x+j][dispatcher] =array[x+j][dispatcher]+ [x+j][time] - [x][time] //shove it into an array of
dispatchers to sum time that we average later
else //pretty sure i'll fault if the next message doesnt exist
pass
I know there are a lot of problems. For example, if a driver and dispatcher had a conversation and a driver ended it with statement that doesn't require a response like "Thank You" Also some drivers ask questions in the middle of the night. My idea was to take the unix time and mod it by 86400 seconds in a day to get the hour. Then filter and ignore messages during specific times.
Another possibility I thought of was if the disparity between response time was too high; just ignore it.
If anyone got bright ideas that can help me out would be greatly appreciated. It might also be impossible to get any accurate or useful data but I thought it might be worth a shot.