lib/sensu/extensions/check-deps.rb
# Check to see if an event exists for a client/check pair. This
# method is looking for a HTTP response code of `200`.
#
# @param client_name [String]
# @param check_name [String]
# @return [Boolean]
Check to see if an event exists for a client/check pair. This
method is looking for a HTTP response code of `200`.
Check to see if an event exists for a client / check pair . This method is looking for a HTTP response code of ` 200 ` .
def client_event_exists?(client_name, check_name)
        path = "/events/#{client_name}/#{check_name}"
        response = sensu_api_get_request(path)
        response.code.to_i == 200
            end
def client_event_exists? ( client_name , check_name ) path = "/events/#{client_name}/#{check_name}" response = sensu_api_get_request ( path ) response . code . to_i == 200 end
Check to see if an event exists for a client/check pair.
Check to see if an event exists for a client / check pair .
None
Boolean
client_name
<not_specific>
check_name
<not_specific>
<not_specific>
None