Class: Cloudscale::Monitor::GeneralPreop

Inherits:
Preops::Preop show all
Includes:
Singleton
Defined in:
lib/cloudscale/monitor/agent/preops/general_preop.rb

Constant Summary collapse

@@options =
{
  :token => {
    :argument => "--token",
    :description => "The Token, which is automatically generated in your Account for Monitoring",
    :required => true,
    :value => nil
  },
  :host => {
    :argument => "--host",
    :description => "The host endpoint for the agent registration",
    :required => false,
    :value => nil
  },
  :port => {
    :argument => "--port",
    :description => "The port of the endpoint for the agent registration",
    :required => false,
    :value => nil
  }
}

Instance Attribute Summary

Attributes inherited from Preops::Preop

#log, #registry

Instance Method Summary collapse

Methods inherited from Preops::Preop

#clear_options, #get_option, #get_option_value, #init, #init_charts, #init_menus, #init_options, #save_options, #set_option_value

Constructor Details

#initializeGeneralPreop

Returns a new instance of GeneralPreop.



40
41
42
# File 'lib/cloudscale/monitor/agent/preops/general_preop.rb', line 40

def initialize
  self.init
end

Instance Method Details

#optionsObject



36
37
38
# File 'lib/cloudscale/monitor/agent/preops/general_preop.rb', line 36

def options
  @@options
end