Join GitHub today
Sensu does not set event[:check][:type] = "standard" for standard checks. #1025
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".
This 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:
Which.. Honestly, isn't very good to assume everything is standard.