{"action":"opened","number":520,"pull_request":{"url":"https://api.github.com/repos/cachethq/Cachet/pulls/520","id":31353423,"html_url":"https://github.com/cachethq/Cachet/pull/520","diff_url":"https://github.com/cachethq/Cachet/pull/520.diff","patch_url":"https://github.com/cachethq/Cachet/pull/520.patch","issue_url":"https://api.github.com/repos/cachethq/Cachet/issues/520","number":520,"state":"open","locked":false,"title":"Allow metrics to calculate the sum or average. Closes #517.","user":{"login":"jbrooksuk","id":246103,"avatar_url":"https://avatars.githubusercontent.com/u/246103?v=3","gravatar_id":"","url":"https://api.github.com/users/jbrooksuk","html_url":"https://github.com/jbrooksuk","followers_url":"https://api.github.com/users/jbrooksuk/followers","following_url":"https://api.github.com/users/jbrooksuk/following{/other_user}","gists_url":"https://api.github.com/users/jbrooksuk/gists{/gist_id}","starred_url":"https://api.github.com/users/jbrooksuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbrooksuk/subscriptions","organizations_url":"https://api.github.com/users/jbrooksuk/orgs","repos_url":"https://api.github.com/users/jbrooksuk/repos","events_url":"https://api.github.com/users/jbrooksuk/events{/privacy}","received_events_url":"https://api.github.com/users/jbrooksuk/received_events","type":"User","site_admin":false},"body":"Also fixes a bug found in #515 where only the last graph would render.","created_at":"2015-03-17T16:41:48Z","updated_at":"2015-03-17T16:41:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cachethq/Cachet/pulls/520/commits","review_comments_url":"https://api.github.com/repos/cachethq/Cachet/pulls/520/comments","review_comment_url":"https://api.github.com/repos/cachethq/Cachet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cachethq/Cachet/issues/520/comments","statuses_url":"https://api.github.com/repos/cachethq/Cachet/statuses/dde2889306e80c4083063015148b483d3d0b20b2","head":{"label":"cachethq:metric-avg-sum","ref":"metric-avg-sum","sha":"dde2889306e80c4083063015148b483d3d0b20b2","user":{"login":"cachethq","id":9951502,"avatar_url":"https://avatars.githubusercontent.com/u/9951502?v=3","gravatar_id":"","url":"https://api.github.com/users/cachethq","html_url":"https://github.com/cachethq","followers_url":"https://api.github.com/users/cachethq/followers","following_url":"https://api.github.com/users/cachethq/following{/other_user}","gists_url":"https://api.github.com/users/cachethq/gists{/gist_id}","starred_url":"https://api.github.com/users/cachethq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cachethq/subscriptions","organizations_url":"https://api.github.com/users/cachethq/orgs","repos_url":"https://api.github.com/users/cachethq/repos","events_url":"https://api.github.com/users/cachethq/events{/privacy}","received_events_url":"https://api.github.com/users/cachethq/received_events","type":"Organization","site_admin":false},"repo":{"id":26730195,"name":"Cachet","full_name":"cachethq/Cachet","owner":{"login":"cachethq","id":9951502,"avatar_url":"https://avatars.githubusercontent.com/u/9951502?v=3","gravatar_id":"","url":"https://api.github.com/users/cachethq","html_url":"https://github.com/cachethq","followers_url":"https://api.github.com/users/cachethq/followers","following_url":"https://api.github.com/users/cachethq/following{/other_user}","gists_url":"https://api.github.com/users/cachethq/gists{/gist_id}","starred_url":"https://api.github.com/users/cachethq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cachethq/subscriptions","organizations_url":"https://api.github.com/users/cachethq/orgs","repos_url":"https://api.github.com/users/cachethq/repos","events_url":"https://api.github.com/users/cachethq/events{/privacy}","received_events_url":"https://api.github.com/users/cachethq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cachethq/Cachet","description":"An open source status page system written in PHP","fork":false,"url":"https://api.github.com/repos/cachethq/Cachet","forks_url":"https://api.github.com/repos/cachethq/Cachet/forks","keys_url":"https://api.github.com/repos/cachethq/Cachet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cachethq/Cachet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cachethq/Cachet/teams","hooks_url":"https://api.github.com/repos/cachethq/Cachet/hooks","issue_events_url":"https://api.github.com/repos/cachethq/Cachet/issues/events{/number}","events_url":"https://api.github.com/repos/cachethq/Cachet/events","assignees_url":"https://api.github.com/repos/cachethq/Cachet/assignees{/user}","branches_url":"https://api.github.com/repos/cachethq/Cachet/branches{/branch}","tags_url":"https://api.github.com/repos/cachethq/Cachet/tags","blobs_url":"https://api.github.com/repos/cachethq/Cachet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cachethq/Cachet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cachethq/Cachet/git/refs{/sha}","trees_url":"https://api.github.com/repos/cachethq/Cachet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cachethq/Cachet/statuses/{sha}","languages_url":"https://api.github.com/repos/cachethq/Cachet/languages","stargazers_url":"https://api.github.com/repos/cachethq/Cachet/stargazers","contributors_url":"https://api.github.com/repos/cachethq/Cachet/contributors","subscribers_url":"https://api.github.com/repos/cachethq/Cachet/subscribers","subscription_url":"https://api.github.com/repos/cachethq/Cachet/subscription","commits_url":"https://api.github.com/repos/cachethq/Cachet/commits{/sha}","git_commits_url":"https://api.github.com/repos/cachethq/Cachet/git/commits{/sha}","comments_url":"https://api.github.com/repos/cachethq/Cachet/comments{/number}","issue_comment_url":"https://api.github.com/repos/cachethq/Cachet/issues/comments{/number}","contents_url":"https://api.github.com/repos/cachethq/Cachet/contents/{+path}","compare_url":"https://api.github.com/repos/cachethq/Cachet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cachethq/Cachet/merges","archive_url":"https://api.github.com/repos/cachethq/Cachet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cachethq/Cachet/downloads","issues_url":"https://api.github.com/repos/cachethq/Cachet/issues{/number}","pulls_url":"https://api.github.com/repos/cachethq/Cachet/pulls{/number}","milestones_url":"https://api.github.com/repos/cachethq/Cachet/milestones{/number}","notifications_url":"https://api.github.com/repos/cachethq/Cachet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cachethq/Cachet/labels{/name}","releases_url":"https://api.github.com/repos/cachethq/Cachet/releases{/id}","created_at":"2014-11-16T22:23:11Z","updated_at":"2015-03-17T11:47:53Z","pushed_at":"2015-03-17T16:41:28Z","git_url":"git://github.com/cachethq/Cachet.git","ssh_url":"git@github.com:cachethq/Cachet.git","clone_url":"https://github.com/cachethq/Cachet.git","svn_url":"https://github.com/cachethq/Cachet","homepage":"https://cachethq.io","size":12905,"stargazers_count":1511,"watchers_count":1511,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":115,"mirror_url":null,"open_issues_count":27,"forks":115,"open_issues":27,"watchers":1511,"default_branch":"master"}},"base":{"label":"cachethq:master","ref":"master","sha":"f11d238258121d651b4ce17d4544a73854dd4263","user":{"login":"cachethq","id":9951502,"avatar_url":"https://avatars.githubusercontent.com/u/9951502?v=3","gravatar_id":"","url":"https://api.github.com/users/cachethq","html_url":"https://github.com/cachethq","followers_url":"https://api.github.com/users/cachethq/followers","following_url":"https://api.github.com/users/cachethq/following{/other_user}","gists_url":"https://api.github.com/users/cachethq/gists{/gist_id}","starred_url":"https://api.github.com/users/cachethq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cachethq/subscriptions","organizations_url":"https://api.github.com/users/cachethq/orgs","repos_url":"https://api.github.com/users/cachethq/repos","events_url":"https://api.github.com/users/cachethq/events{/privacy}","received_events_url":"https://api.github.com/users/cachethq/received_events","type":"Organization","site_admin":false},"repo":{"id":26730195,"name":"Cachet","full_name":"cachethq/Cachet","owner":{"login":"cachethq","id":9951502,"avatar_url":"https://avatars.githubusercontent.com/u/9951502?v=3","gravatar_id":"","url":"https://api.github.com/users/cachethq","html_url":"https://github.com/cachethq","followers_url":"https://api.github.com/users/cachethq/followers","following_url":"https://api.github.com/users/cachethq/following{/other_user}","gists_url":"https://api.github.com/users/cachethq/gists{/gist_id}","starred_url":"https://api.github.com/users/cachethq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cachethq/subscriptions","organizations_url":"https://api.github.com/users/cachethq/orgs","repos_url":"https://api.github.com/users/cachethq/repos","events_url":"https://api.github.com/users/cachethq/events{/privacy}","received_events_url":"https://api.github.com/users/cachethq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cachethq/Cachet","description":"An open source status page system written in PHP","fork":false,"url":"https://api.github.com/repos/cachethq/Cachet","forks_url":"https://api.github.com/repos/cachethq/Cachet/forks","keys_url":"https://api.github.com/repos/cachethq/Cachet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cachethq/Cachet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cachethq/Cachet/teams","hooks_url":"https://api.github.com/repos/cachethq/Cachet/hooks","issue_events_url":"https://api.github.com/repos/cachethq/Cachet/issues/events{/number}","events_url":"https://api.github.com/repos/cachethq/Cachet/events","assignees_url":"https://api.github.com/repos/cachethq/Cachet/assignees{/user}","branches_url":"https://api.github.com/repos/cachethq/Cachet/branches{/branch}","tags_url":"https://api.github.com/repos/cachethq/Cachet/tags","blobs_url":"https://api.github.com/repos/cachethq/Cachet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cachethq/Cachet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cachethq/Cachet/git/refs{/sha}","trees_url":"https://api.github.com/repos/cachethq/Cachet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cachethq/Cachet/statuses/{sha}","languages_url":"https://api.github.com/repos/cachethq/Cachet/languages","stargazers_url":"https://api.github.com/repos/cachethq/Cachet/stargazers","contributors_url":"https://api.github.com/repos/cachethq/Cachet/contributors","subscribers_url":"https://api.github.com/repos/cachethq/Cachet/subscribers","subscription_url":"https://api.github.com/repos/cachethq/Cachet/subscription","commits_url":"https://api.github.com/repos/cachethq/Cachet/commits{/sha}","git_commits_url":"https://api.github.com/repos/cachethq/Cachet/git/commits{/sha}","comments_url":"https://api.github.com/repos/cachethq/Cachet/comments{/number}","issue_comment_url":"https://api.github.com/repos/cachethq/Cachet/issues/comments{/number}","contents_url":"https://api.github.com/repos/cachethq/Cachet/contents/{+path}","compare_url":"https://api.github.com/repos/cachethq/Cachet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cachethq/Cachet/merges","archive_url":"https://api.github.com/repos/cachethq/Cachet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cachethq/Cachet/downloads","issues_url":"https://api.github.com/repos/cachethq/Cachet/issues{/number}","pulls_url":"https://api.github.com/repos/cachethq/Cachet/pulls{/number}","milestones_url":"https://api.github.com/repos/cachethq/Cachet/milestones{/number}","notifications_url":"https://api.github.com/repos/cachethq/Cachet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cachethq/Cachet/labels{/name}","releases_url":"https://api.github.com/repos/cachethq/Cachet/releases{/id}","created_at":"2014-11-16T22:23:11Z","updated_at":"2015-03-17T11:47:53Z","pushed_at":"2015-03-17T16:41:28Z","git_url":"git://github.com/cachethq/Cachet.git","ssh_url":"git@github.com:cachethq/Cachet.git","clone_url":"https://github.com/cachethq/Cachet.git","svn_url":"https://github.com/cachethq/Cachet","homepage":"https://cachethq.io","size":12905,"stargazers_count":1511,"watchers_count":1511,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":115,"mirror_url":null,"open_issues_count":27,"forks":115,"open_issues":27,"watchers":1511,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cachethq/Cachet/pulls/520"},"html":{"href":"https://github.com/cachethq/Cachet/pull/520"},"issue":{"href":"https://api.github.com/repos/cachethq/Cachet/issues/520"},"comments":{"href":"https://api.github.com/repos/cachethq/Cachet/issues/520/comments"},"review_comments":{"href":"https://api.github.com/repos/cachethq/Cachet/pulls/520/comments"},"review_comment":{"href":"https://api.github.com/repos/cachethq/Cachet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cachethq/Cachet/pulls/520/commits"},"statuses":{"href":"https://api.github.com/repos/cachethq/Cachet/statuses/dde2889306e80c4083063015148b483d3d0b20b2"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":71,"deletions":26,"changed_files":10}}