Sha256: 25c99794791e813813920e31973f6bda0c8dd29bc4b63e8a2c8e2cfafa787e7d
Contents?: true
Size: 1.78 KB
Versions: 6
Compression:
Stored size: 1.78 KB
Contents
require "pghero/version" require "active_record" require "pghero/database" require "pghero/engine" if defined?(Rails) # models require "pghero/connection" require "pghero/query_stats" # methods require "pghero/methods/basic" require "pghero/methods/connections" require "pghero/methods/databases" require "pghero/methods/explain" require "pghero/methods/indexes" require "pghero/methods/kill" require "pghero/methods/maintenance" require "pghero/methods/queries" require "pghero/methods/query_stats" require "pghero/methods/replica" require "pghero/methods/sequences" require "pghero/methods/space" require "pghero/methods/suggested_indexes" require "pghero/methods/system" require "pghero/methods/tables" require "pghero/methods/users" module PgHero # settings class << self attr_accessor :long_running_query_sec, :slow_query_ms, :slow_query_calls, :total_connections_threshold, :cache_hit_rate_threshold, :env, :show_migrations end self.long_running_query_sec = (ENV["PGHERO_LONG_RUNNING_QUERY_SEC"] || 60).to_i self.slow_query_ms = (ENV["PGHERO_SLOW_QUERY_MS"] || 20).to_i self.slow_query_calls = (ENV["PGHERO_SLOW_QUERY_CALLS"] || 100).to_i self.total_connections_threshold = (ENV["PGHERO_TOTAL_CONNECTIONS_THRESHOLD"] || 100).to_i self.cache_hit_rate_threshold = 99 self.env = ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development" self.show_migrations = true extend Methods::Basic extend Methods::Connections extend Methods::Databases extend Methods::Explain extend Methods::Indexes extend Methods::Kill extend Methods::Maintenance extend Methods::Queries extend Methods::QueryStats extend Methods::Replica extend Methods::Sequences extend Methods::Space extend Methods::SuggestedIndexes extend Methods::System extend Methods::Tables extend Methods::Users end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
pghero-1.4.2 | lib/pghero.rb |
pghero-1.4.1 | lib/pghero.rb |
pghero-1.4.0 | lib/pghero.rb |
pghero-1.3.2 | lib/pghero.rb |
pghero-1.3.1 | lib/pghero.rb |
pghero-1.3.0 | lib/pghero.rb |