Class: Observed::BuiltinPlugins::Stdout

Inherits:
Reporter
  • Object
show all
Includes:
Reporter::RegexpMatching, Reporter::ReportFormatting
Defined in:
lib/observed/builtin_plugins/stdout.rb

Instance Method Summary collapse

Methods included from Reporter::ReportFormatting

#format_report

Methods included from Configurable

#configure, #get_attribute_value, #has_attribute_value?, included, #initialize

Methods included from Reporter::RegexpMatching

#match

Methods inherited from Reporter

#match

Methods included from Pluggable

included

Instance Method Details

#report(tag, time, data) ⇒ Object

Parameters:

  • tag (String)
  • time (Time)
  • data (Hash)
  • format_result (Object)


20
21
22
23
# File 'lib/observed/builtin_plugins/stdout.rb', line 20

def report(tag, time, data)
  formatted_data = format_report(tag, time, data)
  output.puts formatted_data
end