class Fluent::UpsolverOutput

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_upsolver.rb, line 4
def initialize
  super
  require 'curb'
end

Public Instance Methods

configure(conf) click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_upsolver.rb, line 11
def configure(conf)
  super
end
end() click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_upsolver.rb, line 19
def end
  super
end
format(tag, time, record) click to toggle source
# File lib/fluent/plugin/out_upsolver.rb, line 23
def format(tag, time, record)
  {:tag => tag, :time => time, :record => record }.to_json + "\n"
end
start() click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_upsolver.rb, line 15
def start
  super
end
write(chunk) click to toggle source
# File lib/fluent/plugin/out_upsolver.rb, line 27
def write(chunk)
  data = chunk.read
  Curl.post(@endpoint_url, data)
end