Method: Honeybadger::Agent#check_in

Defined in:
lib/honeybadger/agent.rb

#check_in(id) ⇒ Boolean

Perform a synchronous check_in.

Examples:

Honeybadger.check_in('1MqIo1')

Parameters:

  • id (String)

    The unique check in id (e.g. ‘1MqIo1’) or the check in url.

Returns:

  • (Boolean)

    true if the check in was successful and false otherwise.

[View source]

205
206
207
208
209
210
# File 'lib/honeybadger/agent.rb', line 205

def check_in(id)
  # this is to allow check ins even if a url is passed
  check_in_id = id.to_s.strip.gsub(/\/$/, '').split('/').last
  response = backend.check_in(check_in_id)
  response.success?
end