Sha256: 4db59655d6a544a1403b9f795459db3c5e81d88687a56d36738f93dbbbc46136
Contents?: true
Size: 992 Bytes
Versions: 4
Compression:
Stored size: 992 Bytes
Contents
# frozen_string_literal: true module RailsServerMonitor class Configuration attr_writer :update_server_interval, :snapshot_server_interval, :ignore_urls, :cleanup_snapshots_after, :ignore_workers, :high_cpu_usage_threshold, :low_memory_threshold, :low_free_disk_disk_threshold, :hostname def update_server_interval @update_server_interval || 1.hour end def snapshot_server_interval @snapshot_server_interval || 15.minutes end def cleanup_snapshots_after @cleanup_snapshots_after || 90.days end def ignore_urls @ignore_urls || [] end def ignore_workers @ignore_workers || [] end def high_cpu_usage_threshold @high_cpu_usage_threshold || 95 end def low_memory_threshold @low_memory_threshold || 20 end def low_free_disk_disk_threshold @low_free_disk_disk_threshold || 30 end def hostname -> { `hostname` } end end end
Version data entries
4 entries across 4 versions & 1 rubygems