Sha256: 75f9a3bc249f63aa2adff7111c424499d8fcbc1e23ac0cfa2399e4825fd65471
Contents?: true
Size: 394 Bytes
Versions: 2
Compression:
Stored size: 394 Bytes
Contents
class FluQ::Format::Json < FluQ::Format::Lines # @see FluQ::Format::Base.to_event def self.to_event(raw) case hash = MultiJson.load(raw) when Hash FluQ::Event.new(hash) else logger.warn "buffer contained invalid event #{hash.inspect}" nil end rescue MultiJson::LoadError logger.warn "buffer contained invalid line #{raw.inspect}" nil end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fluq-0.8.1 | lib/fluq/format/json.rb |
fluq-0.8.0 | lib/fluq/format/json.rb |