Class: Nagios::Promoo::Opennebula::Probes::BaseProbe
- Inherits:
-
Object
- Object
- Nagios::Promoo::Opennebula::Probes::BaseProbe
- Defined in:
- lib/nagios/promoo/opennebula/probes/base_probe.rb
Overview
Base probe for all ONe-related probes.
Direct Known Subclasses
HostErrorProbe, VirtualMachineFailsProbe, VirtualMachineProbe, XmlrpcHealthProbe
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
- #client ⇒ Object
-
#initialize(options) ⇒ BaseProbe
constructor
A new instance of BaseProbe.
Constructor Details
#initialize(options) ⇒ BaseProbe
Returns a new instance of BaseProbe.
17 18 19 |
# File 'lib/nagios/promoo/opennebula/probes/base_probe.rb', line 17 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
15 16 17 |
# File 'lib/nagios/promoo/opennebula/probes/base_probe.rb', line 15 def @options end |
Class Method Details
.runnable? ⇒ Boolean
10 11 12 |
# File 'lib/nagios/promoo/opennebula/probes/base_probe.rb', line 10 def runnable? false end |
Instance Method Details
#client ⇒ Object
21 22 23 24 25 26 |
# File 'lib/nagios/promoo/opennebula/probes/base_probe.rb', line 21 def client return @_client if @_client token = token_file? ? read_token : [:token] @_client = OpenNebula::Client.new(token.to_s, [:endpoint]) end |