Method: NewRelic::Agent::Commands::AgentCommandRouter#get_agent_commands

Defined in:
lib/new_relic/agent/commands/agent_command_router.rb

#get_agent_commandsObject



88
89
90
91
92
# File 'lib/new_relic/agent/commands/agent_command_router.rb', line 88

def get_agent_commands
  commands = new_relic_service.get_agent_commands
  NewRelic::Agent.logger.debug("Received get_agent_commands = #{commands.inspect}")
  commands.map { |collector_command| AgentCommand.new(collector_command) }
end