{"action":"closed","issue":{"url":"https://api.github.com/repos/shiftr-io/rhone/issues/1","labels_url":"https://api.github.com/repos/shiftr-io/rhone/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/shiftr-io/rhone/issues/1/comments","events_url":"https://api.github.com/repos/shiftr-io/rhone/issues/1/events","html_url":"https://github.com/shiftr-io/rhone/issues/1","id":38995784,"number":1,"title":"Event collection","user":{"login":"256dpi","id":696886,"avatar_url":"https://avatars.githubusercontent.com/u/696886?v=3","gravatar_id":"","url":"https://api.github.com/users/256dpi","html_url":"https://github.com/256dpi","followers_url":"https://api.github.com/users/256dpi/followers","following_url":"https://api.github.com/users/256dpi/following{/other_user}","gists_url":"https://api.github.com/users/256dpi/gists{/gist_id}","starred_url":"https://api.github.com/users/256dpi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/256dpi/subscriptions","organizations_url":"https://api.github.com/users/256dpi/orgs","repos_url":"https://api.github.com/users/256dpi/repos","events_url":"https://api.github.com/users/256dpi/events{/privacy}","received_events_url":"https://api.github.com/users/256dpi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/shiftr-io/rhone/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2014-07-29T14:44:39Z","updated_at":"2015-06-30T15:44:07Z","closed_at":"2015-06-30T15:44:07Z","body":"A collector should be able to collect certain events. These events can be sent to a backend that supports logging of events (getsentry.com, keen.io).\r\n\r\n- This feature could be used for example to collect slow queries on MongoDB.\r\n\r\nTo support this feature the callback expects a third argument with an array of events.\r\n\r\n```javascript\r\nCollector.collect = function(report) {\r\n  report(null, {}, [\r\n    'an example event to be logged to a backend'\r\n  ]);\r\n}\r\n```"}}