Method: Loki::Batch#to_json
- Defined in:
- lib/logstash/outputs/loki/batch.rb
#to_json ⇒ Object
44 45 46 47 48 49 50 |
# File 'lib/logstash/outputs/loki/batch.rb', line 44 def to_json streams = [] @streams.each { |_ , stream| streams.append(build_stream(stream)) } return {"streams"=>streams}.to_json end |