Class: LogStash::Inputs::Mixpanel

Inherits:
Base
  • Object
show all
Defined in:
lib/logstash/inputs/mixpanel.rb

Overview

Generate a repeating message.

This plugin is intented only as an example.

Instance Method Summary collapse

Instance Method Details

#registerObject



31
32
33
34
# File 'lib/logstash/inputs/mixpanel.rb', line 31

def register
  require "rufus/scheduler"
  @client = Mixpanel::Client.new(api_key: @api_key, api_secret: @api_secret)
end

#run(queue) ⇒ Object

def register



36
37
38
39
40
41
42
43
# File 'lib/logstash/inputs/mixpanel.rb', line 36

def run(queue)
  if @schedule
    setup_scheduler(queue)
  else
    fetch(queue)
  end

end