{"action":"created","issue":{"url":"https://api.github.com/repos/anchor/nagios-plugin-elasticsearch/issues/33","labels_url":"https://api.github.com/repos/anchor/nagios-plugin-elasticsearch/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/anchor/nagios-plugin-elasticsearch/issues/33/comments","events_url":"https://api.github.com/repos/anchor/nagios-plugin-elasticsearch/issues/33/events","html_url":"https://github.com/anchor/nagios-plugin-elasticsearch/pull/33","id":100328837,"number":33,"title":"Fetch cluster stats, simplify n_mnodes calculation.","user":{"login":"abokth","id":3417125,"avatar_url":"https://avatars.githubusercontent.com/u/3417125?v=3","gravatar_id":"","url":"https://api.github.com/users/abokth","html_url":"https://github.com/abokth","followers_url":"https://api.github.com/users/abokth/followers","following_url":"https://api.github.com/users/abokth/following{/other_user}","gists_url":"https://api.github.com/users/abokth/gists{/gist_id}","starred_url":"https://api.github.com/users/abokth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abokth/subscriptions","organizations_url":"https://api.github.com/users/abokth/orgs","repos_url":"https://api.github.com/users/abokth/repos","events_url":"https://api.github.com/users/abokth/events{/privacy}","received_events_url":"https://api.github.com/users/abokth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-11T14:43:22Z","updated_at":"2015-08-16T06:24:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/anchor/nagios-plugin-elasticsearch/pulls/33","html_url":"https://github.com/anchor/nagios-plugin-elasticsearch/pull/33","diff_url":"https://github.com/anchor/nagios-plugin-elasticsearch/pull/33.diff","patch_url":"https://github.com/anchor/nagios-plugin-elasticsearch/pull/33.patch"},"body":"This adds fetching of _cluster/stats, then calculates n_mnodes as the sum of master_only and master_data node counts. Would it be correct to do it this way?"},"comment":{"url":"https://api.github.com/repos/anchor/nagios-plugin-elasticsearch/issues/comments/131494898","html_url":"https://github.com/anchor/nagios-plugin-elasticsearch/pull/33#issuecomment-131494898","issue_url":"https://api.github.com/repos/anchor/nagios-plugin-elasticsearch/issues/33","id":131494898,"user":{"login":"olorin","id":737793,"avatar_url":"https://avatars.githubusercontent.com/u/737793?v=3","gravatar_id":"","url":"https://api.github.com/users/olorin","html_url":"https://github.com/olorin","followers_url":"https://api.github.com/users/olorin/followers","following_url":"https://api.github.com/users/olorin/following{/other_user}","gists_url":"https://api.github.com/users/olorin/gists{/gist_id}","starred_url":"https://api.github.com/users/olorin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olorin/subscriptions","organizations_url":"https://api.github.com/users/olorin/orgs","repos_url":"https://api.github.com/users/olorin/repos","events_url":"https://api.github.com/users/olorin/events{/privacy}","received_events_url":"https://api.github.com/users/olorin/received_events","type":"User","site_admin":false},"created_at":"2015-08-16T06:24:23Z","updated_at":"2015-08-16T06:24:23Z","body":"That looks okay to me; only concern would be compatibility with old versions of the API. "}}