metrics-helpscout
v0.0.1
Published
Helpscout plugin for segmentio/metrics
Downloads
6
Readme
metrics-helpscout
A Helpscout plugin for segmentio/metrics.
Use this plugin to visualize your active ticket count, and who is behind on their tickets.
Installation
$ npm install metrics-helpscout
Example
var Metrics = require('metrics');
var helpscout = require('metrics-helpscout');
new Metrics()
.every('30m', helpscout('apiKey', ['mailbox-id']));
Metrics
The metrics exposed by this plugin are:
Total active:
helpscout active tickets
- the total number of active tickets in teh mailboxes
Weekly:
helpscout tickets modified avg
- the trailing average of tickets modified in the last 7 dayshelpscout tickets modified last week
- tickets modified in the last 7 dayshelpscout tickets modified 2 weeks ago
- tickets modified 2 weeks agohelpscout tickets created avg
- trailing average of tickets created in the last 7 dayshelpscout tickets created last week
- tickets created in the last 7 dayshelpscout tickets created 2 weeks ago
- tickets created two weeks ago
By Owner:
helpscout active tickets by owner
- active tickets by owner
{
"steve": 14,
"mark": 3
}
Oldest Ticket:
helpscout oldest ticket time
- the javacript date of the oldest tickethelpscout oldest ticket owner
- the owner of the oldest tickethelpscout oldest ticket timeago
- the timeago string of the oldest tickethelpscout oldest ticket shaming
- Example: "Bob: 2 days of no response"
Winners:
helpscout first place owner
- the person who closed the most tickets todayhelpscout first place closed
- the winning number of ticketshelpscout second place owner
- the second place personhelpscout second place closed
- the second winning number of ticketshelpscout tickets closed today by owner
- tickets closed today by owner
{
"devin": 23,
"randy": 15
}
Quickstart
Here's a full example of a Geckoboard dashboard showing support metrics:
var Metrics = require('metrics');
var helpscout = require('metrics-helpscout');
var geckoboard = require('geckoboard')('api-key');
Metrics()
.every('10m', helpscout('apiKey', 'mailbox-id'))
.use(function (metrics) {
metrics.on('helpscout tickets modified avg', geckoboard('widget-id').number);
});
License
MIT