Class: Perfm::Agent
- Inherits:
-
Object
- Object
- Perfm::Agent
- Defined in:
- lib/perfm/agent.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#queue ⇒ Object
readonly
Returns the value of attribute queue.
-
#sidekiq_queue ⇒ Object
readonly
Returns the value of attribute sidekiq_queue.
Instance Method Summary collapse
-
#initialize(config, storage) ⇒ Agent
constructor
A new instance of Agent.
- #push_metrics(data) ⇒ Object
- #push_sidekiq_metrics(data) ⇒ Object
Constructor Details
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
3 4 5 |
# File 'lib/perfm/agent.rb', line 3 def config @config end |
#queue ⇒ Object (readonly)
Returns the value of attribute queue.
3 4 5 |
# File 'lib/perfm/agent.rb', line 3 def queue @queue end |
#sidekiq_queue ⇒ Object (readonly)
Returns the value of attribute sidekiq_queue.
3 4 5 |
# File 'lib/perfm/agent.rb', line 3 def sidekiq_queue @sidekiq_queue end |
Instance Method Details
#push_metrics(data) ⇒ Object
11 12 13 |
# File 'lib/perfm/agent.rb', line 11 def push_metrics(data) queue.push_metrics(data) end |
#push_sidekiq_metrics(data) ⇒ Object
15 16 17 |
# File 'lib/perfm/agent.rb', line 15 def push_sidekiq_metrics(data) sidekiq_queue.push_metrics(data) end |