Class: NewRelic::Plugin::Setup

Inherits:
Object
  • Object
show all
Defined in:
lib/newrelic_plugin/setup.rb

Overview

Setup and Register new agent types and new processors

Class Method Summary collapse

Class Method Details

.install_agent(ident, klass) ⇒ Object



11
12
13
14
15
16
17
18
# File 'lib/newrelic_plugin/setup.rb', line 11

def install_agent ident, klass
  @installed_agents ||= {}
  @installed_agents[ident] = {
      :agent_class => klass::Agent,
      :label => klass::Agent.label,
      :ident => ident
  }
end

.installed_agentsObject



20
21
22
# File 'lib/newrelic_plugin/setup.rb', line 20

def installed_agents
  @installed_agents || {}
end