Class: Async::App::Metrics::ComponentsMetricsCollector
- Inherits:
-
Object
- Object
- Async::App::Metrics::ComponentsMetricsCollector
- Includes:
- AutoloadComponent, TimerComponent
- Defined in:
- lib/async/app/metrics/components_metrics_collector.rb
Instance Method Summary collapse
Methods included from AutoloadComponent
Methods included from TimerComponent
Instance Method Details
#interval ⇒ Object
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_tick ⇒ Object
7 |
# File 'lib/async/app/metrics/components_metrics_collector.rb', line 7 def on_tick = bus.publish("metrics.updated", metrics) |
#run_on_start ⇒ Object
9 |
# File 'lib/async/app/metrics/components_metrics_collector.rb', line 9 def run_on_start = true |