{"action":"opened","number":19,"pull_request":{"url":"https://api.github.com/repos/martensson/nixy/pulls/19","id":88515939,"html_url":"https://github.com/martensson/nixy/pull/19","diff_url":"https://github.com/martensson/nixy/pull/19.diff","patch_url":"https://github.com/martensson/nixy/pull/19.patch","issue_url":"https://api.github.com/repos/martensson/nixy/issues/19","number":19,"state":"open","locked":false,"title":"Send status code 500 if something is unhealthy","user":{"login":"schneidexe","id":2280632,"avatar_url":"https://avatars.githubusercontent.com/u/2280632?v=3","gravatar_id":"","url":"https://api.github.com/users/schneidexe","html_url":"https://github.com/schneidexe","followers_url":"https://api.github.com/users/schneidexe/followers","following_url":"https://api.github.com/users/schneidexe/following{/other_user}","gists_url":"https://api.github.com/users/schneidexe/gists{/gist_id}","starred_url":"https://api.github.com/users/schneidexe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schneidexe/subscriptions","organizations_url":"https://api.github.com/users/schneidexe/orgs","repos_url":"https://api.github.com/users/schneidexe/repos","events_url":"https://api.github.com/users/schneidexe/events{/privacy}","received_events_url":"https://api.github.com/users/schneidexe/received_events","type":"User","site_admin":false},"body":"Simple http health check usually consider response status codes. 200 is interpreted as healthy. So we should send a non-200 status in case any of nixy's health check report unhealthy. With this PR it will now set the response status code of /v1/health to 500.","created_at":"2016-10-07T22:09:37Z","updated_at":"2016-10-07T22:09:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3769136d4b02883f1c5492c34b007e4a1d50d114","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/martensson/nixy/pulls/19/commits","review_comments_url":"https://api.github.com/repos/martensson/nixy/pulls/19/comments","review_comment_url":"https://api.github.com/repos/martensson/nixy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/martensson/nixy/issues/19/comments","statuses_url":"https://api.github.com/repos/martensson/nixy/statuses/9b7cfef115472a7e916ad45e67fe49b64dcad1ff","head":{"label":"schneidexe:health_status_code","ref":"health_status_code","sha":"9b7cfef115472a7e916ad45e67fe49b64dcad1ff","user":{"login":"schneidexe","id":2280632,"avatar_url":"https://avatars.githubusercontent.com/u/2280632?v=3","gravatar_id":"","url":"https://api.github.com/users/schneidexe","html_url":"https://github.com/schneidexe","followers_url":"https://api.github.com/users/schneidexe/followers","following_url":"https://api.github.com/users/schneidexe/following{/other_user}","gists_url":"https://api.github.com/users/schneidexe/gists{/gist_id}","starred_url":"https://api.github.com/users/schneidexe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schneidexe/subscriptions","organizations_url":"https://api.github.com/users/schneidexe/orgs","repos_url":"https://api.github.com/users/schneidexe/repos","events_url":"https://api.github.com/users/schneidexe/events{/privacy}","received_events_url":"https://api.github.com/users/schneidexe/received_events","type":"User","site_admin":false},"repo":{"id":59781357,"name":"nixy","full_name":"schneidexe/nixy","owner":{"login":"schneidexe","id":2280632,"avatar_url":"https://avatars.githubusercontent.com/u/2280632?v=3","gravatar_id":"","url":"https://api.github.com/users/schneidexe","html_url":"https://github.com/schneidexe","followers_url":"https://api.github.com/users/schneidexe/followers","following_url":"https://api.github.com/users/schneidexe/following{/other_user}","gists_url":"https://api.github.com/users/schneidexe/gists{/gist_id}","starred_url":"https://api.github.com/users/schneidexe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schneidexe/subscriptions","organizations_url":"https://api.github.com/users/schneidexe/orgs","repos_url":"https://api.github.com/users/schneidexe/repos","events_url":"https://api.github.com/users/schneidexe/events{/privacy}","received_events_url":"https://api.github.com/users/schneidexe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/schneidexe/nixy","description":"nixy - nginx auto configuration and service discovery for Mesos/Marathon","fork":true,"url":"https://api.github.com/repos/schneidexe/nixy","forks_url":"https://api.github.com/repos/schneidexe/nixy/forks","keys_url":"https://api.github.com/repos/schneidexe/nixy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/schneidexe/nixy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/schneidexe/nixy/teams","hooks_url":"https://api.github.com/repos/schneidexe/nixy/hooks","issue_events_url":"https://api.github.com/repos/schneidexe/nixy/issues/events{/number}","events_url":"https://api.github.com/repos/schneidexe/nixy/events","assignees_url":"https://api.github.com/repos/schneidexe/nixy/assignees{/user}","branches_url":"https://api.github.com/repos/schneidexe/nixy/branches{/branch}","tags_url":"https://api.github.com/repos/schneidexe/nixy/tags","blobs_url":"https://api.github.com/repos/schneidexe/nixy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/schneidexe/nixy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/schneidexe/nixy/git/refs{/sha}","trees_url":"https://api.github.com/repos/schneidexe/nixy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/schneidexe/nixy/statuses/{sha}","languages_url":"https://api.github.com/repos/schneidexe/nixy/languages","stargazers_url":"https://api.github.com/repos/schneidexe/nixy/stargazers","contributors_url":"https://api.github.com/repos/schneidexe/nixy/contributors","subscribers_url":"https://api.github.com/repos/schneidexe/nixy/subscribers","subscription_url":"https://api.github.com/repos/schneidexe/nixy/subscription","commits_url":"https://api.github.com/repos/schneidexe/nixy/commits{/sha}","git_commits_url":"https://api.github.com/repos/schneidexe/nixy/git/commits{/sha}","comments_url":"https://api.github.com/repos/schneidexe/nixy/comments{/number}","issue_comment_url":"https://api.github.com/repos/schneidexe/nixy/issues/comments{/number}","contents_url":"https://api.github.com/repos/schneidexe/nixy/contents/{+path}","compare_url":"https://api.github.com/repos/schneidexe/nixy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/schneidexe/nixy/merges","archive_url":"https://api.github.com/repos/schneidexe/nixy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/schneidexe/nixy/downloads","issues_url":"https://api.github.com/repos/schneidexe/nixy/issues{/number}","pulls_url":"https://api.github.com/repos/schneidexe/nixy/pulls{/number}","milestones_url":"https://api.github.com/repos/schneidexe/nixy/milestones{/number}","notifications_url":"https://api.github.com/repos/schneidexe/nixy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/schneidexe/nixy/labels{/name}","releases_url":"https://api.github.com/repos/schneidexe/nixy/releases{/id}","deployments_url":"https://api.github.com/repos/schneidexe/nixy/deployments","created_at":"2016-05-26T20:30:06Z","updated_at":"2016-05-26T20:30:06Z","pushed_at":"2016-10-07T22:07:16Z","git_url":"git://github.com/schneidexe/nixy.git","ssh_url":"git@github.com:schneidexe/nixy.git","clone_url":"https://github.com/schneidexe/nixy.git","svn_url":"https://github.com/schneidexe/nixy","homepage":"","size":194,"stargazers_count":0,"watchers_count":0,"language":"Go","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":0,"default_branch":"master"}},"base":{"label":"martensson:master","ref":"master","sha":"4f48f36e6064562a1329b4179a267d553fad69ab","user":{"login":"martensson","id":1187127,"avatar_url":"https://avatars.githubusercontent.com/u/1187127?v=3","gravatar_id":"","url":"https://api.github.com/users/martensson","html_url":"https://github.com/martensson","followers_url":"https://api.github.com/users/martensson/followers","following_url":"https://api.github.com/users/martensson/following{/other_user}","gists_url":"https://api.github.com/users/martensson/gists{/gist_id}","starred_url":"https://api.github.com/users/martensson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martensson/subscriptions","organizations_url":"https://api.github.com/users/martensson/orgs","repos_url":"https://api.github.com/users/martensson/repos","events_url":"https://api.github.com/users/martensson/events{/privacy}","received_events_url":"https://api.github.com/users/martensson/received_events","type":"User","site_admin":false},"repo":{"id":50028904,"name":"nixy","full_name":"martensson/nixy","owner":{"login":"martensson","id":1187127,"avatar_url":"https://avatars.githubusercontent.com/u/1187127?v=3","gravatar_id":"","url":"https://api.github.com/users/martensson","html_url":"https://github.com/martensson","followers_url":"https://api.github.com/users/martensson/followers","following_url":"https://api.github.com/users/martensson/following{/other_user}","gists_url":"https://api.github.com/users/martensson/gists{/gist_id}","starred_url":"https://api.github.com/users/martensson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martensson/subscriptions","organizations_url":"https://api.github.com/users/martensson/orgs","repos_url":"https://api.github.com/users/martensson/repos","events_url":"https://api.github.com/users/martensson/events{/privacy}","received_events_url":"https://api.github.com/users/martensson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/martensson/nixy","description":"nixy - nginx auto configuration and service discovery for Mesos/Marathon","fork":false,"url":"https://api.github.com/repos/martensson/nixy","forks_url":"https://api.github.com/repos/martensson/nixy/forks","keys_url":"https://api.github.com/repos/martensson/nixy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/martensson/nixy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/martensson/nixy/teams","hooks_url":"https://api.github.com/repos/martensson/nixy/hooks","issue_events_url":"https://api.github.com/repos/martensson/nixy/issues/events{/number}","events_url":"https://api.github.com/repos/martensson/nixy/events","assignees_url":"https://api.github.com/repos/martensson/nixy/assignees{/user}","branches_url":"https://api.github.com/repos/martensson/nixy/branches{/branch}","tags_url":"https://api.github.com/repos/martensson/nixy/tags","blobs_url":"https://api.github.com/repos/martensson/nixy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/martensson/nixy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/martensson/nixy/git/refs{/sha}","trees_url":"https://api.github.com/repos/martensson/nixy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/martensson/nixy/statuses/{sha}","languages_url":"https://api.github.com/repos/martensson/nixy/languages","stargazers_url":"https://api.github.com/repos/martensson/nixy/stargazers","contributors_url":"https://api.github.com/repos/martensson/nixy/contributors","subscribers_url":"https://api.github.com/repos/martensson/nixy/subscribers","subscription_url":"https://api.github.com/repos/martensson/nixy/subscription","commits_url":"https://api.github.com/repos/martensson/nixy/commits{/sha}","git_commits_url":"https://api.github.com/repos/martensson/nixy/git/commits{/sha}","comments_url":"https://api.github.com/repos/martensson/nixy/comments{/number}","issue_comment_url":"https://api.github.com/repos/martensson/nixy/issues/comments{/number}","contents_url":"https://api.github.com/repos/martensson/nixy/contents/{+path}","compare_url":"https://api.github.com/repos/martensson/nixy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/martensson/nixy/merges","archive_url":"https://api.github.com/repos/martensson/nixy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/martensson/nixy/downloads","issues_url":"https://api.github.com/repos/martensson/nixy/issues{/number}","pulls_url":"https://api.github.com/repos/martensson/nixy/pulls{/number}","milestones_url":"https://api.github.com/repos/martensson/nixy/milestones{/number}","notifications_url":"https://api.github.com/repos/martensson/nixy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/martensson/nixy/labels{/name}","releases_url":"https://api.github.com/repos/martensson/nixy/releases{/id}","deployments_url":"https://api.github.com/repos/martensson/nixy/deployments","created_at":"2016-01-20T12:34:23Z","updated_at":"2016-10-04T21:17:28Z","pushed_at":"2016-10-07T22:09:38Z","git_url":"git://github.com/martensson/nixy.git","ssh_url":"git@github.com:martensson/nixy.git","clone_url":"https://github.com/martensson/nixy.git","svn_url":"https://github.com/martensson/nixy","homepage":"","size":712,"stargazers_count":167,"watchers_count":167,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":2,"forks":16,"open_issues":2,"watchers":167,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/martensson/nixy/pulls/19"},"html":{"href":"https://github.com/martensson/nixy/pull/19"},"issue":{"href":"https://api.github.com/repos/martensson/nixy/issues/19"},"comments":{"href":"https://api.github.com/repos/martensson/nixy/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/martensson/nixy/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/martensson/nixy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/martensson/nixy/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/martensson/nixy/statuses/9b7cfef115472a7e916ad45e67fe49b64dcad1ff"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":8,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"schneidexe"}}