Class: Cloudscale::Monitor::Registry

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/cloudscale/registry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRegistry

Returns a new instance of Registry.



18
19
20
21
22
23
# File 'lib/cloudscale/registry.rb', line 18

def initialize()
  @metrics = Hash.new
  @generated_instance_id = SecureRandom.hex
  @stored_agent_instance = Constants::AgentInstance.load
  @stored_agent = Constants::Agent.load
end

Instance Attribute Details

#agent_instance_idObject

Returns the value of attribute agent_instance_id.



15
16
17
# File 'lib/cloudscale/registry.rb', line 15

def agent_instance_id
  @agent_instance_id
end

#generated_instance_idObject

Returns the value of attribute generated_instance_id.



15
16
17
# File 'lib/cloudscale/registry.rb', line 15

def generated_instance_id
  @generated_instance_id
end

#metricsObject

Returns the value of attribute metrics.



15
16
17
# File 'lib/cloudscale/registry.rb', line 15

def metrics
  @metrics
end

#stored_agentObject

Returns the value of attribute stored_agent.



15
16
17
# File 'lib/cloudscale/registry.rb', line 15

def stored_agent
  @stored_agent
end

#stored_agent_instanceObject

Returns the value of attribute stored_agent_instance.



15
16
17
# File 'lib/cloudscale/registry.rb', line 15

def stored_agent_instance
  @stored_agent_instance
end