{"action":"created","comment":{"url":"https://api.github.com/repos/envoyproxy/envoy/pulls/comments/227594105","pull_request_review_id":167672362,"id":227594105,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzU5NDEwNQ==","diff_hunk":"@@ -409,6 +413,14 @@ class PrioritySet {\n   COUNTER (upstream_rq_dropped)\n // clang-format on\n \n+/**\n+ * Report the circuit breaker state via a gauge, 0 for closed, 1 for open.\n+ */\n+// clang-format off\n+#define SET_CIRCUIT_BREAKER_STATE(gauge, resource)                                                 \\","path":"include/envoy/upstream/upstream.h","position":37,"original_position":37,"commit_id":"05e97022f30f6f6e9720b84edfaa3d615a7aa154","original_commit_id":"05e97022f30f6f6e9720b84edfaa3d615a7aa154","user":{"login":"mattklein123","id":6305260,"node_id":"MDQ6VXNlcjYzMDUyNjA=","avatar_url":"https://avatars3.githubusercontent.com/u/6305260?v=4","gravatar_id":"","url":"https://api.github.com/users/mattklein123","html_url":"https://github.com/mattklein123","followers_url":"https://api.github.com/users/mattklein123/followers","following_url":"https://api.github.com/users/mattklein123/following{/other_user}","gists_url":"https://api.github.com/users/mattklein123/gists{/gist_id}","starred_url":"https://api.github.com/users/mattklein123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattklein123/subscriptions","organizations_url":"https://api.github.com/users/mattklein123/orgs","repos_url":"https://api.github.com/users/mattklein123/repos","events_url":"https://api.github.com/users/mattklein123/events{/privacy}","received_events_url":"https://api.github.com/users/mattklein123/received_events","type":"User","site_admin":false},"body":"Does this need to be a macro? If so, can we let clang-format format it?","created_at":"2018-10-23T22:59:50Z","updated_at":"2018-10-23T23:00:03Z","html_url":"https://github.com/envoyproxy/envoy/pull/4781#discussion_r227594105","pull_request_url":"https://api.github.com/repos/envoyproxy/envoy/pulls/4781","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/envoyproxy/envoy/pulls/comments/227594105"},"html":{"href":"https://github.com/envoyproxy/envoy/pull/4781#discussion_r227594105"},"pull_request":{"href":"https://api.github.com/repos/envoyproxy/envoy/pulls/4781"}}},"pull_request":{"url":"https://api.github.com/repos/envoyproxy/envoy/pulls/4781","id":224054852,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0MDU0ODUy","html_url":"https://github.com/envoyproxy/envoy/pull/4781","diff_url":"https://github.com/envoyproxy/envoy/pull/4781.diff","patch_url":"https://github.com/envoyproxy/envoy/pull/4781.patch","issue_url":"https://api.github.com/repos/envoyproxy/envoy/issues/4781","number":4781,"state":"open","locked":false,"title":"circuit-breaker: expose live circuit breaker state","user":{"login":"venilnoronha","id":1722758,"node_id":"MDQ6VXNlcjE3MjI3NTg=","avatar_url":"https://avatars1.githubusercontent.com/u/1722758?v=4","gravatar_id":"","url":"https://api.github.com/users/venilnoronha","html_url":"https://github.com/venilnoronha","followers_url":"https://api.github.com/users/venilnoronha/followers","following_url":"https://api.github.com/users/venilnoronha/following{/other_user}","gists_url":"https://api.github.com/users/venilnoronha/gists{/gist_id}","starred_url":"https://api.github.com/users/venilnoronha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venilnoronha/subscriptions","organizations_url":"https://api.github.com/users/venilnoronha/orgs","repos_url":"https://api.github.com/users/venilnoronha/repos","events_url":"https://api.github.com/users/venilnoronha/events{/privacy}","received_events_url":"https://api.github.com/users/venilnoronha/received_events","type":"User","site_admin":false},"body":"*Description*: This PR adds new cluster stats to expose the live circuit breaker state.\r\n*Risk Level*: Low\r\n*Testing*: Updated existing tests\r\n*Docs Changes*: Updated cluster stats doc\r\n*Release Notes*: Added a note about new stats\r\nFixes #4762","created_at":"2018-10-18T18:29:48Z","updated_at":"2018-10-23T23:00:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7a092bbf71e349abc8937876edbc671dd187fb08","assignee":{"login":"junr03","id":6007532,"node_id":"MDQ6VXNlcjYwMDc1MzI=","avatar_url":"https://avatars0.githubusercontent.com/u/6007532?v=4","gravatar_id":"","url":"https://api.github.com/users/junr03","html_url":"https://github.com/junr03","followers_url":"https://api.github.com/users/junr03/followers","following_url":"https://api.github.com/users/junr03/following{/other_user}","gists_url":"https://api.github.com/users/junr03/gists{/gist_id}","starred_url":"https://api.github.com/users/junr03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junr03/subscriptions","organizations_url":"https://api.github.com/users/junr03/orgs","repos_url":"https://api.github.com/users/junr03/repos","events_url":"https://api.github.com/users/junr03/events{/privacy}","received_events_url":"https://api.github.com/users/junr03/received_events","type":"User","site_admin":false},"assignees":[{"login":"junr03","id":6007532,"node_id":"MDQ6VXNlcjYwMDc1MzI=","avatar_url":"https://avatars0.githubusercontent.com/u/6007532?v=4","gravatar_id":"","url":"https://api.github.com/users/junr03","html_url":"https://github.com/junr03","followers_url":"https://api.github.com/users/junr03/followers","following_url":"https://api.github.com/users/junr03/following{/other_user}","gists_url":"https://api.github.com/users/junr03/gists{/gist_id}","starred_url":"https://api.github.com/users/junr03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junr03/subscriptions","organizations_url":"https://api.github.com/users/junr03/orgs","repos_url":"https://api.github.com/users/junr03/repos","events_url":"https://api.github.com/users/junr03/events{/privacy}","received_events_url":"https://api.github.com/users/junr03/received_events","type":"User","site_admin":false},{"login":"htuch","id":10914751,"node_id":"MDQ6VXNlcjEwOTE0NzUx","avatar_url":"https://avatars1.githubusercontent.com/u/10914751?v=4","gravatar_id":"","url":"https://api.github.com/users/htuch","html_url":"https://github.com/htuch","followers_url":"https://api.github.com/users/htuch/followers","following_url":"https://api.github.com/users/htuch/following{/other_user}","gists_url":"https://api.github.com/users/htuch/gists{/gist_id}","starred_url":"https://api.github.com/users/htuch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htuch/subscriptions","organizations_url":"https://api.github.com/users/htuch/orgs","repos_url":"https://api.github.com/users/htuch/repos","events_url":"https://api.github.com/users/htuch/events{/privacy}","received_events_url":"https://api.github.com/users/htuch/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/envoyproxy/envoy/pulls/4781/commits","review_comments_url":"https://api.github.com/repos/envoyproxy/envoy/pulls/4781/comments","review_comment_url":"https://api.github.com/repos/envoyproxy/envoy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/envoyproxy/envoy/issues/4781/comments","statuses_url":"https://api.github.com/repos/envoyproxy/envoy/statuses/05e97022f30f6f6e9720b84edfaa3d615a7aa154","head":{"label":"venilnoronha:live-cb-state","ref":"live-cb-state","sha":"05e97022f30f6f6e9720b84edfaa3d615a7aa154","user":{"login":"venilnoronha","id":1722758,"node_id":"MDQ6VXNlcjE3MjI3NTg=","avatar_url":"https://avatars1.githubusercontent.com/u/1722758?v=4","gravatar_id":"","url":"https://api.github.com/users/venilnoronha","html_url":"https://github.com/venilnoronha","followers_url":"https://api.github.com/users/venilnoronha/followers","following_url":"https://api.github.com/users/venilnoronha/following{/other_user}","gists_url":"https://api.github.com/users/venilnoronha/gists{/gist_id}","starred_url":"https://api.github.com/users/venilnoronha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venilnoronha/subscriptions","organizations_url":"https://api.github.com/users/venilnoronha/orgs","repos_url":"https://api.github.com/users/venilnoronha/repos","events_url":"https://api.github.com/users/venilnoronha/events{/privacy}","received_events_url":"https://api.github.com/users/venilnoronha/received_events","type":"User","site_admin":false},"repo":{"id":140466161,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA0NjYxNjE=","name":"envoy","full_name":"venilnoronha/envoy","private":false,"owner":{"login":"venilnoronha","id":1722758,"node_id":"MDQ6VXNlcjE3MjI3NTg=","avatar_url":"https://avatars1.githubusercontent.com/u/1722758?v=4","gravatar_id":"","url":"https://api.github.com/users/venilnoronha","html_url":"https://github.com/venilnoronha","followers_url":"https://api.github.com/users/venilnoronha/followers","following_url":"https://api.github.com/users/venilnoronha/following{/other_user}","gists_url":"https://api.github.com/users/venilnoronha/gists{/gist_id}","starred_url":"https://api.github.com/users/venilnoronha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venilnoronha/subscriptions","organizations_url":"https://api.github.com/users/venilnoronha/orgs","repos_url":"https://api.github.com/users/venilnoronha/repos","events_url":"https://api.github.com/users/venilnoronha/events{/privacy}","received_events_url":"https://api.github.com/users/venilnoronha/received_events","type":"User","site_admin":false},"html_url":"https://github.com/venilnoronha/envoy","description":"C++ front/service proxy","fork":true,"url":"https://api.github.com/repos/venilnoronha/envoy","forks_url":"https://api.github.com/repos/venilnoronha/envoy/forks","keys_url":"https://api.github.com/repos/venilnoronha/envoy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/venilnoronha/envoy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/venilnoronha/envoy/teams","hooks_url":"https://api.github.com/repos/venilnoronha/envoy/hooks","issue_events_url":"https://api.github.com/repos/venilnoronha/envoy/issues/events{/number}","events_url":"https://api.github.com/repos/venilnoronha/envoy/events","assignees_url":"https://api.github.com/repos/venilnoronha/envoy/assignees{/user}","branches_url":"https://api.github.com/repos/venilnoronha/envoy/branches{/branch}","tags_url":"https://api.github.com/repos/venilnoronha/envoy/tags","blobs_url":"https://api.github.com/repos/venilnoronha/envoy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/venilnoronha/envoy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/venilnoronha/envoy/git/refs{/sha}","trees_url":"https://api.github.com/repos/venilnoronha/envoy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/venilnoronha/envoy/statuses/{sha}","languages_url":"https://api.github.com/repos/venilnoronha/envoy/languages","stargazers_url":"https://api.github.com/repos/venilnoronha/envoy/stargazers","contributors_url":"https://api.github.com/repos/venilnoronha/envoy/contributors","subscribers_url":"https://api.github.com/repos/venilnoronha/envoy/subscribers","subscription_url":"https://api.github.com/repos/venilnoronha/envoy/subscription","commits_url":"https://api.github.com/repos/venilnoronha/envoy/commits{/sha}","git_commits_url":"https://api.github.com/repos/venilnoronha/envoy/git/commits{/sha}","comments_url":"https://api.github.com/repos/venilnoronha/envoy/comments{/number}","issue_comment_url":"https://api.github.com/repos/venilnoronha/envoy/issues/comments{/number}","contents_url":"https://api.github.com/repos/venilnoronha/envoy/contents/{+path}","compare_url":"https://api.github.com/repos/venilnoronha/envoy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/venilnoronha/envoy/merges","archive_url":"https://api.github.com/repos/venilnoronha/envoy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/venilnoronha/envoy/downloads","issues_url":"https://api.github.com/repos/venilnoronha/envoy/issues{/number}","pulls_url":"https://api.github.com/repos/venilnoronha/envoy/pulls{/number}","milestones_url":"https://api.github.com/repos/venilnoronha/envoy/milestones{/number}","notifications_url":"https://api.github.com/repos/venilnoronha/envoy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/venilnoronha/envoy/labels{/name}","releases_url":"https://api.github.com/repos/venilnoronha/envoy/releases{/id}","deployments_url":"https://api.github.com/repos/venilnoronha/envoy/deployments","created_at":"2018-07-10T17:26:12Z","updated_at":"2018-07-10T17:26:19Z","pushed_at":"2018-10-23T19:43:21Z","git_url":"git://github.com/venilnoronha/envoy.git","ssh_url":"git@github.com:venilnoronha/envoy.git","clone_url":"https://github.com/venilnoronha/envoy.git","svn_url":"https://github.com/venilnoronha/envoy","homepage":"https://www.envoyproxy.io","size":22441,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"envoyproxy:master","ref":"master","sha":"e2a05c6164a1bbca1259a204a1b2b9d2f688b29a","user":{"login":"envoyproxy","id":30125649,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMTI1NjQ5","avatar_url":"https://avatars1.githubusercontent.com/u/30125649?v=4","gravatar_id":"","url":"https://api.github.com/users/envoyproxy","html_url":"https://github.com/envoyproxy","followers_url":"https://api.github.com/users/envoyproxy/followers","following_url":"https://api.github.com/users/envoyproxy/following{/other_user}","gists_url":"https://api.github.com/users/envoyproxy/gists{/gist_id}","starred_url":"https://api.github.com/users/envoyproxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/envoyproxy/subscriptions","organizations_url":"https://api.github.com/users/envoyproxy/orgs","repos_url":"https://api.github.com/users/envoyproxy/repos","events_url":"https://api.github.com/users/envoyproxy/events{/privacy}","received_events_url":"https://api.github.com/users/envoyproxy/received_events","type":"Organization","site_admin":false},"repo":{"id":65214191,"node_id":"MDEwOlJlcG9zaXRvcnk2NTIxNDE5MQ==","name":"envoy","full_name":"envoyproxy/envoy","private":false,"owner":{"login":"envoyproxy","id":30125649,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMTI1NjQ5","avatar_url":"https://avatars1.githubusercontent.com/u/30125649?v=4","gravatar_id":"","url":"https://api.github.com/users/envoyproxy","html_url":"https://github.com/envoyproxy","followers_url":"https://api.github.com/users/envoyproxy/followers","following_url":"https://api.github.com/users/envoyproxy/following{/other_user}","gists_url":"https://api.github.com/users/envoyproxy/gists{/gist_id}","starred_url":"https://api.github.com/users/envoyproxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/envoyproxy/subscriptions","organizations_url":"https://api.github.com/users/envoyproxy/orgs","repos_url":"https://api.github.com/users/envoyproxy/repos","events_url":"https://api.github.com/users/envoyproxy/events{/privacy}","received_events_url":"https://api.github.com/users/envoyproxy/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/envoyproxy/envoy","description":"C++ front/service proxy","fork":false,"url":"https://api.github.com/repos/envoyproxy/envoy","forks_url":"https://api.github.com/repos/envoyproxy/envoy/forks","keys_url":"https://api.github.com/repos/envoyproxy/envoy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/envoyproxy/envoy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/envoyproxy/envoy/teams","hooks_url":"https://api.github.com/repos/envoyproxy/envoy/hooks","issue_events_url":"https://api.github.com/repos/envoyproxy/envoy/issues/events{/number}","events_url":"https://api.github.com/repos/envoyproxy/envoy/events","assignees_url":"https://api.github.com/repos/envoyproxy/envoy/assignees{/user}","branches_url":"https://api.github.com/repos/envoyproxy/envoy/branches{/branch}","tags_url":"https://api.github.com/repos/envoyproxy/envoy/tags","blobs_url":"https://api.github.com/repos/envoyproxy/envoy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/envoyproxy/envoy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/envoyproxy/envoy/git/refs{/sha}","trees_url":"https://api.github.com/repos/envoyproxy/envoy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/envoyproxy/envoy/statuses/{sha}","languages_url":"https://api.github.com/repos/envoyproxy/envoy/languages","stargazers_url":"https://api.github.com/repos/envoyproxy/envoy/stargazers","contributors_url":"https://api.github.com/repos/envoyproxy/envoy/contributors","subscribers_url":"https://api.github.com/repos/envoyproxy/envoy/subscribers","subscription_url":"https://api.github.com/repos/envoyproxy/envoy/subscription","commits_url":"https://api.github.com/repos/envoyproxy/envoy/commits{/sha}","git_commits_url":"https://api.github.com/repos/envoyproxy/envoy/git/commits{/sha}","comments_url":"https://api.github.com/repos/envoyproxy/envoy/comments{/number}","issue_comment_url":"https://api.github.com/repos/envoyproxy/envoy/issues/comments{/number}","contents_url":"https://api.github.com/repos/envoyproxy/envoy/contents/{+path}","compare_url":"https://api.github.com/repos/envoyproxy/envoy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/envoyproxy/envoy/merges","archive_url":"https://api.github.com/repos/envoyproxy/envoy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/envoyproxy/envoy/downloads","issues_url":"https://api.github.com/repos/envoyproxy/envoy/issues{/number}","pulls_url":"https://api.github.com/repos/envoyproxy/envoy/pulls{/number}","milestones_url":"https://api.github.com/repos/envoyproxy/envoy/milestones{/number}","notifications_url":"https://api.github.com/repos/envoyproxy/envoy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/envoyproxy/envoy/labels{/name}","releases_url":"https://api.github.com/repos/envoyproxy/envoy/releases{/id}","deployments_url":"https://api.github.com/repos/envoyproxy/envoy/deployments","created_at":"2016-08-08T15:07:24Z","updated_at":"2018-10-23T22:37:45Z","pushed_at":"2018-10-23T22:42:59Z","git_url":"git://github.com/envoyproxy/envoy.git","ssh_url":"git@github.com:envoyproxy/envoy.git","clone_url":"https://github.com/envoyproxy/envoy.git","svn_url":"https://github.com/envoyproxy/envoy","homepage":"https://www.envoyproxy.io","size":22300,"stargazers_count":6894,"watchers_count":6894,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":947,"mirror_url":null,"archived":false,"open_issues_count":388,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":947,"open_issues":388,"watchers":6894,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/envoyproxy/envoy/pulls/4781"},"html":{"href":"https://github.com/envoyproxy/envoy/pull/4781"},"issue":{"href":"https://api.github.com/repos/envoyproxy/envoy/issues/4781"},"comments":{"href":"https://api.github.com/repos/envoyproxy/envoy/issues/4781/comments"},"review_comments":{"href":"https://api.github.com/repos/envoyproxy/envoy/pulls/4781/comments"},"review_comment":{"href":"https://api.github.com/repos/envoyproxy/envoy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/envoyproxy/envoy/pulls/4781/commits"},"statuses":{"href":"https://api.github.com/repos/envoyproxy/envoy/statuses/05e97022f30f6f6e9720b84edfaa3d615a7aa154"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"mattklein123"}}