Class: Splunk::Event

Inherits:
Hash
  • Object
show all
Defined in:
lib/splunk-sdk-ruby/resultsreader.rb

Overview

Event represents a single event returned from a ResultsReader.

Event is a subclass of Hash, adding a single method segmented_raw() which returns a string containing the XML of the raw event, as opposed to the unescaped, raw strings returned by fetching a particular field via [].

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#raw_xml=(value) ⇒ Object (writeonly)

Sets the attribute raw_xml

Parameters:

  • value

    the value to set the attribute raw_xml to.



243
244
245
# File 'lib/splunk-sdk-ruby/resultsreader.rb', line 243

def raw_xml=(value)
  @raw_xml = value
end

Instance Method Details

#segmented_rawObject



245
246
247
# File 'lib/splunk-sdk-ruby/resultsreader.rb', line 245

def segmented_raw
  @raw_xml
end