{"action":"closed","issue":{"url":"https://api.github.com/repos/strongloop/strong-arc/issues/1090","labels_url":"https://api.github.com/repos/strongloop/strong-arc/issues/1090/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/strong-arc/issues/1090/comments","events_url":"https://api.github.com/repos/strongloop/strong-arc/issues/1090/events","html_url":"https://github.com/strongloop/strong-arc/issues/1090","id":63045936,"number":1090,"title":"Spike on API Metrics: store API metrics in browser for hour and day usage","user":{"login":"altsang","id":2261105,"avatar_url":"https://avatars.githubusercontent.com/u/2261105?v=3","gravatar_id":"","url":"https://api.github.com/users/altsang","html_url":"https://github.com/altsang","followers_url":"https://api.github.com/users/altsang/followers","following_url":"https://api.github.com/users/altsang/following{/other_user}","gists_url":"https://api.github.com/users/altsang/gists{/gist_id}","starred_url":"https://api.github.com/users/altsang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/altsang/subscriptions","organizations_url":"https://api.github.com/users/altsang/orgs","repos_url":"https://api.github.com/users/altsang/repos","events_url":"https://api.github.com/users/altsang/events{/privacy}","received_events_url":"https://api.github.com/users/altsang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/strong-arc/labels/%23plan","name":"#plan","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"anthonyettinger","id":8658514,"avatar_url":"https://avatars.githubusercontent.com/u/8658514?v=3","gravatar_id":"","url":"https://api.github.com/users/anthonyettinger","html_url":"https://github.com/anthonyettinger","followers_url":"https://api.github.com/users/anthonyettinger/followers","following_url":"https://api.github.com/users/anthonyettinger/following{/other_user}","gists_url":"https://api.github.com/users/anthonyettinger/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonyettinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonyettinger/subscriptions","organizations_url":"https://api.github.com/users/anthonyettinger/orgs","repos_url":"https://api.github.com/users/anthonyettinger/repos","events_url":"https://api.github.com/users/anthonyettinger/events{/privacy}","received_events_url":"https://api.github.com/users/anthonyettinger/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/strongloop/strong-arc/milestones/8","html_url":"https://github.com/strongloop/strong-arc/milestones/%23Epic:%20Metrics","labels_url":"https://api.github.com/repos/strongloop/strong-arc/milestones/8/labels","id":847097,"number":8,"title":"#Epic: Metrics","description":"","creator":{"login":"altsang","id":2261105,"avatar_url":"https://avatars.githubusercontent.com/u/2261105?v=3","gravatar_id":"","url":"https://api.github.com/users/altsang","html_url":"https://github.com/altsang","followers_url":"https://api.github.com/users/altsang/followers","following_url":"https://api.github.com/users/altsang/following{/other_user}","gists_url":"https://api.github.com/users/altsang/gists{/gist_id}","starred_url":"https://api.github.com/users/altsang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/altsang/subscriptions","organizations_url":"https://api.github.com/users/altsang/orgs","repos_url":"https://api.github.com/users/altsang/repos","events_url":"https://api.github.com/users/altsang/events{/privacy}","received_events_url":"https://api.github.com/users/altsang/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":10,"state":"open","created_at":"2014-10-30T18:04:33Z","updated_at":"2015-04-07T06:11:15Z","due_on":"2014-12-01T08:00:00Z","closed_at":null},"comments":4,"created_at":"2015-03-19T17:24:20Z","updated_at":"2015-04-07T06:11:15Z","closed_at":"2015-04-07T06:11:15Z","body":"As an business analyst or devops engineer, I want to be able to see at least 1 hour worth of api invocation data in Arc, so that I can get an idea of  usage per endpoint at the model level.\r\n\r\nThis is currently considered to be in a separate module from Metrics for full UX - https://strongloop.atlassian.net/wiki/display/SL/2015/03/09/API+Usage+Metrics+-+Arc+UX\r\nThe strong-pm collector will store and aggregate metric counts every 5 minutes.  This will yield 12 points per hour.  This will be kept in memory.  \r\n\r\n- [ ] If Arc connects to the strong-pm and there is an hour of data - we want to go ahead and display this if Arc's local store is empty\r\n- [ ] if Arc connects to strong-pm and there is an hour of data - we want to consolidate this with Arc's local store if there is data already there - i.e. a diff and display what is new\r\n- [ ]  if the agent goes away, then it is at _LEAST_ 5 minutes before the next interval to avoid this - we would want to be able to show Metrics data for API without having to wait for 5 minutes.\r\n- [ ] we want Arc to aggregate 1 day's worth of data and store on browser\r\n\r\n@chandadharap - I put @jtary for now because @seanbrookes is on Tracing, pls assign an owner when appropriate"}}