Class: RailsServerMonitor::Configuration
- Inherits:
-
Object
- Object
- RailsServerMonitor::Configuration
- Defined in:
- lib/rails_server_monitor/configuration.rb
Instance Attribute Summary collapse
- #cleanup_snapshots_after ⇒ Object
- #high_cpu_usage_threshold ⇒ Object
- #hostname ⇒ Object
- #ignore_urls ⇒ Object
- #ignore_workers ⇒ Object
- #low_free_disk_disk_threshold ⇒ Object
- #low_memory_threshold ⇒ Object
- #snapshot_server_interval ⇒ Object
- #update_server_interval ⇒ Object
Instance Attribute Details
#cleanup_snapshots_after ⇒ Object
17 18 19 |
# File 'lib/rails_server_monitor/configuration.rb', line 17 def cleanup_snapshots_after @cleanup_snapshots_after || 90.days end |
#high_cpu_usage_threshold ⇒ Object
29 30 31 |
# File 'lib/rails_server_monitor/configuration.rb', line 29 def high_cpu_usage_threshold @high_cpu_usage_threshold || 95 end |
#hostname ⇒ Object
41 42 43 |
# File 'lib/rails_server_monitor/configuration.rb', line 41 def hostname -> { `hostname` } end |
#ignore_urls ⇒ Object
21 22 23 |
# File 'lib/rails_server_monitor/configuration.rb', line 21 def ignore_urls @ignore_urls || [] end |
#ignore_workers ⇒ Object
25 26 27 |
# File 'lib/rails_server_monitor/configuration.rb', line 25 def ignore_workers @ignore_workers || [] end |
#low_free_disk_disk_threshold ⇒ Object
37 38 39 |
# File 'lib/rails_server_monitor/configuration.rb', line 37 def low_free_disk_disk_threshold @low_free_disk_disk_threshold || 30 end |
#low_memory_threshold ⇒ Object
33 34 35 |
# File 'lib/rails_server_monitor/configuration.rb', line 33 def low_memory_threshold @low_memory_threshold || 20 end |
#snapshot_server_interval ⇒ Object
13 14 15 |
# File 'lib/rails_server_monitor/configuration.rb', line 13 def snapshot_server_interval @snapshot_server_interval || 15.minutes end |
#update_server_interval ⇒ Object
9 10 11 |
# File 'lib/rails_server_monitor/configuration.rb', line 9 def update_server_interval @update_server_interval || 1.hour end |