Skip to content

Commit

Permalink
WHISTLE-1441: agent stats view
Browse files Browse the repository at this point in the history
  • Loading branch information
James Aimonetti committed Dec 5, 2012
1 parent f095667 commit bfa0903
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions whistle_apps/apps/acdc/priv/couchdb/views/agent_stats.json
@@ -0,0 +1,11 @@
{ "_id":"_design/agent_stats"
,"language":"javascript"
,"views":{
"status_log": {
"map":"function(doc) { if ( doc.type != 'agent_partial' || typeof doc.account_id == 'undefined' | typeof doc.agent_id == 'undefined' ) return; emit([doc.timestamp, doc.account_id, doc.agent_id], doc.status); }"
},
"call_log": {
"map":"function(doc) { if ( doc.type != 'call_partial' || typeof doc.account_id == 'undefined' | typeof doc.agent_id == 'undefined' ) return; emit([doc.timestamp, doc.account_id, doc.agent_id, doc.queue_id, doc.call_id], doc.status); }"
}
}
}

0 comments on commit bfa0903

Please sign in to comment.