Class: NewRelic::Agent::Sampler

Inherits:
Object
  • Object
show all
Defined in:
lib/new_relic/agent/sampler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/new_relic/agent/sampler.rb', line 3

def id
  @id
end

#stats_engineObject

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

#pollObject



8
9
10
# File 'lib/new_relic/agent/sampler.rb', line 8

def poll
  raise "Implement in the subclass"
end