Class: NginxSystemWorker
- Inherits:
-
Object
- Object
- NginxSystemWorker
- Includes:
- Sidekiq::Worker
- Defined in:
- lib/hot_catch/nginx_system_worker.rb
Overview
Отвечает за сбор и отправку логов Nginx и системы
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/hot_catch/nginx_system_worker.rb', line 6 def perform logs = get_system_metrics() sender = HotCatch::MakeHttpsRequest.new sender.system_g_log(logs) nginx_logs = ReceiveNginxLogs.new logs = nginx_logs.get_last_logs sender = HotCatch::MakeHttpsRequest.new sender.nginx_g_log(logs) end |