Skip to content

Instantly share code, notes, and snippets.

@angiebui
Last active January 17, 2017 18:47
Show Gist options
  • Save angiebui/6d0aadff2cc0468795c4661b5b7a1aef to your computer and use it in GitHub Desktop.
Save angiebui/6d0aadff2cc0468795c4661b5b7a1aef to your computer and use it in GitHub Desktop.
Example: Twilio Business Metrics to Analytics Server
{
:total_inbound_calls => 274,
:cx_total_inbound_calls => 191,
:spec_ops_total_inbound_calls => 79,
:total_inbound_calls_canceled => 30,
:cx_total_inbound_calls_canceled => 25,
:spec_ops_total_inbound_calls_canceled => 4,
:average_speed_for_call_answer => 15,
:cx_average_speed_for_call_answer => 17,
:spec_ops_average_speed_for_call_answer => 12,
:cx_worker_activity_durations => [
[0] {
"sid" => "WA4f0e783bb9cfbdcf637497**********",
"friendly_name" => "Offline",
"min" => 0,
"max" => 86400,
"avg" => 49694.0,
"total" => 1639934
},
[1] {
"sid" => "WA4f0e783bb9cfbdcf637497**********",
"friendly_name" => "Idle",
"min" => 0,
"max" => 4927,
"avg" => 196.0,
"total" => 68245
},
[2] {
"sid" => "WA4f0e783bb9cfbdcf637497**********",
"friendly_name" => "Busy",
"min" => 0,
"max" => 1084,
"avg" => 128.0,
"total" => 40216
},
[3] {
"sid" => "WA4f0e783bb9cfbdcf637497**********",
"friendly_name" => "Reserved",
"min" => 0,
"max" => 21,
"avg" => 4.0,
"total" => 1150
},
[4] {
"sid" => "WA4f0e783bb9cfbdcf637497**********",
"friendly_name" => "Away",
"min" => 0,
"max" => 86400,
"avg" => 1284.0,
"total" => 165668
},
[5] {
"sid" => "WA4f0e783bb9cfbdcf637497**********",
"friendly_name" => "Wrap-Up",
"min" => 0,
"max" => 13075,
"avg" => 81.0,
"total" => 38651
}
],
:spec_ops_worker_activity_durations => [
[0] {
"sid" => "WA4f0e783bb9cfbdcf637497**********",
"friendly_name" => "Offline",
"min" => 0,
"max" => 86400,
"avg" => 49694.0,
"total" => 1639934
},
[1] {
"sid" => "WA4f0e783bb9cfbdcf637497**********",
"friendly_name" => "Idle",
"min" => 0,
"max" => 4927,
"avg" => 196.0,
"total" => 68245
},
[2] {
"sid" => "WA4f0e783bb9cfbdcf637497**********",
"friendly_name" => "Busy",
"min" => 0,
"max" => 1084,
"avg" => 128.0,
"total" => 40216
},
[3] {
"sid" => "WA4f0e783bb9cfbdcf637497**********",
"friendly_name" => "Reserved",
"min" => 0,
"max" => 21,
"avg" => 4.0,
"total" => 1150
},
[4] {
"sid" => "WA4f0e783bb9cfbdcf637497**********",
"friendly_name" => "Away",
"min" => 0,
"max" => 86400,
"avg" => 1284.0,
"total" => 165668
},
[5] {
"sid" => "WA4f0e783bb9cfbdcf637497**********",
"friendly_name" => "Wrap-Up",
"min" => 0,
"max" => 13075,
"avg" => 81.0,
"total" => 38651
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment