Class: Fluent::InDatadogEvent
- Inherits:
-
Input
- Object
- Input
- Fluent::InDatadogEvent
- Defined in:
- lib/fluent/plugin/in_datadog_event.rb
Instance Method Summary collapse
-
#initialize ⇒ InDatadogEvent
constructor
A new instance of InDatadogEvent.
- #shutdown ⇒ Object
- #start ⇒ Object
Constructor Details
#initialize ⇒ InDatadogEvent
21 22 23 24 25 |
# File 'lib/fluent/plugin/in_datadog_event.rb', line 21 def initialize super # require "dogapi" end |
Instance Method Details
#shutdown ⇒ Object
33 34 35 36 |
# File 'lib/fluent/plugin/in_datadog_event.rb', line 33 def shutdown @finished = true @thread.join end |
#start ⇒ Object
27 28 29 30 31 |
# File 'lib/fluent/plugin/in_datadog_event.rb', line 27 def start @dog = Dogapi::Client.new(@api_key, @app_key) @finished = false @thread = Thread.new(&method(:run)) end |