Class: RailsServerMonitor::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_server_monitor/configuration.rb

Instance Attribute Summary collapse

Instance Attribute Details

#cleanup_snapshots_afterObject



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_thresholdObject



29
30
31
# File 'lib/rails_server_monitor/configuration.rb', line 29

def high_cpu_usage_threshold
  @high_cpu_usage_threshold || 95
end

#hostnameObject



41
42
43
# File 'lib/rails_server_monitor/configuration.rb', line 41

def hostname
  -> { `hostname` }
end

#ignore_urlsObject



21
22
23
# File 'lib/rails_server_monitor/configuration.rb', line 21

def ignore_urls
  @ignore_urls || []
end

#ignore_workersObject



25
26
27
# File 'lib/rails_server_monitor/configuration.rb', line 25

def ignore_workers
  @ignore_workers || []
end

#low_free_disk_disk_thresholdObject



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_thresholdObject



33
34
35
# File 'lib/rails_server_monitor/configuration.rb', line 33

def low_memory_threshold
  @low_memory_threshold || 20
end

#snapshot_server_intervalObject



13
14
15
# File 'lib/rails_server_monitor/configuration.rb', line 13

def snapshot_server_interval
  @snapshot_server_interval || 15.minutes
end

#update_server_intervalObject



9
10
11
# File 'lib/rails_server_monitor/configuration.rb', line 9

def update_server_interval
  @update_server_interval || 1.hour
end