Class: Collective::Collector
- Inherits:
-
Object
- Object
- Collective::Collector
- Extended by:
- DSL
- Defined in:
- lib/collective/collector.rb,
lib/collective/collector/dsl.rb
Direct Known Subclasses
Collective::Collectors::Honeybadger, Collective::Collectors::Memcached, Collective::Collectors::Mongodb, Collective::Collectors::Newrelic, Collective::Collectors::PGBouncer, Collective::Collectors::Postgres, Collective::Collectors::RabbitMQ, Collective::Collectors::Redis, Collective::Collectors::Sidekiq, Collective::Collectors::TrackJS
Defined Under Namespace
Modules: DSL
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #collect! ⇒ Object
- #group(*args, &block) ⇒ Object
-
#initialize(options = {}) ⇒ Collector
constructor
A new instance of Collector.
- #instrument(*args, &block) ⇒ Object
Methods included from DSL
Constructor Details
#initialize(options = {}) ⇒ Collector
Returns a new instance of Collector.
8 9 10 |
# File 'lib/collective/collector.rb', line 8 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/collective/collector.rb', line 6 def @options end |
Instance Method Details
#collect! ⇒ Object
12 13 14 |
# File 'lib/collective/collector.rb', line 12 def collect! collect end |
#group(*args, &block) ⇒ Object
20 21 22 |
# File 'lib/collective/collector.rb', line 20 def group(*args, &block) Metrics.group(*args, &block) end |
#instrument(*args, &block) ⇒ Object
16 17 18 |
# File 'lib/collective/collector.rb', line 16 def instrument(*args, &block) Metrics.instrument(*args, &block) end |