Module: NewRelic::Plugin

Defined in:
lib/newrelic_plugin/error.rb,
lib/newrelic_plugin/run.rb,
lib/newrelic_plugin/agent.rb,
lib/newrelic_plugin/setup.rb,
lib/newrelic_plugin/config.rb,
lib/newrelic_plugin/version.rb,
lib/newrelic_plugin/processor.rb,
lib/newrelic_plugin/simple_syntax.rb

Overview

Standard Errors

Author

Lee Atchison [email protected]

Copyright

Copyright (c) 2012 New Relic, Inc.

Defined Under Namespace

Modules: Agent, Processor, SimpleSyntax Classes: AgentError, AgentSetup, BadConfig, Config, CouldNotInitializeAgent, CouldNotInitializeProcessor, InvalidMetricValueType, NewRelicCommError, NoAgents, NoDataReturned, NoMetrics, NoResultReturned, Run, Setup, UnknownInstalledAgent, UnknownInstalledProcessor

Constant Summary collapse

VERSION =
"1.3.1"

Class Method Summary collapse

Class Method Details

.agent_configObject



41
42
# File 'lib/newrelic_plugin/simple_syntax.rb', line 41

def self.agent_config
end

.poll_cycle(&block) ⇒ Object



44
45
46
# File 'lib/newrelic_plugin/simple_syntax.rb', line 44

def self.poll_cycle &block
  SimpleSyntax::Agent.poll_cycle_proc = block
end

.runObject



48
49
50
51
# File 'lib/newrelic_plugin/simple_syntax.rb', line 48

def self.run
  NewRelic::Plugin::Setup.install_agent :simple_syntax,NewRelic::Plugin::SimpleSyntax
  NewRelic::Plugin::Run.setup_and_run
end

.setup {|SimpleSyntax::Agent| ... } ⇒ Object



37
38
39
# File 'lib/newrelic_plugin/simple_syntax.rb', line 37

def self.setup
  yield SimpleSyntax::Agent
end