{"action":"created","issue":{"url":"https://api.github.com/repos/cablehead/python-consul/issues/24","labels_url":"https://api.github.com/repos/cablehead/python-consul/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/cablehead/python-consul/issues/24/comments","events_url":"https://api.github.com/repos/cablehead/python-consul/issues/24/events","html_url":"https://github.com/cablehead/python-consul/issues/24","id":59856063,"number":24,"title":"Unable to pull all service health","user":{"login":"pete0emerson","id":296757,"avatar_url":"https://avatars.githubusercontent.com/u/296757?v=3","gravatar_id":"","url":"https://api.github.com/users/pete0emerson","html_url":"https://github.com/pete0emerson","followers_url":"https://api.github.com/users/pete0emerson/followers","following_url":"https://api.github.com/users/pete0emerson/following{/other_user}","gists_url":"https://api.github.com/users/pete0emerson/gists{/gist_id}","starred_url":"https://api.github.com/users/pete0emerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pete0emerson/subscriptions","organizations_url":"https://api.github.com/users/pete0emerson/orgs","repos_url":"https://api.github.com/users/pete0emerson/repos","events_url":"https://api.github.com/users/pete0emerson/events{/privacy}","received_events_url":"https://api.github.com/users/pete0emerson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-03-04T20:22:40Z","updated_at":"2015-03-04T22:11:15Z","closed_at":null,"body":"With Consul.Health.service() I can pull the current health of a specified service. I'd like to be able to pull the current health of *all* services. This is how I do it with the consul CLI:\r\n\r\nconsul watch -type=checks cat\r\n\r\nLike the current Health.service(), I need to use an index so that I can continually pull changes to the health checks. It looks like this is not possible with Consul.Health.service(), and I don't see how to do it with any of the other classes. "},"comment":{"url":"https://api.github.com/repos/cablehead/python-consul/issues/comments/77261157","html_url":"https://github.com/cablehead/python-consul/issues/24#issuecomment-77261157","issue_url":"https://api.github.com/repos/cablehead/python-consul/issues/24","id":77261157,"user":{"login":"pete0emerson","id":296757,"avatar_url":"https://avatars.githubusercontent.com/u/296757?v=3","gravatar_id":"","url":"https://api.github.com/users/pete0emerson","html_url":"https://github.com/pete0emerson","followers_url":"https://api.github.com/users/pete0emerson/followers","following_url":"https://api.github.com/users/pete0emerson/following{/other_user}","gists_url":"https://api.github.com/users/pete0emerson/gists{/gist_id}","starred_url":"https://api.github.com/users/pete0emerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pete0emerson/subscriptions","organizations_url":"https://api.github.com/users/pete0emerson/orgs","repos_url":"https://api.github.com/users/pete0emerson/repos","events_url":"https://api.github.com/users/pete0emerson/events{/privacy}","received_events_url":"https://api.github.com/users/pete0emerson/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T22:11:15Z","updated_at":"2015-03-04T22:11:15Z","body":"Interesting thing about that assert, I thought about that too, but the API allows you to curl a non-existent state and returns a 200 OK:\r\n\r\n```bash\r\n$ curl -v localhost:8500/v1/health/state/fdshjfkdshfjsk\r\n* Hostname was NOT found in DNS cache\r\n*   Trying 127.0.0.1...\r\n* Connected to localhost (127.0.0.1) port 8500 (#0)\r\n> GET /v1/health/state/fdshjfkdshfjsk HTTP/1.1\r\n> User-Agent: curl/7.37.1\r\n> Host: localhost:8500\r\n> Accept: */*\r\n>\r\n< HTTP/1.1 200 OK\r\n< Content-Type: application/json\r\n< X-Consul-Index: 1027\r\n< X-Consul-Knownleader: true\r\n< X-Consul-Lastcontact: 0\r\n< Date: Wed, 04 Mar 2015 22:10:30 GMT\r\n< Content-Length: 2\r\n<\r\n* Connection #0 to host localhost left intact\r\n[]\r\n```\r\n\r\nBased on that, what would you prefer?"}}