Class: JIJI::GraphOut
Overview
グラフデータの出力先
Instance Attribute Summary
Attributes inherited from BaseOut
Instance Method Summary collapse
- #aggregators ⇒ Object
-
#initialize(dir, name, options, scales = []) ⇒ GraphOut
constructor
コンストラクタ.
-
#put(*numbers) ⇒ Object
ログを書き込む.
Methods inherited from BaseOut
Constructor Details
#initialize(dir, name, options, scales = []) ⇒ GraphOut
コンストラクタ
151 152 153 154 |
# File 'lib/jiji/output.rb', line 151 def initialize( dir, name, , scales=[] ) @scales = scales super( dir, name, ) end |
Instance Method Details
#aggregators ⇒ Object
159 160 161 162 |
# File 'lib/jiji/output.rb', line 159 def aggregators list = @scales.map{|s| JIJI::Dao::AvgAggregator.new s} list << JIJI::Dao::RawAggregator.new end |
#put(*numbers) ⇒ Object
ログを書き込む
156 157 158 |
# File 'lib/jiji/output.rb', line 156 def put( *numbers ) @dao << JIJI::Dao::BasicTimedData.new( numbers << @time.to_i, @time) end |