{"action":"created","comment":{"url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/pulls/comments/90306810","pull_request_review_id":10827160,"id":90306810,"diff_hunk":"@@ -198,6 +202,10 @@ local function peer_ok(ctx, is_backup, id, peer)\n                 \" success(es)\")\n         peer.down = nil\n         set_peer_down_globally(ctx, is_backup, id, nil)\n+\n+        if (ctx.hook_up) then","path":"lib/resty/upstream/healthcheck.lua","position":16,"original_position":16,"commit_id":"2a0bc907af18aff86592700e2195586b86ae7355","original_commit_id":"2a0bc907af18aff86592700e2195586b86ae7355","user":{"login":"thibaultcha","id":1125431,"avatar_url":"https://avatars.githubusercontent.com/u/1125431?v=3","gravatar_id":"","url":"https://api.github.com/users/thibaultcha","html_url":"https://github.com/thibaultcha","followers_url":"https://api.github.com/users/thibaultcha/followers","following_url":"https://api.github.com/users/thibaultcha/following{/other_user}","gists_url":"https://api.github.com/users/thibaultcha/gists{/gist_id}","starred_url":"https://api.github.com/users/thibaultcha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thibaultcha/subscriptions","organizations_url":"https://api.github.com/users/thibaultcha/orgs","repos_url":"https://api.github.com/users/thibaultcha/repos","events_url":"https://api.github.com/users/thibaultcha/events{/privacy}","received_events_url":"https://api.github.com/users/thibaultcha/received_events","type":"User","site_admin":false},"body":"idem: parenthesis","created_at":"2016-11-30T19:21:10Z","updated_at":"2016-11-30T19:21:10Z","html_url":"https://github.com/openresty/lua-resty-upstream-healthcheck/pull/31#discussion_r90306810","pull_request_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/pulls/comments/90306810"},"html":{"href":"https://github.com/openresty/lua-resty-upstream-healthcheck/pull/31#discussion_r90306810"},"pull_request":{"href":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/pulls/31","id":95947421,"html_url":"https://github.com/openresty/lua-resty-upstream-healthcheck/pull/31","diff_url":"https://github.com/openresty/lua-resty-upstream-healthcheck/pull/31.diff","patch_url":"https://github.com/openresty/lua-resty-upstream-healthcheck/pull/31.patch","issue_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/issues/31","number":31,"state":"open","locked":false,"title":"Register callback functions when peers are marked down or up","user":{"login":"p0pr0ck5","id":4625425,"avatar_url":"https://avatars.githubusercontent.com/u/4625425?v=3","gravatar_id":"","url":"https://api.github.com/users/p0pr0ck5","html_url":"https://github.com/p0pr0ck5","followers_url":"https://api.github.com/users/p0pr0ck5/followers","following_url":"https://api.github.com/users/p0pr0ck5/following{/other_user}","gists_url":"https://api.github.com/users/p0pr0ck5/gists{/gist_id}","starred_url":"https://api.github.com/users/p0pr0ck5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p0pr0ck5/subscriptions","organizations_url":"https://api.github.com/users/p0pr0ck5/orgs","repos_url":"https://api.github.com/users/p0pr0ck5/repos","events_url":"https://api.github.com/users/p0pr0ck5/events{/privacy}","received_events_url":"https://api.github.com/users/p0pr0ck5/received_events","type":"User","site_admin":false},"body":"Call an optional user-defined function when peer_fail or peer_ok\r\nchange the status of a peer object via set_peer_down_globally.\r\nThis allows arbitrarily extending the response to upstream health\r\nchanges.","created_at":"2016-11-30T18:30:22Z","updated_at":"2016-11-30T19:29:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b8769daececec1ed37517e70bd488968d3c8c30a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/pulls/31/commits","review_comments_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/pulls/31/comments","review_comment_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/issues/31/comments","statuses_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/statuses/2a0bc907af18aff86592700e2195586b86ae7355","head":{"label":"p0pr0ck5:master","ref":"master","sha":"2a0bc907af18aff86592700e2195586b86ae7355","user":{"login":"p0pr0ck5","id":4625425,"avatar_url":"https://avatars.githubusercontent.com/u/4625425?v=3","gravatar_id":"","url":"https://api.github.com/users/p0pr0ck5","html_url":"https://github.com/p0pr0ck5","followers_url":"https://api.github.com/users/p0pr0ck5/followers","following_url":"https://api.github.com/users/p0pr0ck5/following{/other_user}","gists_url":"https://api.github.com/users/p0pr0ck5/gists{/gist_id}","starred_url":"https://api.github.com/users/p0pr0ck5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p0pr0ck5/subscriptions","organizations_url":"https://api.github.com/users/p0pr0ck5/orgs","repos_url":"https://api.github.com/users/p0pr0ck5/repos","events_url":"https://api.github.com/users/p0pr0ck5/events{/privacy}","received_events_url":"https://api.github.com/users/p0pr0ck5/received_events","type":"User","site_admin":false},"repo":{"id":62174502,"name":"lua-resty-upstream-healthcheck","full_name":"p0pr0ck5/lua-resty-upstream-healthcheck","owner":{"login":"p0pr0ck5","id":4625425,"avatar_url":"https://avatars.githubusercontent.com/u/4625425?v=3","gravatar_id":"","url":"https://api.github.com/users/p0pr0ck5","html_url":"https://github.com/p0pr0ck5","followers_url":"https://api.github.com/users/p0pr0ck5/followers","following_url":"https://api.github.com/users/p0pr0ck5/following{/other_user}","gists_url":"https://api.github.com/users/p0pr0ck5/gists{/gist_id}","starred_url":"https://api.github.com/users/p0pr0ck5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p0pr0ck5/subscriptions","organizations_url":"https://api.github.com/users/p0pr0ck5/orgs","repos_url":"https://api.github.com/users/p0pr0ck5/repos","events_url":"https://api.github.com/users/p0pr0ck5/events{/privacy}","received_events_url":"https://api.github.com/users/p0pr0ck5/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/p0pr0ck5/lua-resty-upstream-healthcheck","description":"Health Checker for Nginx Upstream Servers in Pure Lua","fork":true,"url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck","forks_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/forks","keys_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/keys{/key_id}","collaborators_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/teams","hooks_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/hooks","issue_events_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/issues/events{/number}","events_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/events","assignees_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/assignees{/user}","branches_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/branches{/branch}","tags_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/tags","blobs_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/git/refs{/sha}","trees_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/git/trees{/sha}","statuses_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/statuses/{sha}","languages_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/languages","stargazers_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/stargazers","contributors_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/contributors","subscribers_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/subscribers","subscription_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/subscription","commits_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/commits{/sha}","git_commits_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/git/commits{/sha}","comments_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/comments{/number}","issue_comment_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/issues/comments{/number}","contents_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/contents/{+path}","compare_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/compare/{base}...{head}","merges_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/merges","archive_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/downloads","issues_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/issues{/number}","pulls_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/pulls{/number}","milestones_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/milestones{/number}","notifications_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/labels{/name}","releases_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/releases{/id}","deployments_url":"https://api.github.com/repos/p0pr0ck5/lua-resty-upstream-healthcheck/deployments","created_at":"2016-06-28T21:08:15Z","updated_at":"2016-06-28T21:08:16Z","pushed_at":"2016-11-30T18:23:57Z","git_url":"git://github.com/p0pr0ck5/lua-resty-upstream-healthcheck.git","ssh_url":"git@github.com:p0pr0ck5/lua-resty-upstream-healthcheck.git","clone_url":"https://github.com/p0pr0ck5/lua-resty-upstream-healthcheck.git","svn_url":"https://github.com/p0pr0ck5/lua-resty-upstream-healthcheck","homepage":null,"size":52,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"openresty:master","ref":"master","sha":"473dd2a7e684f5a227d23d20ccb32cd200834532","user":{"login":"openresty","id":7390180,"avatar_url":"https://avatars.githubusercontent.com/u/7390180?v=3","gravatar_id":"","url":"https://api.github.com/users/openresty","html_url":"https://github.com/openresty","followers_url":"https://api.github.com/users/openresty/followers","following_url":"https://api.github.com/users/openresty/following{/other_user}","gists_url":"https://api.github.com/users/openresty/gists{/gist_id}","starred_url":"https://api.github.com/users/openresty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openresty/subscriptions","organizations_url":"https://api.github.com/users/openresty/orgs","repos_url":"https://api.github.com/users/openresty/repos","events_url":"https://api.github.com/users/openresty/events{/privacy}","received_events_url":"https://api.github.com/users/openresty/received_events","type":"Organization","site_admin":false},"repo":{"id":16270774,"name":"lua-resty-upstream-healthcheck","full_name":"openresty/lua-resty-upstream-healthcheck","owner":{"login":"openresty","id":7390180,"avatar_url":"https://avatars.githubusercontent.com/u/7390180?v=3","gravatar_id":"","url":"https://api.github.com/users/openresty","html_url":"https://github.com/openresty","followers_url":"https://api.github.com/users/openresty/followers","following_url":"https://api.github.com/users/openresty/following{/other_user}","gists_url":"https://api.github.com/users/openresty/gists{/gist_id}","starred_url":"https://api.github.com/users/openresty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openresty/subscriptions","organizations_url":"https://api.github.com/users/openresty/orgs","repos_url":"https://api.github.com/users/openresty/repos","events_url":"https://api.github.com/users/openresty/events{/privacy}","received_events_url":"https://api.github.com/users/openresty/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openresty/lua-resty-upstream-healthcheck","description":"Health Checker for Nginx Upstream Servers in Pure Lua","fork":false,"url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck","forks_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/forks","keys_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/teams","hooks_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/hooks","issue_events_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/issues/events{/number}","events_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/events","assignees_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/assignees{/user}","branches_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/branches{/branch}","tags_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/tags","blobs_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/git/refs{/sha}","trees_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/statuses/{sha}","languages_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/languages","stargazers_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/stargazers","contributors_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/contributors","subscribers_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/subscribers","subscription_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/subscription","commits_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/commits{/sha}","git_commits_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/git/commits{/sha}","comments_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/comments{/number}","issue_comment_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/issues/comments{/number}","contents_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/contents/{+path}","compare_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/merges","archive_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/downloads","issues_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/issues{/number}","pulls_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/pulls{/number}","milestones_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/milestones{/number}","notifications_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/labels{/name}","releases_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/releases{/id}","deployments_url":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/deployments","created_at":"2014-01-27T06:04:16Z","updated_at":"2016-11-30T00:41:30Z","pushed_at":"2016-11-30T18:30:22Z","git_url":"git://github.com/openresty/lua-resty-upstream-healthcheck.git","ssh_url":"git@github.com:openresty/lua-resty-upstream-healthcheck.git","clone_url":"https://github.com/openresty/lua-resty-upstream-healthcheck.git","svn_url":"https://github.com/openresty/lua-resty-upstream-healthcheck","homepage":null,"size":101,"stargazers_count":153,"watchers_count":153,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":45,"mirror_url":null,"open_issues_count":16,"forks":45,"open_issues":16,"watchers":153,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/pulls/31"},"html":{"href":"https://github.com/openresty/lua-resty-upstream-healthcheck/pull/31"},"issue":{"href":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/issues/31"},"comments":{"href":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/openresty/lua-resty-upstream-healthcheck/statuses/2a0bc907af18aff86592700e2195586b86ae7355"}}}}
{"actor":{"display_login":"thibaultcha"}}