Class: Splunk::Event
- Inherits:
-
Hash
- Object
- Hash
- Splunk::Event
- 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
-
#raw_xml ⇒ Object
writeonly
Sets the attribute raw_xml.
Instance Method Summary collapse
Instance Attribute Details
#raw_xml=(value) ⇒ Object (writeonly)
Sets the attribute raw_xml
243 244 245 |
# File 'lib/splunk-sdk-ruby/resultsreader.rb', line 243 def raw_xml=(value) @raw_xml = value end |
Instance Method Details
#segmented_raw ⇒ Object
245 246 247 |
# File 'lib/splunk-sdk-ruby/resultsreader.rb', line 245 def segmented_raw @raw_xml end |