{"action":"created","comment":{"url":"https://api.github.com/repos/betit/orion-go-sdk/pulls/comments/171166296","pull_request_review_id":99968824,"id":171166296,"diff_hunk":"@@ -0,0 +1,139 @@\n+package health\n+\n+import (\n+\toerror \"github.com/betit/orion-go-sdk/error\"\n+\t\"github.com/betit/orion-go-sdk/interfaces\"\n+\t\"github.com/betit/orion-go-sdk/request\"\n+\t\"github.com/betit/orion-go-sdk/response\"\n+)\n+\n+const (\n+\tOK          = \"OK\"\n+\tWHO_ARE_YOU = \"WHO_ARE_YOU\"\n+)\n+\n+type AggregationType string\n+\n+const (\n+\tINTERNAL AggregationType = \"internal\"\n+\tEXTERNAL AggregationType = \"external\"\n+)\n+\n+type HealthCheckResult string\n+\n+const (\n+\tHC_OK   HealthCheckResult = \"OK\"\n+\tHC_WARN HealthCheckResult = \"WARN\"\n+\tHC_CRIT HealthCheckResult = \"CRIT\"\n+)\n+\n+func AmIUpHandle(req *AmIUpRequest) *AmIUpResponse {\n+\treturn &AmIUpResponse{\n+\t\tPayload: struct {\n+\t\t\tStatus string `msgpack:\"status\"`\n+\t\t}{Status: OK},\n+\t}\n+}\n+\n+type AmIUpResponse struct {","path":"health/messages.go","position":38,"original_position":38,"commit_id":"3f268f93506634c23ba8244ee9d00aa2f7d4e455","original_commit_id":"3f268f93506634c23ba8244ee9d00aa2f7d4e455","user":{"login":"cristaloleg","id":366002,"avatar_url":"https://avatars1.githubusercontent.com/u/366002?v=4","gravatar_id":"","url":"https://api.github.com/users/cristaloleg","html_url":"https://github.com/cristaloleg","followers_url":"https://api.github.com/users/cristaloleg/followers","following_url":"https://api.github.com/users/cristaloleg/following{/other_user}","gists_url":"https://api.github.com/users/cristaloleg/gists{/gist_id}","starred_url":"https://api.github.com/users/cristaloleg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristaloleg/subscriptions","organizations_url":"https://api.github.com/users/cristaloleg/orgs","repos_url":"https://api.github.com/users/cristaloleg/repos","events_url":"https://api.github.com/users/cristaloleg/events{/privacy}","received_events_url":"https://api.github.com/users/cristaloleg/received_events","type":"User","site_admin":false},"body":"WDYT about `HealthResponse` ?","created_at":"2018-02-28T08:06:29Z","updated_at":"2018-02-28T08:25:56Z","html_url":"https://github.com/betit/orion-go-sdk/pull/10#discussion_r171166296","pull_request_url":"https://api.github.com/repos/betit/orion-go-sdk/pulls/10","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/betit/orion-go-sdk/pulls/comments/171166296"},"html":{"href":"https://github.com/betit/orion-go-sdk/pull/10#discussion_r171166296"},"pull_request":{"href":"https://api.github.com/repos/betit/orion-go-sdk/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/betit/orion-go-sdk/pulls/10","id":171689410,"html_url":"https://github.com/betit/orion-go-sdk/pull/10","diff_url":"https://github.com/betit/orion-go-sdk/pull/10.diff","patch_url":"https://github.com/betit/orion-go-sdk/pull/10.patch","issue_url":"https://api.github.com/repos/betit/orion-go-sdk/issues/10","number":10,"state":"open","locked":false,"title":"Health endpoints and health check handling.","user":{"login":"lilezek","id":2767229,"avatar_url":"https://avatars3.githubusercontent.com/u/2767229?v=4","gravatar_id":"","url":"https://api.github.com/users/lilezek","html_url":"https://github.com/lilezek","followers_url":"https://api.github.com/users/lilezek/followers","following_url":"https://api.github.com/users/lilezek/following{/other_user}","gists_url":"https://api.github.com/users/lilezek/gists{/gist_id}","starred_url":"https://api.github.com/users/lilezek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilezek/subscriptions","organizations_url":"https://api.github.com/users/lilezek/orgs","repos_url":"https://api.github.com/users/lilezek/repos","events_url":"https://api.github.com/users/lilezek/events{/privacy}","received_events_url":"https://api.github.com/users/lilezek/received_events","type":"User","site_admin":false},"body":"This adds two main endpoints:\r\n\r\n`status.am-i-up` and `status.aggregate` \r\n\r\nAlso adds health checks, that you can trigger by name\r\n\r\n`status.<name of healthcheck>`","created_at":"2018-02-27T15:06:14Z","updated_at":"2018-02-28T08:25:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d278c657ddd92bb591cd94e63d72d44bfe452a5e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/betit/orion-go-sdk/pulls/10/commits","review_comments_url":"https://api.github.com/repos/betit/orion-go-sdk/pulls/10/comments","review_comment_url":"https://api.github.com/repos/betit/orion-go-sdk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/betit/orion-go-sdk/issues/10/comments","statuses_url":"https://api.github.com/repos/betit/orion-go-sdk/statuses/3f268f93506634c23ba8244ee9d00aa2f7d4e455","head":{"label":"betit:health-status","ref":"health-status","sha":"3f268f93506634c23ba8244ee9d00aa2f7d4e455","user":{"login":"betit","id":4891758,"avatar_url":"https://avatars0.githubusercontent.com/u/4891758?v=4","gravatar_id":"","url":"https://api.github.com/users/betit","html_url":"https://github.com/betit","followers_url":"https://api.github.com/users/betit/followers","following_url":"https://api.github.com/users/betit/following{/other_user}","gists_url":"https://api.github.com/users/betit/gists{/gist_id}","starred_url":"https://api.github.com/users/betit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betit/subscriptions","organizations_url":"https://api.github.com/users/betit/orgs","repos_url":"https://api.github.com/users/betit/repos","events_url":"https://api.github.com/users/betit/events{/privacy}","received_events_url":"https://api.github.com/users/betit/received_events","type":"Organization","site_admin":false},"repo":{"id":105867217,"name":"orion-go-sdk","full_name":"betit/orion-go-sdk","owner":{"login":"betit","id":4891758,"avatar_url":"https://avatars0.githubusercontent.com/u/4891758?v=4","gravatar_id":"","url":"https://api.github.com/users/betit","html_url":"https://github.com/betit","followers_url":"https://api.github.com/users/betit/followers","following_url":"https://api.github.com/users/betit/following{/other_user}","gists_url":"https://api.github.com/users/betit/gists{/gist_id}","starred_url":"https://api.github.com/users/betit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betit/subscriptions","organizations_url":"https://api.github.com/users/betit/orgs","repos_url":"https://api.github.com/users/betit/repos","events_url":"https://api.github.com/users/betit/events{/privacy}","received_events_url":"https://api.github.com/users/betit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/betit/orion-go-sdk","description":"Go sdk for Orion","fork":false,"url":"https://api.github.com/repos/betit/orion-go-sdk","forks_url":"https://api.github.com/repos/betit/orion-go-sdk/forks","keys_url":"https://api.github.com/repos/betit/orion-go-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/betit/orion-go-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/betit/orion-go-sdk/teams","hooks_url":"https://api.github.com/repos/betit/orion-go-sdk/hooks","issue_events_url":"https://api.github.com/repos/betit/orion-go-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/betit/orion-go-sdk/events","assignees_url":"https://api.github.com/repos/betit/orion-go-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/betit/orion-go-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/betit/orion-go-sdk/tags","blobs_url":"https://api.github.com/repos/betit/orion-go-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/betit/orion-go-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/betit/orion-go-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/betit/orion-go-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/betit/orion-go-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/betit/orion-go-sdk/languages","stargazers_url":"https://api.github.com/repos/betit/orion-go-sdk/stargazers","contributors_url":"https://api.github.com/repos/betit/orion-go-sdk/contributors","subscribers_url":"https://api.github.com/repos/betit/orion-go-sdk/subscribers","subscription_url":"https://api.github.com/repos/betit/orion-go-sdk/subscription","commits_url":"https://api.github.com/repos/betit/orion-go-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/betit/orion-go-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/betit/orion-go-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/betit/orion-go-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/betit/orion-go-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/betit/orion-go-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/betit/orion-go-sdk/merges","archive_url":"https://api.github.com/repos/betit/orion-go-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/betit/orion-go-sdk/downloads","issues_url":"https://api.github.com/repos/betit/orion-go-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/betit/orion-go-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/betit/orion-go-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/betit/orion-go-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/betit/orion-go-sdk/labels{/name}","releases_url":"https://api.github.com/repos/betit/orion-go-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/betit/orion-go-sdk/deployments","created_at":"2017-10-05T08:38:51Z","updated_at":"2017-10-24T07:49:41Z","pushed_at":"2018-02-27T15:38:53Z","git_url":"git://github.com/betit/orion-go-sdk.git","ssh_url":"git@github.com:betit/orion-go-sdk.git","clone_url":"https://github.com/betit/orion-go-sdk.git","svn_url":"https://github.com/betit/orion-go-sdk","homepage":"https://github.com/betit/orion/tree/dev","size":80,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"betit:master","ref":"master","sha":"3040e8a67f9c6ea0dd550c283bcd1f6e49579b8b","user":{"login":"betit","id":4891758,"avatar_url":"https://avatars0.githubusercontent.com/u/4891758?v=4","gravatar_id":"","url":"https://api.github.com/users/betit","html_url":"https://github.com/betit","followers_url":"https://api.github.com/users/betit/followers","following_url":"https://api.github.com/users/betit/following{/other_user}","gists_url":"https://api.github.com/users/betit/gists{/gist_id}","starred_url":"https://api.github.com/users/betit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betit/subscriptions","organizations_url":"https://api.github.com/users/betit/orgs","repos_url":"https://api.github.com/users/betit/repos","events_url":"https://api.github.com/users/betit/events{/privacy}","received_events_url":"https://api.github.com/users/betit/received_events","type":"Organization","site_admin":false},"repo":{"id":105867217,"name":"orion-go-sdk","full_name":"betit/orion-go-sdk","owner":{"login":"betit","id":4891758,"avatar_url":"https://avatars0.githubusercontent.com/u/4891758?v=4","gravatar_id":"","url":"https://api.github.com/users/betit","html_url":"https://github.com/betit","followers_url":"https://api.github.com/users/betit/followers","following_url":"https://api.github.com/users/betit/following{/other_user}","gists_url":"https://api.github.com/users/betit/gists{/gist_id}","starred_url":"https://api.github.com/users/betit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betit/subscriptions","organizations_url":"https://api.github.com/users/betit/orgs","repos_url":"https://api.github.com/users/betit/repos","events_url":"https://api.github.com/users/betit/events{/privacy}","received_events_url":"https://api.github.com/users/betit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/betit/orion-go-sdk","description":"Go sdk for Orion","fork":false,"url":"https://api.github.com/repos/betit/orion-go-sdk","forks_url":"https://api.github.com/repos/betit/orion-go-sdk/forks","keys_url":"https://api.github.com/repos/betit/orion-go-sdk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/betit/orion-go-sdk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/betit/orion-go-sdk/teams","hooks_url":"https://api.github.com/repos/betit/orion-go-sdk/hooks","issue_events_url":"https://api.github.com/repos/betit/orion-go-sdk/issues/events{/number}","events_url":"https://api.github.com/repos/betit/orion-go-sdk/events","assignees_url":"https://api.github.com/repos/betit/orion-go-sdk/assignees{/user}","branches_url":"https://api.github.com/repos/betit/orion-go-sdk/branches{/branch}","tags_url":"https://api.github.com/repos/betit/orion-go-sdk/tags","blobs_url":"https://api.github.com/repos/betit/orion-go-sdk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/betit/orion-go-sdk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/betit/orion-go-sdk/git/refs{/sha}","trees_url":"https://api.github.com/repos/betit/orion-go-sdk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/betit/orion-go-sdk/statuses/{sha}","languages_url":"https://api.github.com/repos/betit/orion-go-sdk/languages","stargazers_url":"https://api.github.com/repos/betit/orion-go-sdk/stargazers","contributors_url":"https://api.github.com/repos/betit/orion-go-sdk/contributors","subscribers_url":"https://api.github.com/repos/betit/orion-go-sdk/subscribers","subscription_url":"https://api.github.com/repos/betit/orion-go-sdk/subscription","commits_url":"https://api.github.com/repos/betit/orion-go-sdk/commits{/sha}","git_commits_url":"https://api.github.com/repos/betit/orion-go-sdk/git/commits{/sha}","comments_url":"https://api.github.com/repos/betit/orion-go-sdk/comments{/number}","issue_comment_url":"https://api.github.com/repos/betit/orion-go-sdk/issues/comments{/number}","contents_url":"https://api.github.com/repos/betit/orion-go-sdk/contents/{+path}","compare_url":"https://api.github.com/repos/betit/orion-go-sdk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/betit/orion-go-sdk/merges","archive_url":"https://api.github.com/repos/betit/orion-go-sdk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/betit/orion-go-sdk/downloads","issues_url":"https://api.github.com/repos/betit/orion-go-sdk/issues{/number}","pulls_url":"https://api.github.com/repos/betit/orion-go-sdk/pulls{/number}","milestones_url":"https://api.github.com/repos/betit/orion-go-sdk/milestones{/number}","notifications_url":"https://api.github.com/repos/betit/orion-go-sdk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/betit/orion-go-sdk/labels{/name}","releases_url":"https://api.github.com/repos/betit/orion-go-sdk/releases{/id}","deployments_url":"https://api.github.com/repos/betit/orion-go-sdk/deployments","created_at":"2017-10-05T08:38:51Z","updated_at":"2017-10-24T07:49:41Z","pushed_at":"2018-02-27T15:38:53Z","git_url":"git://github.com/betit/orion-go-sdk.git","ssh_url":"git@github.com:betit/orion-go-sdk.git","clone_url":"https://github.com/betit/orion-go-sdk.git","svn_url":"https://github.com/betit/orion-go-sdk","homepage":"https://github.com/betit/orion/tree/dev","size":80,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/betit/orion-go-sdk/pulls/10"},"html":{"href":"https://github.com/betit/orion-go-sdk/pull/10"},"issue":{"href":"https://api.github.com/repos/betit/orion-go-sdk/issues/10"},"comments":{"href":"https://api.github.com/repos/betit/orion-go-sdk/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/betit/orion-go-sdk/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/betit/orion-go-sdk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/betit/orion-go-sdk/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/betit/orion-go-sdk/statuses/3f268f93506634c23ba8244ee9d00aa2f7d4e455"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"cristaloleg"}}