Class: Observability::Collector

Inherits:
Object
  • Object
show all
Extended by:
Configurability, Loggability, Pluggability
Defined in:
lib/observability/collector.rb

Direct Known Subclasses

RabbitMQ, Timescale

Defined Under Namespace

Classes: RabbitMQ, Timescale

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.configured_typeObject

Create an instance of the configured type of collector and return it.



43
44
45
# File 'lib/observability/collector.rb', line 43

def self::configured_type
  return self.create( self.type )
end

.inherited(subclass) ⇒ Object

Let subclasses be inherited



36
37
38
39
# File 'lib/observability/collector.rb', line 36

def self::inherited( subclass )
  super
  subclass.public_class_method( :new )
end

.startObject

Start a collector of the specified type, returning only when it shuts down.



49
50
51
52
# File 'lib/observability/collector.rb', line 49

def self::start
  instance = self.configured_type
  instance.start
end

Instance Method Details

#startObject

Start the collector.



56
57
58
# File 'lib/observability/collector.rb', line 56

def start
  # No-op
end