{"action":"closed","number":6,"pull_request":{"url":"https://api.github.com/repos/labitat/blipserver/pulls/6","id":32606719,"html_url":"https://github.com/labitat/blipserver/pull/6","diff_url":"https://github.com/labitat/blipserver/pull/6.diff","patch_url":"https://github.com/labitat/blipserver/pull/6.patch","issue_url":"https://api.github.com/repos/labitat/blipserver/issues/6","number":6,"state":"closed","locked":false,"title":"Better hourly aggregation that handles missing blips.","user":{"login":"knielsen","id":79553,"avatar_url":"https://avatars.githubusercontent.com/u/79553?v=3","gravatar_id":"","url":"https://api.github.com/users/knielsen","html_url":"https://github.com/knielsen","followers_url":"https://api.github.com/users/knielsen/followers","following_url":"https://api.github.com/users/knielsen/following{/other_user}","gists_url":"https://api.github.com/users/knielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/knielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knielsen/subscriptions","organizations_url":"https://api.github.com/users/knielsen/orgs","repos_url":"https://api.github.com/users/knielsen/repos","events_url":"https://api.github.com/users/knielsen/events{/privacy}","received_events_url":"https://api.github.com/users/knielsen/received_events","type":"User","site_admin":false},"body":"Use the sum of all blips to get the length of the period actually measured (in\r\ncase the blipserver might have been down for a few minutes), thus getting\r\nmore accurate estimate for partially measured periods.\r\n\r\nAnd also record the min and max blip length in each period.","created_at":"2015-04-03T18:29:35Z","updated_at":"2015-04-06T20:19:57Z","closed_at":"2015-04-06T20:19:57Z","merged_at":"2015-04-06T20:19:57Z","merge_commit_sha":"1a7514f4e04c14b9403bce06a4905e39a7ddc3e7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/labitat/blipserver/pulls/6/commits","review_comments_url":"https://api.github.com/repos/labitat/blipserver/pulls/6/comments","review_comment_url":"https://api.github.com/repos/labitat/blipserver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/labitat/blipserver/issues/6/comments","statuses_url":"https://api.github.com/repos/labitat/blipserver/statuses/31401b6ad852860c15340e42b34a8a2585be5bd5","head":{"label":"knielsen:master","ref":"master","sha":"31401b6ad852860c15340e42b34a8a2585be5bd5","user":{"login":"knielsen","id":79553,"avatar_url":"https://avatars.githubusercontent.com/u/79553?v=3","gravatar_id":"","url":"https://api.github.com/users/knielsen","html_url":"https://github.com/knielsen","followers_url":"https://api.github.com/users/knielsen/followers","following_url":"https://api.github.com/users/knielsen/following{/other_user}","gists_url":"https://api.github.com/users/knielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/knielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knielsen/subscriptions","organizations_url":"https://api.github.com/users/knielsen/orgs","repos_url":"https://api.github.com/users/knielsen/repos","events_url":"https://api.github.com/users/knielsen/events{/privacy}","received_events_url":"https://api.github.com/users/knielsen/received_events","type":"User","site_admin":false},"repo":{"id":2646665,"name":"blipserver","full_name":"knielsen/blipserver","owner":{"login":"knielsen","id":79553,"avatar_url":"https://avatars.githubusercontent.com/u/79553?v=3","gravatar_id":"","url":"https://api.github.com/users/knielsen","html_url":"https://github.com/knielsen","followers_url":"https://api.github.com/users/knielsen/followers","following_url":"https://api.github.com/users/knielsen/following{/other_user}","gists_url":"https://api.github.com/users/knielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/knielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knielsen/subscriptions","organizations_url":"https://api.github.com/users/knielsen/orgs","repos_url":"https://api.github.com/users/knielsen/repos","events_url":"https://api.github.com/users/knielsen/events{/privacy}","received_events_url":"https://api.github.com/users/knielsen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/knielsen/blipserver","description":"The server running on space.labitat.dk to log power usage and show a nice graph.","fork":true,"url":"https://api.github.com/repos/knielsen/blipserver","forks_url":"https://api.github.com/repos/knielsen/blipserver/forks","keys_url":"https://api.github.com/repos/knielsen/blipserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/knielsen/blipserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/knielsen/blipserver/teams","hooks_url":"https://api.github.com/repos/knielsen/blipserver/hooks","issue_events_url":"https://api.github.com/repos/knielsen/blipserver/issues/events{/number}","events_url":"https://api.github.com/repos/knielsen/blipserver/events","assignees_url":"https://api.github.com/repos/knielsen/blipserver/assignees{/user}","branches_url":"https://api.github.com/repos/knielsen/blipserver/branches{/branch}","tags_url":"https://api.github.com/repos/knielsen/blipserver/tags","blobs_url":"https://api.github.com/repos/knielsen/blipserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/knielsen/blipserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/knielsen/blipserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/knielsen/blipserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/knielsen/blipserver/statuses/{sha}","languages_url":"https://api.github.com/repos/knielsen/blipserver/languages","stargazers_url":"https://api.github.com/repos/knielsen/blipserver/stargazers","contributors_url":"https://api.github.com/repos/knielsen/blipserver/contributors","subscribers_url":"https://api.github.com/repos/knielsen/blipserver/subscribers","subscription_url":"https://api.github.com/repos/knielsen/blipserver/subscription","commits_url":"https://api.github.com/repos/knielsen/blipserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/knielsen/blipserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/knielsen/blipserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/knielsen/blipserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/knielsen/blipserver/contents/{+path}","compare_url":"https://api.github.com/repos/knielsen/blipserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/knielsen/blipserver/merges","archive_url":"https://api.github.com/repos/knielsen/blipserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/knielsen/blipserver/downloads","issues_url":"https://api.github.com/repos/knielsen/blipserver/issues{/number}","pulls_url":"https://api.github.com/repos/knielsen/blipserver/pulls{/number}","milestones_url":"https://api.github.com/repos/knielsen/blipserver/milestones{/number}","notifications_url":"https://api.github.com/repos/knielsen/blipserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/knielsen/blipserver/labels{/name}","releases_url":"https://api.github.com/repos/knielsen/blipserver/releases{/id}","created_at":"2011-10-25T20:57:41Z","updated_at":"2015-04-05T12:31:35Z","pushed_at":"2015-04-05T12:31:35Z","git_url":"git://github.com/knielsen/blipserver.git","ssh_url":"git@github.com:knielsen/blipserver.git","clone_url":"https://github.com/knielsen/blipserver.git","svn_url":"https://github.com/knielsen/blipserver","homepage":"","size":231,"stargazers_count":1,"watchers_count":1,"language":"Lua","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"labitat:master","ref":"master","sha":"1a7a6849c8cdde962e23e1a4eade5aa51a74eb9a","user":{"login":"labitat","id":346178,"avatar_url":"https://avatars.githubusercontent.com/u/346178?v=3","gravatar_id":"","url":"https://api.github.com/users/labitat","html_url":"https://github.com/labitat","followers_url":"https://api.github.com/users/labitat/followers","following_url":"https://api.github.com/users/labitat/following{/other_user}","gists_url":"https://api.github.com/users/labitat/gists{/gist_id}","starred_url":"https://api.github.com/users/labitat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/labitat/subscriptions","organizations_url":"https://api.github.com/users/labitat/orgs","repos_url":"https://api.github.com/users/labitat/repos","events_url":"https://api.github.com/users/labitat/events{/privacy}","received_events_url":"https://api.github.com/users/labitat/received_events","type":"Organization","site_admin":false},"repo":{"id":1437031,"name":"blipserver","full_name":"labitat/blipserver","owner":{"login":"labitat","id":346178,"avatar_url":"https://avatars.githubusercontent.com/u/346178?v=3","gravatar_id":"","url":"https://api.github.com/users/labitat","html_url":"https://github.com/labitat","followers_url":"https://api.github.com/users/labitat/followers","following_url":"https://api.github.com/users/labitat/following{/other_user}","gists_url":"https://api.github.com/users/labitat/gists{/gist_id}","starred_url":"https://api.github.com/users/labitat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/labitat/subscriptions","organizations_url":"https://api.github.com/users/labitat/orgs","repos_url":"https://api.github.com/users/labitat/repos","events_url":"https://api.github.com/users/labitat/events{/privacy}","received_events_url":"https://api.github.com/users/labitat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/labitat/blipserver","description":"The server running on space.labitat.dk to log power usage and show a nice graph.","fork":false,"url":"https://api.github.com/repos/labitat/blipserver","forks_url":"https://api.github.com/repos/labitat/blipserver/forks","keys_url":"https://api.github.com/repos/labitat/blipserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/labitat/blipserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/labitat/blipserver/teams","hooks_url":"https://api.github.com/repos/labitat/blipserver/hooks","issue_events_url":"https://api.github.com/repos/labitat/blipserver/issues/events{/number}","events_url":"https://api.github.com/repos/labitat/blipserver/events","assignees_url":"https://api.github.com/repos/labitat/blipserver/assignees{/user}","branches_url":"https://api.github.com/repos/labitat/blipserver/branches{/branch}","tags_url":"https://api.github.com/repos/labitat/blipserver/tags","blobs_url":"https://api.github.com/repos/labitat/blipserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/labitat/blipserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/labitat/blipserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/labitat/blipserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/labitat/blipserver/statuses/{sha}","languages_url":"https://api.github.com/repos/labitat/blipserver/languages","stargazers_url":"https://api.github.com/repos/labitat/blipserver/stargazers","contributors_url":"https://api.github.com/repos/labitat/blipserver/contributors","subscribers_url":"https://api.github.com/repos/labitat/blipserver/subscribers","subscription_url":"https://api.github.com/repos/labitat/blipserver/subscription","commits_url":"https://api.github.com/repos/labitat/blipserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/labitat/blipserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/labitat/blipserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/labitat/blipserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/labitat/blipserver/contents/{+path}","compare_url":"https://api.github.com/repos/labitat/blipserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/labitat/blipserver/merges","archive_url":"https://api.github.com/repos/labitat/blipserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/labitat/blipserver/downloads","issues_url":"https://api.github.com/repos/labitat/blipserver/issues{/number}","pulls_url":"https://api.github.com/repos/labitat/blipserver/pulls{/number}","milestones_url":"https://api.github.com/repos/labitat/blipserver/milestones{/number}","notifications_url":"https://api.github.com/repos/labitat/blipserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/labitat/blipserver/labels{/name}","releases_url":"https://api.github.com/repos/labitat/blipserver/releases{/id}","created_at":"2011-03-03T22:15:17Z","updated_at":"2015-04-06T20:19:57Z","pushed_at":"2015-04-06T20:19:57Z","git_url":"git://github.com/labitat/blipserver.git","ssh_url":"git@github.com:labitat/blipserver.git","clone_url":"https://github.com/labitat/blipserver.git","svn_url":"https://github.com/labitat/blipserver","homepage":"","size":293,"stargazers_count":4,"watchers_count":4,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/labitat/blipserver/pulls/6"},"html":{"href":"https://github.com/labitat/blipserver/pull/6"},"issue":{"href":"https://api.github.com/repos/labitat/blipserver/issues/6"},"comments":{"href":"https://api.github.com/repos/labitat/blipserver/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/labitat/blipserver/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/labitat/blipserver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/labitat/blipserver/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/labitat/blipserver/statuses/31401b6ad852860c15340e42b34a8a2585be5bd5"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"knielsen","id":79553,"avatar_url":"https://avatars.githubusercontent.com/u/79553?v=3","gravatar_id":"","url":"https://api.github.com/users/knielsen","html_url":"https://github.com/knielsen","followers_url":"https://api.github.com/users/knielsen/followers","following_url":"https://api.github.com/users/knielsen/following{/other_user}","gists_url":"https://api.github.com/users/knielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/knielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knielsen/subscriptions","organizations_url":"https://api.github.com/users/knielsen/orgs","repos_url":"https://api.github.com/users/knielsen/repos","events_url":"https://api.github.com/users/knielsen/events{/privacy}","received_events_url":"https://api.github.com/users/knielsen/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":2,"additions":209,"deletions":18,"changed_files":5}}