Method: LogStash::Outputs::Rollbar#register

Defined in:
lib/logstash/outputs/rollbar.rb

#registerObject



43
44
45
46
47
48
49
50
51
52
# File 'lib/logstash/outputs/rollbar.rb', line 43

def register
  require 'net/https'
  require 'uri'
  @rb_uri = URI.parse(@endpoint)
  @client = Net::HTTP.new(@rb_uri.host, @rb_uri.port)
  if @rb_uri.scheme == "https"
    @client.use_ssl = true
    @client.verify_mode = OpenSSL::SSL::VERIFY_PEER
  end
end