Class: SolidQueueGuard::Checks::Registry Private
- Inherits:
-
Object
- Object
- SolidQueueGuard::Checks::Registry
- Defined in:
- lib/solid_queue_guard/checks/registry.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- CONFIG_CHECKS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
[ Config::AdapterCheck, Config::QueueDatabaseCheck, Config::ConnectsToCheck, Config::QueueSchemaCheck, Config::ThreadPoolCheck, Config::WorkerCoverageCheck, Config::SchedulerConfigCheck, Config::EnvFlagsCheck, Config::ProcessHeartbeatConfigCheck, Config::PumaColocatedCheck, Config::TopologyRecommendationCheck, Config::AsyncSupervisorConfigCheck ].freeze
- RUNTIME_CHECKS =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
[ Runtime::QueueLagCheck, Runtime::StaleProcessCheck, Runtime::ProcessTopologyCheck, Runtime::DispatcherCheck, Runtime::ScheduledBacklogCheck, Runtime::BlockedJobsCheck, Runtime::OrphanedClaimsCheck, Runtime::FailedJobsCheck, Runtime::RecurringStaleCheck, Runtime::PausedQueueLagCheck, Runtime::PidfileCheck, Runtime::FinishedJobsGrowthCheck, Runtime::PumaPluginRuntimeCheck ].freeze
Class Method Summary collapse
- .check_id_for(check_class) ⇒ Object private
- .for(scope) ⇒ Object private
Class Method Details
.check_id_for(check_class) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
39 40 41 |
# File 'lib/solid_queue_guard/checks/registry.rb', line 39 def check_id_for(check_class) check_class.check_id end |
.for(scope) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
43 44 45 46 47 48 49 50 51 |
# File 'lib/solid_queue_guard/checks/registry.rb', line 43 def for(scope) case scope.to_sym when :config then CONFIG_CHECKS when :runtime then RUNTIME_CHECKS when :all then CONFIG_CHECKS + RUNTIME_CHECKS else raise ArgumentError, "Unknown scope: #{scope}" end end |