Class: Fluent::MetricSenseOutput::Backends::StdoutBackend
- Inherits:
-
Fluent::MetricSenseOutput::Backend
- Object
- Fluent::MetricSenseOutput::Backend
- Fluent::MetricSenseOutput::Backends::StdoutBackend
- Defined in:
- lib/fluent/plugin/backends/stdout_backend.rb
Constant Summary
Constants inherited from Fluent::MetricSenseOutput::Backend
Fluent::MetricSenseOutput::Backend::UpdateMode
Instance Attribute Summary
Attributes inherited from Fluent::MetricSenseOutput::Backend
Instance Method Summary collapse
Methods inherited from Fluent::MetricSenseOutput::Backend
Instance Method Details
#write(data) ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/fluent/plugin/backends/stdout_backend.rb', line 23 def write(data) data.each {|tag,time,value,seg_key,seg_val,mode| if seg_key puts "#{Time.at(time)} #{tag}: #{value}" else puts "#{Time.at(time)} #{tag} [#{seg_key}=#{seg_val}]: #{value}" end } end |