Class: LogEventsJson

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent/dto/logEventsJson.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(metadata, logEvents) ⇒ LogEventsJson



6
7
8
9
10
11
# File 'lib/fluent/dto/logEventsJson.rb', line 6

def initialize(,logEvents)
  if metadata!= nil ||  != 'null'
     = 
  end
  @LogEvents = logEvents
end

Instance Attribute Details

#LogEventsObject

Returns the value of attribute LogEvents.



5
6
7
# File 'lib/fluent/dto/logEventsJson.rb', line 5

def LogEvents
  @LogEvents
end

#metadataObject

Returns the value of attribute metadata.



5
6
7
# File 'lib/fluent/dto/logEventsJson.rb', line 5

def 
  
end

Instance Method Details

#to_hashObject



13
14
15
16
17
18
19
20
# File 'lib/fluent/dto/logEventsJson.rb', line 13

def to_hash
  {
    metadata: ,
    logEvents: @LogEvents.map do |le|
      le.to_hash
    end
  }.compact
end