class LogEvents

Copyright © 2021, 2022 Oracle and/or its affiliates. The Universal Permissive License (UPL), Version 1.0 as shown at oss.oracle.com/licenses/upl/

Attributes

entityId[RW]
entityType[RW]
logPath[RW]
logRecords[RW]
logSourceName[RW]
metadata[RW]

Public Class Methods

new(lrpe_key, fluentd_records) click to toggle source
# File lib/fluent/dto/logEvents.rb, line 6
def initialize(lrpe_key, fluentd_records)
  @metadata, @entityId, @entityType, @logSourceName, @logPath = lrpe_key
  @logRecords = fluentd_records.map{ |record|
      record['message']
  }
end

Public Instance Methods

to_hash() click to toggle source
# File lib/fluent/dto/logEvents.rb, line 13
def to_hash
  {
    metadata: @metadata,
    entityId: @entityId,
    entityType: @entityType,
    logSourceName: @logSourceName,
    logPath: @logPath,
    logRecords: @logRecords
  }.compact
end