Class: NewRelic::Agent::Sampler
- Defined in:
- lib/new_relic/agent/sampler.rb
Direct Known Subclasses
NewRelic::Agent::Samplers::CpuSampler, NewRelic::Agent::Samplers::MemorySampler, NewRelic::Agent::Samplers::MongrelSampler
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#stats_engine ⇒ Object
Returns the value of attribute stats_engine.
Instance Method Summary collapse
-
#initialize(id) ⇒ Sampler
constructor
A new instance of Sampler.
- #poll ⇒ Object
Constructor Details
#initialize(id) ⇒ Sampler
Returns a new instance of Sampler.
4 5 6 |
# File 'lib/new_relic/agent/sampler.rb', line 4 def initialize(id) @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/new_relic/agent/sampler.rb', line 3 def id @id end |
#stats_engine ⇒ Object
Returns the value of attribute stats_engine.
2 3 4 |
# File 'lib/new_relic/agent/sampler.rb', line 2 def stats_engine @stats_engine end |
Instance Method Details
#poll ⇒ Object
8 9 10 |
# File 'lib/new_relic/agent/sampler.rb', line 8 def poll raise "Implement in the subclass" end |