Class: Async::App::Metrics::ComponentsMetricsCollector

Inherits:
Object
  • Object
show all
Includes:
AutoloadComponent, TimerComponent
Defined in:
lib/async/app/metrics/components_metrics_collector.rb

Instance Method Summary collapse

Methods included from AutoloadComponent

included

Methods included from TimerComponent

included

Instance Method Details

#intervalObject



8
# File 'lib/async/app/metrics/components_metrics_collector.rb', line 8

def interval = 5

#on_error(exception) ⇒ Object



10
# File 'lib/async/app/metrics/components_metrics_collector.rb', line 10

def on_error(exception) = warn { exception }

#on_tickObject



7
# File 'lib/async/app/metrics/components_metrics_collector.rb', line 7

def on_tick = bus.publish("metrics.updated", metrics)

#run_on_startObject



9
# File 'lib/async/app/metrics/components_metrics_collector.rb', line 9

def run_on_start = true