{"action":"created","issue":{"url":"https://api.github.com/repos/ShoppinPal/vend-tools/issues/17","labels_url":"https://api.github.com/repos/ShoppinPal/vend-tools/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/ShoppinPal/vend-tools/issues/17/comments","events_url":"https://api.github.com/repos/ShoppinPal/vend-tools/issues/17/events","html_url":"https://github.com/ShoppinPal/vend-tools/issues/17","id":60295407,"number":17,"title":"Collect usage metrics","user":{"login":"pulkitsinghal","id":821963,"avatar_url":"https://avatars.githubusercontent.com/u/821963?v=3","gravatar_id":"","url":"https://api.github.com/users/pulkitsinghal","html_url":"https://github.com/pulkitsinghal","followers_url":"https://api.github.com/users/pulkitsinghal/followers","following_url":"https://api.github.com/users/pulkitsinghal/following{/other_user}","gists_url":"https://api.github.com/users/pulkitsinghal/gists{/gist_id}","starred_url":"https://api.github.com/users/pulkitsinghal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulkitsinghal/subscriptions","organizations_url":"https://api.github.com/users/pulkitsinghal/orgs","repos_url":"https://api.github.com/users/pulkitsinghal/repos","events_url":"https://api.github.com/users/pulkitsinghal/events{/privacy}","received_events_url":"https://api.github.com/users/pulkitsinghal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-09T03:55:02Z","updated_at":"2015-03-09T03:58:37Z","closed_at":null,"body":"As of now, I don't think that Vend collects API usage metrics. It would be neat to:\r\n1. collect API usage metrics, based on the number of times a method of the underlying `vend-nodejs-sdk` is invoked\r\n2. collect metrics on which commands are used most often\r\n\r\nThis data can stay on the user's own machine and should only be shared upstream, in an aggregated and anonymous manner ... when a user explicitly decides to share it ... by toggling the `shareMyUsageMetrics` flag in `settings.json` to `true`"},"comment":{"url":"https://api.github.com/repos/ShoppinPal/vend-tools/issues/comments/77797072","html_url":"https://github.com/ShoppinPal/vend-tools/issues/17#issuecomment-77797072","issue_url":"https://api.github.com/repos/ShoppinPal/vend-tools/issues/17","id":77797072,"user":{"login":"pulkitsinghal","id":821963,"avatar_url":"https://avatars.githubusercontent.com/u/821963?v=3","gravatar_id":"","url":"https://api.github.com/users/pulkitsinghal","html_url":"https://github.com/pulkitsinghal","followers_url":"https://api.github.com/users/pulkitsinghal/followers","following_url":"https://api.github.com/users/pulkitsinghal/following{/other_user}","gists_url":"https://api.github.com/users/pulkitsinghal/gists{/gist_id}","starred_url":"https://api.github.com/users/pulkitsinghal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulkitsinghal/subscriptions","organizations_url":"https://api.github.com/users/pulkitsinghal/orgs","repos_url":"https://api.github.com/users/pulkitsinghal/repos","events_url":"https://api.github.com/users/pulkitsinghal/events{/privacy}","received_events_url":"https://api.github.com/users/pulkitsinghal/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T03:58:37Z","updated_at":"2015-03-09T03:58:37Z","body":"A new line can be added to `usageMetrics.json` file each time to track a usage event. This should help if a user decides to share metrics after X amount of time after using vend-tools (say a month?) and should make it simple to continue sharing in a semi-live fashion moving forward.\r\n\r\nWe will probably need some kind of proxy with DB credentials that can avoid DDOS and still tack on authN headers to persist the data in a backend."}}