Class: SolidObserver::Services::StorageInfoSnapshot
- Inherits:
-
Object
- Object
- SolidObserver::Services::StorageInfoSnapshot
- Defined in:
- lib/solid_observer/services/storage_info_snapshot.rb
Defined Under Namespace
Classes: Component
Constant Summary collapse
- COMPONENTS =
[ Component.new( key: "queue_observer", label: "Queue observer", record_label: "observer events", model: -> { SolidObserver::QueueEvent }, enabled: -> { SolidObserver.config.solid_queue_enabled? } ), Component.new( key: "cache_observer", label: "Cache observer", record_label: "observer events", model: -> { SolidObserver::CacheEvent }, enabled: -> { SolidObserver.config.solid_cache_enabled? } ), Component.new( key: "solid_cache", label: "SolidCache", record_label: "cache rows", model: -> { ::SolidCache::Entry }, enabled: -> { SolidObserver.config.solid_cache_enabled? } ) ].freeze
- CONNECTION_ERRORS =
[ ActiveRecord::ConnectionNotEstablished, ActiveRecord::StatementInvalid, *([PG::ConnectionBad] if defined?(PG::ConnectionBad)), *([Mysql2::Error::ConnectionError] if defined?(Mysql2::Error::ConnectionError)), *([SQLite3::CantOpenException] if defined?(SQLite3::CantOpenException)) ].freeze
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.call ⇒ Object
119 120 121 |
# File 'lib/solid_observer/services/storage_info_snapshot.rb', line 119 def self.call new.call end |
Instance Method Details
#call ⇒ Object
123 124 125 |
# File 'lib/solid_observer/services/storage_info_snapshot.rb', line 123 def call COMPONENTS.filter_map(&:snapshot) end |