{"action":"created","comment":{"url":"https://api.github.com/repos/simplymeasured/kong/pulls/comments/63936966","id":63936966,"diff_hunk":"@@ -0,0 +1,31 @@\n+local BasePlugin = require \"kong.plugins.base_plugin\"\n+local basic_serializer = require \"kong.plugins.log-serializers.basic\"\n+local cjson = require \"cjson\"\n+\n+\n+local MaintenanceHandler = BasePlugin:extend()\n+\n+MaintenanceHandler.PRIORITY = 1\n+\n+\n+local os_date = os.date\n+local tostring = tostring\n+local ngx_log = ngx.log\n+local ngx_timer_at = ngx.timer.at\n+local ngx_socket_udp = ngx.socket.udp\n+local table_concat = table.concat\n+local table_insert = table.insert\n+\n+local function getHostname()\n+  local f = io.popen (\"/bin/hostname\")","path":"kong/plugins/maintenance/handler.lua","position":20,"original_position":20,"commit_id":"7bab333e8d7c68822feb6e4abfe5903a2c3d79fa","original_commit_id":"7bab333e8d7c68822feb6e4abfe5903a2c3d79fa","user":{"login":"ThorArakis","id":1569002,"avatar_url":"https://avatars.githubusercontent.com/u/1569002?v=3","gravatar_id":"","url":"https://api.github.com/users/ThorArakis","html_url":"https://github.com/ThorArakis","followers_url":"https://api.github.com/users/ThorArakis/followers","following_url":"https://api.github.com/users/ThorArakis/following{/other_user}","gists_url":"https://api.github.com/users/ThorArakis/gists{/gist_id}","starred_url":"https://api.github.com/users/ThorArakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThorArakis/subscriptions","organizations_url":"https://api.github.com/users/ThorArakis/orgs","repos_url":"https://api.github.com/users/ThorArakis/repos","events_url":"https://api.github.com/users/ThorArakis/events{/privacy}","received_events_url":"https://api.github.com/users/ThorArakis/received_events","type":"User","site_admin":false},"body":"This is actually code we stole from a different kong plugin. The intent was to use it if the cache was somehow getting shared through the cluster. After the discussion with you yesterday we probably won't need to use this. I'll remove from the PR for now and add back in if needed.","created_at":"2016-05-19T19:08:28Z","updated_at":"2016-05-19T19:08:28Z","html_url":"https://github.com/simplymeasured/kong/pull/9#discussion_r63936966","pull_request_url":"https://api.github.com/repos/simplymeasured/kong/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/simplymeasured/kong/pulls/comments/63936966"},"html":{"href":"https://github.com/simplymeasured/kong/pull/9#discussion_r63936966"},"pull_request":{"href":"https://api.github.com/repos/simplymeasured/kong/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/simplymeasured/kong/pulls/9","id":70618034,"html_url":"https://github.com/simplymeasured/kong/pull/9","diff_url":"https://github.com/simplymeasured/kong/pull/9.diff","patch_url":"https://github.com/simplymeasured/kong/pull/9.patch","issue_url":"https://api.github.com/repos/simplymeasured/kong/issues/9","number":9,"state":"open","locked":false,"title":"Healthcheck","user":{"login":"ThorArakis","id":1569002,"avatar_url":"https://avatars.githubusercontent.com/u/1569002?v=3","gravatar_id":"","url":"https://api.github.com/users/ThorArakis","html_url":"https://github.com/ThorArakis","followers_url":"https://api.github.com/users/ThorArakis/followers","following_url":"https://api.github.com/users/ThorArakis/following{/other_user}","gists_url":"https://api.github.com/users/ThorArakis/gists{/gist_id}","starred_url":"https://api.github.com/users/ThorArakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThorArakis/subscriptions","organizations_url":"https://api.github.com/users/ThorArakis/orgs","repos_url":"https://api.github.com/users/ThorArakis/repos","events_url":"https://api.github.com/users/ThorArakis/events{/privacy}","received_events_url":"https://api.github.com/users/ThorArakis/received_events","type":"User","site_admin":false},"body":"@hatchetation @dempe ","created_at":"2016-05-18T23:52:39Z","updated_at":"2016-05-19T19:08:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"026a45ca53da30b42ff43f4dbc673f48bf4c5ff6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/simplymeasured/kong/pulls/9/commits","review_comments_url":"https://api.github.com/repos/simplymeasured/kong/pulls/9/comments","review_comment_url":"https://api.github.com/repos/simplymeasured/kong/pulls/comments{/number}","comments_url":"https://api.github.com/repos/simplymeasured/kong/issues/9/comments","statuses_url":"https://api.github.com/repos/simplymeasured/kong/statuses/7bab333e8d7c68822feb6e4abfe5903a2c3d79fa","head":{"label":"simplymeasured:healthcheck","ref":"healthcheck","sha":"7bab333e8d7c68822feb6e4abfe5903a2c3d79fa","user":{"login":"simplymeasured","id":615935,"avatar_url":"https://avatars.githubusercontent.com/u/615935?v=3","gravatar_id":"","url":"https://api.github.com/users/simplymeasured","html_url":"https://github.com/simplymeasured","followers_url":"https://api.github.com/users/simplymeasured/followers","following_url":"https://api.github.com/users/simplymeasured/following{/other_user}","gists_url":"https://api.github.com/users/simplymeasured/gists{/gist_id}","starred_url":"https://api.github.com/users/simplymeasured/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simplymeasured/subscriptions","organizations_url":"https://api.github.com/users/simplymeasured/orgs","repos_url":"https://api.github.com/users/simplymeasured/repos","events_url":"https://api.github.com/users/simplymeasured/events{/privacy}","received_events_url":"https://api.github.com/users/simplymeasured/received_events","type":"Organization","site_admin":false},"repo":{"id":52560798,"name":"kong","full_name":"simplymeasured/kong","owner":{"login":"simplymeasured","id":615935,"avatar_url":"https://avatars.githubusercontent.com/u/615935?v=3","gravatar_id":"","url":"https://api.github.com/users/simplymeasured","html_url":"https://github.com/simplymeasured","followers_url":"https://api.github.com/users/simplymeasured/followers","following_url":"https://api.github.com/users/simplymeasured/following{/other_user}","gists_url":"https://api.github.com/users/simplymeasured/gists{/gist_id}","starred_url":"https://api.github.com/users/simplymeasured/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simplymeasured/subscriptions","organizations_url":"https://api.github.com/users/simplymeasured/orgs","repos_url":"https://api.github.com/users/simplymeasured/repos","events_url":"https://api.github.com/users/simplymeasured/events{/privacy}","received_events_url":"https://api.github.com/users/simplymeasured/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/simplymeasured/kong","description":"Internal fork of Mashape/kong","fork":false,"url":"https://api.github.com/repos/simplymeasured/kong","forks_url":"https://api.github.com/repos/simplymeasured/kong/forks","keys_url":"https://api.github.com/repos/simplymeasured/kong/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simplymeasured/kong/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simplymeasured/kong/teams","hooks_url":"https://api.github.com/repos/simplymeasured/kong/hooks","issue_events_url":"https://api.github.com/repos/simplymeasured/kong/issues/events{/number}","events_url":"https://api.github.com/repos/simplymeasured/kong/events","assignees_url":"https://api.github.com/repos/simplymeasured/kong/assignees{/user}","branches_url":"https://api.github.com/repos/simplymeasured/kong/branches{/branch}","tags_url":"https://api.github.com/repos/simplymeasured/kong/tags","blobs_url":"https://api.github.com/repos/simplymeasured/kong/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simplymeasured/kong/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simplymeasured/kong/git/refs{/sha}","trees_url":"https://api.github.com/repos/simplymeasured/kong/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simplymeasured/kong/statuses/{sha}","languages_url":"https://api.github.com/repos/simplymeasured/kong/languages","stargazers_url":"https://api.github.com/repos/simplymeasured/kong/stargazers","contributors_url":"https://api.github.com/repos/simplymeasured/kong/contributors","subscribers_url":"https://api.github.com/repos/simplymeasured/kong/subscribers","subscription_url":"https://api.github.com/repos/simplymeasured/kong/subscription","commits_url":"https://api.github.com/repos/simplymeasured/kong/commits{/sha}","git_commits_url":"https://api.github.com/repos/simplymeasured/kong/git/commits{/sha}","comments_url":"https://api.github.com/repos/simplymeasured/kong/comments{/number}","issue_comment_url":"https://api.github.com/repos/simplymeasured/kong/issues/comments{/number}","contents_url":"https://api.github.com/repos/simplymeasured/kong/contents/{+path}","compare_url":"https://api.github.com/repos/simplymeasured/kong/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simplymeasured/kong/merges","archive_url":"https://api.github.com/repos/simplymeasured/kong/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simplymeasured/kong/downloads","issues_url":"https://api.github.com/repos/simplymeasured/kong/issues{/number}","pulls_url":"https://api.github.com/repos/simplymeasured/kong/pulls{/number}","milestones_url":"https://api.github.com/repos/simplymeasured/kong/milestones{/number}","notifications_url":"https://api.github.com/repos/simplymeasured/kong/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simplymeasured/kong/labels{/name}","releases_url":"https://api.github.com/repos/simplymeasured/kong/releases{/id}","deployments_url":"https://api.github.com/repos/simplymeasured/kong/deployments","created_at":"2016-02-25T22:16:27Z","updated_at":"2016-02-26T20:22:14Z","pushed_at":"2016-05-18T23:52:40Z","git_url":"git://github.com/simplymeasured/kong.git","ssh_url":"git@github.com:simplymeasured/kong.git","clone_url":"https://github.com/simplymeasured/kong.git","svn_url":"https://github.com/simplymeasured/kong","homepage":null,"size":3004,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"simplymeasured:master","ref":"master","sha":"7e7f2e0b3d4583c2cb733050a20b9be650c33612","user":{"login":"simplymeasured","id":615935,"avatar_url":"https://avatars.githubusercontent.com/u/615935?v=3","gravatar_id":"","url":"https://api.github.com/users/simplymeasured","html_url":"https://github.com/simplymeasured","followers_url":"https://api.github.com/users/simplymeasured/followers","following_url":"https://api.github.com/users/simplymeasured/following{/other_user}","gists_url":"https://api.github.com/users/simplymeasured/gists{/gist_id}","starred_url":"https://api.github.com/users/simplymeasured/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simplymeasured/subscriptions","organizations_url":"https://api.github.com/users/simplymeasured/orgs","repos_url":"https://api.github.com/users/simplymeasured/repos","events_url":"https://api.github.com/users/simplymeasured/events{/privacy}","received_events_url":"https://api.github.com/users/simplymeasured/received_events","type":"Organization","site_admin":false},"repo":{"id":52560798,"name":"kong","full_name":"simplymeasured/kong","owner":{"login":"simplymeasured","id":615935,"avatar_url":"https://avatars.githubusercontent.com/u/615935?v=3","gravatar_id":"","url":"https://api.github.com/users/simplymeasured","html_url":"https://github.com/simplymeasured","followers_url":"https://api.github.com/users/simplymeasured/followers","following_url":"https://api.github.com/users/simplymeasured/following{/other_user}","gists_url":"https://api.github.com/users/simplymeasured/gists{/gist_id}","starred_url":"https://api.github.com/users/simplymeasured/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simplymeasured/subscriptions","organizations_url":"https://api.github.com/users/simplymeasured/orgs","repos_url":"https://api.github.com/users/simplymeasured/repos","events_url":"https://api.github.com/users/simplymeasured/events{/privacy}","received_events_url":"https://api.github.com/users/simplymeasured/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/simplymeasured/kong","description":"Internal fork of Mashape/kong","fork":false,"url":"https://api.github.com/repos/simplymeasured/kong","forks_url":"https://api.github.com/repos/simplymeasured/kong/forks","keys_url":"https://api.github.com/repos/simplymeasured/kong/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simplymeasured/kong/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simplymeasured/kong/teams","hooks_url":"https://api.github.com/repos/simplymeasured/kong/hooks","issue_events_url":"https://api.github.com/repos/simplymeasured/kong/issues/events{/number}","events_url":"https://api.github.com/repos/simplymeasured/kong/events","assignees_url":"https://api.github.com/repos/simplymeasured/kong/assignees{/user}","branches_url":"https://api.github.com/repos/simplymeasured/kong/branches{/branch}","tags_url":"https://api.github.com/repos/simplymeasured/kong/tags","blobs_url":"https://api.github.com/repos/simplymeasured/kong/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simplymeasured/kong/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simplymeasured/kong/git/refs{/sha}","trees_url":"https://api.github.com/repos/simplymeasured/kong/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simplymeasured/kong/statuses/{sha}","languages_url":"https://api.github.com/repos/simplymeasured/kong/languages","stargazers_url":"https://api.github.com/repos/simplymeasured/kong/stargazers","contributors_url":"https://api.github.com/repos/simplymeasured/kong/contributors","subscribers_url":"https://api.github.com/repos/simplymeasured/kong/subscribers","subscription_url":"https://api.github.com/repos/simplymeasured/kong/subscription","commits_url":"https://api.github.com/repos/simplymeasured/kong/commits{/sha}","git_commits_url":"https://api.github.com/repos/simplymeasured/kong/git/commits{/sha}","comments_url":"https://api.github.com/repos/simplymeasured/kong/comments{/number}","issue_comment_url":"https://api.github.com/repos/simplymeasured/kong/issues/comments{/number}","contents_url":"https://api.github.com/repos/simplymeasured/kong/contents/{+path}","compare_url":"https://api.github.com/repos/simplymeasured/kong/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simplymeasured/kong/merges","archive_url":"https://api.github.com/repos/simplymeasured/kong/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simplymeasured/kong/downloads","issues_url":"https://api.github.com/repos/simplymeasured/kong/issues{/number}","pulls_url":"https://api.github.com/repos/simplymeasured/kong/pulls{/number}","milestones_url":"https://api.github.com/repos/simplymeasured/kong/milestones{/number}","notifications_url":"https://api.github.com/repos/simplymeasured/kong/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simplymeasured/kong/labels{/name}","releases_url":"https://api.github.com/repos/simplymeasured/kong/releases{/id}","deployments_url":"https://api.github.com/repos/simplymeasured/kong/deployments","created_at":"2016-02-25T22:16:27Z","updated_at":"2016-02-26T20:22:14Z","pushed_at":"2016-05-18T23:52:40Z","git_url":"git://github.com/simplymeasured/kong.git","ssh_url":"git@github.com:simplymeasured/kong.git","clone_url":"https://github.com/simplymeasured/kong.git","svn_url":"https://github.com/simplymeasured/kong","homepage":null,"size":3004,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/simplymeasured/kong/pulls/9"},"html":{"href":"https://github.com/simplymeasured/kong/pull/9"},"issue":{"href":"https://api.github.com/repos/simplymeasured/kong/issues/9"},"comments":{"href":"https://api.github.com/repos/simplymeasured/kong/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/simplymeasured/kong/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/simplymeasured/kong/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/simplymeasured/kong/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/simplymeasured/kong/statuses/7bab333e8d7c68822feb6e4abfe5903a2c3d79fa"}}}}