Method: Loki::Batch#initialize

Defined in:
lib/logstash/outputs/loki/batch.rb

#initialize(e) ⇒ Batch

Returns a new instance of Batch.



6
7
8
9
10
11
# File 'lib/logstash/outputs/loki/batch.rb', line 6

def initialize(e)
    @bytes = 0
    @createdAt = Time.now
    @streams = {}
    add(e)
end