{"action":"created","issue":{"url":"https://api.github.com/repos/sensu/sensu/issues/1025","labels_url":"https://api.github.com/repos/sensu/sensu/issues/1025/labels{/name}","comments_url":"https://api.github.com/repos/sensu/sensu/issues/1025/comments","events_url":"https://api.github.com/repos/sensu/sensu/issues/1025/events","html_url":"https://github.com/sensu/sensu/issues/1025","id":101079550,"number":1025,"title":"Sensu does not set event[:check][:type] = \"standard\" for standard checks.","user":{"login":"erenfro","id":1180990,"avatar_url":"https://avatars.githubusercontent.com/u/1180990?v=3","gravatar_id":"","url":"https://api.github.com/users/erenfro","html_url":"https://github.com/erenfro","followers_url":"https://api.github.com/users/erenfro/followers","following_url":"https://api.github.com/users/erenfro/following{/other_user}","gists_url":"https://api.github.com/users/erenfro/gists{/gist_id}","starred_url":"https://api.github.com/users/erenfro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erenfro/subscriptions","organizations_url":"https://api.github.com/users/erenfro/orgs","repos_url":"https://api.github.com/users/erenfro/repos","events_url":"https://api.github.com/users/erenfro/events{/privacy}","received_events_url":"https://api.github.com/users/erenfro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sensu/sensu/labels/Feature","name":"Feature","color":"02e10c"},{"url":"https://api.github.com/repos/sensu/sensu/labels/Small","name":"Small","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-14T18:54:05Z","updated_at":"2015-10-19T21:53:10Z","closed_at":null,"body":"Checks with type \"metric\" specifically set, always has that returned in the json/hash of the event object, but standard checks, which are the default, unless specifically defined in the client config, do not specifically provide the value for event[:check][:type], and it should be \"standard\".\r\n\r\nThis causes issues when trying to handle standard and metric checks, and any other kind of future checks that may eventually be implemented. With the way ruby hash's work, the only viable method I found to determine specifically if a check is standard is with the following code:\r\n\r\n          if event[:check].key?(:type)\r\n            check_type = event[:check][:type]\r\n          else\r\n            check_type = \"standard\"\r\n          end\r\n\r\nWhich.. Honestly, isn't very good to assume everything is standard.\r\n"},"comment":{"url":"https://api.github.com/repos/sensu/sensu/issues/comments/149358875","html_url":"https://github.com/sensu/sensu/issues/1025#issuecomment-149358875","issue_url":"https://api.github.com/repos/sensu/sensu/issues/1025","id":149358875,"user":{"login":"portertech","id":149630,"avatar_url":"https://avatars.githubusercontent.com/u/149630?v=3","gravatar_id":"","url":"https://api.github.com/users/portertech","html_url":"https://github.com/portertech","followers_url":"https://api.github.com/users/portertech/followers","following_url":"https://api.github.com/users/portertech/following{/other_user}","gists_url":"https://api.github.com/users/portertech/gists{/gist_id}","starred_url":"https://api.github.com/users/portertech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portertech/subscriptions","organizations_url":"https://api.github.com/users/portertech/orgs","repos_url":"https://api.github.com/users/portertech/repos","events_url":"https://api.github.com/users/portertech/events{/privacy}","received_events_url":"https://api.github.com/users/portertech/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T21:53:10Z","updated_at":"2015-10-19T21:53:10Z","body":"This is an excellent question for the next Sensu community survey."}}