{"action":"created","issue":{"url":"https://api.github.com/repos/rarestep/metrics-closeio/issues/2","labels_url":"https://api.github.com/repos/rarestep/metrics-closeio/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/rarestep/metrics-closeio/issues/2/comments","events_url":"https://api.github.com/repos/rarestep/metrics-closeio/issues/2/events","html_url":"https://github.com/rarestep/metrics-closeio/issues/2","id":59658452,"number":2,"title":"Metrics returning an object instead of simple numeric value","user":{"login":"summerville","id":2989,"avatar_url":"https://avatars.githubusercontent.com/u/2989?v=3","gravatar_id":"","url":"https://api.github.com/users/summerville","html_url":"https://github.com/summerville","followers_url":"https://api.github.com/users/summerville/followers","following_url":"https://api.github.com/users/summerville/following{/other_user}","gists_url":"https://api.github.com/users/summerville/gists{/gist_id}","starred_url":"https://api.github.com/users/summerville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/summerville/subscriptions","organizations_url":"https://api.github.com/users/summerville/orgs","repos_url":"https://api.github.com/users/summerville/repos","events_url":"https://api.github.com/users/summerville/events{/privacy}","received_events_url":"https://api.github.com/users/summerville/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"aptinio","id":18344,"avatar_url":"https://avatars.githubusercontent.com/u/18344?v=3","gravatar_id":"","url":"https://api.github.com/users/aptinio","html_url":"https://github.com/aptinio","followers_url":"https://api.github.com/users/aptinio/followers","following_url":"https://api.github.com/users/aptinio/following{/other_user}","gists_url":"https://api.github.com/users/aptinio/gists{/gist_id}","starred_url":"https://api.github.com/users/aptinio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aptinio/subscriptions","organizations_url":"https://api.github.com/users/aptinio/orgs","repos_url":"https://api.github.com/users/aptinio/repos","events_url":"https://api.github.com/users/aptinio/events{/privacy}","received_events_url":"https://api.github.com/users/aptinio/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2015-03-03T15:35:09Z","updated_at":"2015-03-04T05:11:38Z","closed_at":null,"body":"Looks like all the metrics are returning an *object* instead of a *number*. For instance, the `\"closeio leads created last week\"` metric returns `{\"15 minutes ago\":120}` instead of just `120` and `\"closeio active opportunities expected value\"` metric returns `{\"19 minutes ago\":24370736}` instead of just `24370736`.\r\n\r\nSeems like some additional logic might be needed on `line 62`:\r\n```\r\nmetrics.set(key, results[prop])\r\n```"},"comment":{"url":"https://api.github.com/repos/rarestep/metrics-closeio/issues/comments/77098315","html_url":"https://github.com/rarestep/metrics-closeio/issues/2#issuecomment-77098315","issue_url":"https://api.github.com/repos/rarestep/metrics-closeio/issues/2","id":77098315,"user":{"login":"summerville","id":2989,"avatar_url":"https://avatars.githubusercontent.com/u/2989?v=3","gravatar_id":"","url":"https://api.github.com/users/summerville","html_url":"https://github.com/summerville","followers_url":"https://api.github.com/users/summerville/followers","following_url":"https://api.github.com/users/summerville/following{/other_user}","gists_url":"https://api.github.com/users/summerville/gists{/gist_id}","starred_url":"https://api.github.com/users/summerville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/summerville/subscriptions","organizations_url":"https://api.github.com/users/summerville/orgs","repos_url":"https://api.github.com/users/summerville/repos","events_url":"https://api.github.com/users/summerville/events{/privacy}","received_events_url":"https://api.github.com/users/summerville/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T05:11:38Z","updated_at":"2015-03-04T05:11:38Z","body":"Ah, nice find. Hadn't seen that update. I'll make the changes and will keep you posted. Thanks Aaron!"}}