Class: Splunk::Message

Inherits:
Entity show all
Defined in:
lib/splunk-sdk-ruby/entity/message.rb

Overview

Class to represent system wide messages.

Message differs from Entity only in having a method value to fetch the detail of the message.

Instance Attribute Summary

Attributes inherited from ReadOnlyEntity

#name, #namespace, #resource, #service

Instance Method Summary collapse

Methods inherited from Entity

#[]=, #delete, #disable, #enable, #update

Methods inherited from ReadOnlyEntity

#[], #fetch, #initialize, #links, #read, #readmeta, #refresh

Constructor Details

This class inherits a constructor from Splunk::ReadOnlyEntity

Instance Method Details

#valueObject

Returns the message’s details.

Returns: a String.



32
33
34
# File 'lib/splunk-sdk-ruby/entity/message.rb', line 32

def value
  fetch(@name)
end