Class: Fluent::Plugin::TerminalNotifierOutput

Inherits:
Output
  • Object
show all
Includes:
NotifyUtil
Defined in:
lib/fluent/plugin/out_terminal_notifier.rb

Constant Summary collapse

DEFAULT_TITLE =
"Fluentd Notification"
DEFAULT_SUB_TITLE =
"Fluentd Notification Sub Title"

Instance Method Summary collapse

Methods included from NotifyUtil

#make_option, #notify

Instance Method Details

#configure(conf) ⇒ Object



17
18
19
# File 'lib/fluent/plugin/out_terminal_notifier.rb', line 17

def configure(conf)
  super
end

#multi_workers_ready?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/fluent/plugin/out_terminal_notifier.rb', line 21

def multi_workers_ready?
  true
end

#process(tag, es) ⇒ Object



25
26
27
28
29
# File 'lib/fluent/plugin/out_terminal_notifier.rb', line 25

def process(tag, es)
  es.each{|time,record|
    notify(time, record)
  }
end