GitHub PullRequestReviewCommentEvent at 2014-08-28 15:23:29
Repository: pp-puppet
Actor: tombooth
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/pp-puppet/pulls/comments/16846494","id":16846494,"diff_hunk":"@@ -0,0 +1,18 @@\n+CREATE OR REPLACE FUNCTION streaming_slave_check() RETURNS TABLE (client_hostname text, client_addr inet, byte_lag float)\n+LANGUAGE SQL SECURITY DEFINER\n+AS $$\n+    SELECT\n+        split_part(client_hostname, '.', 1),\n+        client_addr,\n+        sent_offset - (replay_offset - (sent_xlog - replay_xlog) * 255 * 16 ^ 6 ) AS byte_lag\n+    FROM (\n+        SELECT\n+            client_hostname,\n+            client_addr,\n+            ('x' || lpad(split_part(sent_location,   '/', 1), 8, '0'))::bit(32)::bigint AS sent_xlog,\n+            ('x' || lpad(split_part(replay_location, '/', 1), 8, '0'))::bit(32)::bigint AS replay_xlog,\n+            ('x' || lpad(split_part(sent_location,   '/', 2), 8, '0'))::bit(32)::bigint AS sent_offset,\n+            ('x' || lpad(split_part(replay_location, '/', 2), 8, '0'))::bit(32)::bigint AS replay_offset\n+        FROM pg_stat_replication\n+    ) AS s; \n+$$;","path":"modules/pp_postgres/templates/collectd-query-replication-status.sql.erb","position":18,"original_position":18,"commit_id":"ac52f4e80675e0cd976e8e999102012ad0301a1e","original_commit_id":"ac52f4e80675e0cd976e8e999102012ad0301a1e","user":{"login":"tombooth","id":108382,"avatar_url":"https://avatars.githubusercontent.com/u/108382?v=2","gravatar_id":"0d5db21120a408c4c5dbd3ec1e1b55f0","url":"https://api.github.com/users/tombooth","html_url":"https://github.com/tombooth","followers_url":"https://api.github.com/users/tombooth/followers","following_url":"https://api.github.com/users/tombooth/following{/other_user}","gists_url":"https://api.github.com/users/tombooth/gists{/gist_id}","starred_url":"https://api.github.com/users/tombooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombooth/subscriptions","organizations_url":"https://api.github.com/users/tombooth/orgs","repos_url":"https://api.github.com/users/tombooth/repos","events_url":"https://api.github.com/users/tombooth/events{/privacy}","received_events_url":"https://api.github.com/users/tombooth/received_events","type":"User","site_admin":false},"body":"I'm probably being blind, but where is the templating in this template","created_at":"2014-08-28T15:23:29Z","updated_at":"2014-08-28T15:23:29Z","html_url":"https://github.com/alphagov/pp-puppet/pull/574#discussion_r16846494","pull_request_url":"https://api.github.com/repos/alphagov/pp-puppet/pulls/574","_links":{"self":{"href":"https://api.github.com/repos/alphagov/pp-puppet/pulls/comments/16846494"},"html":{"href":"https://github.com/alphagov/pp-puppet/pull/574#discussion_r16846494"},"pull_request":{"href":"https://api.github.com/repos/alphagov/pp-puppet/pulls/574"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/pp-puppet/pulls/574","id":20443784,"html_url":"https://github.com/alphagov/pp-puppet/pull/574","diff_url":"https://github.com/alphagov/pp-puppet/pull/574.diff","patch_url":"https://github.com/alphagov/pp-puppet/pull/574.patch","issue_url":"https://api.github.com/repos/alphagov/pp-puppet/issues/574","number":574,"state":"open","locked":false,"title":"Add PostgreSQL replication lag to collectd","user":{"login":"robyoung","id":14287,"avatar_url":"https://avatars.githubusercontent.com/u/14287?v=2","gravatar_id":"09cbeba69993bb82b3fc7b70926dfc4c","url":"https://api.github.com/users/robyoung","html_url":"https://github.com/robyoung","followers_url":"https://api.github.com/users/robyoung/followers","following_url":"https://api.github.com/users/robyoung/following{/other_user}","gists_url":"https://api.github.com/users/robyoung/gists{/gist_id}","starred_url":"https://api.github.com/users/robyoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robyoung/subscriptions","organizations_url":"https://api.github.com/users/robyoung/orgs","repos_url":"https://api.github.com/users/robyoung/repos","events_url":"https://api.github.com/users/robyoung/events{/privacy}","received_events_url":"https://api.github.com/users/robyoung/received_events","type":"User","site_admin":false},"body":"Create a stored procedure to calculate the number of bytes secondaries\r\nare lagging from the primary. This is only tracked on the primary so it\r\nis only added to the collectd query list there.","created_at":"2014-08-28T14:56:04Z","updated_at":"2014-08-28T15:23:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3e79c7dcec4057f87450a99872c7c5ed7a12c67","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/pp-puppet/pulls/574/commits","review_comments_url":"https://api.github.com/repos/alphagov/pp-puppet/pulls/574/comments","review_comment_url":"https://api.github.com/repos/alphagov/pp-puppet/pulls/comments/{number}","comments_url":"https://api.github.com/repos/alphagov/pp-puppet/issues/574/comments","statuses_url":"https://api.github.com/repos/alphagov/pp-puppet/statuses/ac52f4e80675e0cd976e8e999102012ad0301a1e","head":{"label":"alphagov:postgres-replication-monitoring","ref":"postgres-replication-monitoring","sha":"ac52f4e80675e0cd976e8e999102012ad0301a1e","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=2","gravatar_id":"5618b843830194a2475a6e48823f7455","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":10238423,"name":"pp-puppet","full_name":"alphagov/pp-puppet","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=2","gravatar_id":"5618b843830194a2475a6e48823f7455","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/pp-puppet","description":"Contains the Puppet code to provision environments for Performance Platform","fork":false,"url":"https://api.github.com/repos/alphagov/pp-puppet","forks_url":"https://api.github.com/repos/alphagov/pp-puppet/forks","keys_url":"https://api.github.com/repos/alphagov/pp-puppet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/pp-puppet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/pp-puppet/teams","hooks_url":"https://api.github.com/repos/alphagov/pp-puppet/hooks","issue_events_url":"https://api.github.com/repos/alphagov/pp-puppet/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/pp-puppet/events","assignees_url":"https://api.github.com/repos/alphagov/pp-puppet/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/pp-puppet/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/pp-puppet/tags","blobs_url":"https://api.github.com/repos/alphagov/pp-puppet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/pp-puppet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/pp-puppet/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/pp-puppet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/pp-puppet/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/pp-puppet/languages","stargazers_url":"https://api.github.com/repos/alphagov/pp-puppet/stargazers","contributors_url":"https://api.github.com/repos/alphagov/pp-puppet/contributors","subscribers_url":"https://api.github.com/repos/alphagov/pp-puppet/subscribers","subscription_url":"https://api.github.com/repos/alphagov/pp-puppet/subscription","commits_url":"https://api.github.com/repos/alphagov/pp-puppet/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/pp-puppet/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/pp-puppet/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/pp-puppet/issues/comments/{number}","contents_url":"https://api.github.com/repos/alphagov/pp-puppet/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/pp-puppet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/pp-puppet/merges","archive_url":"https://api.github.com/repos/alphagov/pp-puppet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/pp-puppet/downloads","issues_url":"https://api.github.com/repos/alphagov/pp-puppet/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/pp-puppet/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/pp-puppet/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/pp-puppet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/pp-puppet/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/pp-puppet/releases{/id}","created_at":"2013-05-23T07:37:37Z","updated_at":"2014-08-09T16:02:10Z","pushed_at":"2014-08-28T14:55:55Z","git_url":"git://github.com/alphagov/pp-puppet.git","ssh_url":"git@github.com:alphagov/pp-puppet.git","clone_url":"https://github.com/alphagov/pp-puppet.git","svn_url":"https://github.com/alphagov/pp-puppet","homepage":"","size":76379,"stargazers_count":10,"watchers_count":10,"language":"Puppet","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":10,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"7d2ed19fad73fe375ebb8fa0bdedadf451cda368","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=2","gravatar_id":"5618b843830194a2475a6e48823f7455","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":10238423,"name":"pp-puppet","full_name":"alphagov/pp-puppet","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=2","gravatar_id":"5618b843830194a2475a6e48823f7455","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/pp-puppet","description":"Contains the Puppet code to provision environments for Performance Platform","fork":false,"url":"https://api.github.com/repos/alphagov/pp-puppet","forks_url":"https://api.github.com/repos/alphagov/pp-puppet/forks","keys_url":"https://api.github.com/repos/alphagov/pp-puppet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/pp-puppet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/pp-puppet/teams","hooks_url":"https://api.github.com/repos/alphagov/pp-puppet/hooks","issue_events_url":"https://api.github.com/repos/alphagov/pp-puppet/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/pp-puppet/events","assignees_url":"https://api.github.com/repos/alphagov/pp-puppet/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/pp-puppet/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/pp-puppet/tags","blobs_url":"https://api.github.com/repos/alphagov/pp-puppet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/pp-puppet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/pp-puppet/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/pp-puppet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/pp-puppet/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/pp-puppet/languages","stargazers_url":"https://api.github.com/repos/alphagov/pp-puppet/stargazers","contributors_url":"https://api.github.com/repos/alphagov/pp-puppet/contributors","subscribers_url":"https://api.github.com/repos/alphagov/pp-puppet/subscribers","subscription_url":"https://api.github.com/repos/alphagov/pp-puppet/subscription","commits_url":"https://api.github.com/repos/alphagov/pp-puppet/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/pp-puppet/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/pp-puppet/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/pp-puppet/issues/comments/{number}","contents_url":"https://api.github.com/repos/alphagov/pp-puppet/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/pp-puppet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/pp-puppet/merges","archive_url":"https://api.github.com/repos/alphagov/pp-puppet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/pp-puppet/downloads","issues_url":"https://api.github.com/repos/alphagov/pp-puppet/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/pp-puppet/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/pp-puppet/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/pp-puppet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/pp-puppet/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/pp-puppet/releases{/id}","created_at":"2013-05-23T07:37:37Z","updated_at":"2014-08-09T16:02:10Z","pushed_at":"2014-08-28T14:55:55Z","git_url":"git://github.com/alphagov/pp-puppet.git","ssh_url":"git@github.com:alphagov/pp-puppet.git","clone_url":"https://github.com/alphagov/pp-puppet.git","svn_url":"https://github.com/alphagov/pp-puppet","homepage":"","size":76379,"stargazers_count":10,"watchers_count":10,"language":"Puppet","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/pp-puppet/pulls/574"},"html":{"href":"https://github.com/alphagov/pp-puppet/pull/574"},"issue":{"href":"https://api.github.com/repos/alphagov/pp-puppet/issues/574"},"comments":{"href":"https://api.github.com/repos/alphagov/pp-puppet/issues/574/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/pp-puppet/pulls/574/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/pp-puppet/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/alphagov/pp-puppet/pulls/574/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/pp-puppet/statuses/ac52f4e80675e0cd976e8e999102012ad0301a1e"}}}}