Class: Stackify::LogsSender

Inherits:
HttpClient show all
Defined in:
lib/stackify/logs_sender.rb

Constant Summary collapse

LOGS_URI =
URI("#{Stackify.configuration.base_api_url}/Log/Save")

Constants inherited from HttpClient

HttpClient::HEADERS

Instance Attribute Summary

Attributes inherited from HttpClient

#errors, #response

Instance Method Summary collapse

Instance Method Details

#send_logs(msgs, attempts = 3) ⇒ Object



6
7
8
9
10
# File 'lib/stackify/logs_sender.rb', line 6

def send_logs msgs, attempts = 3
  worker = Stackify::LogsSenderWorker.new
  task = send_logs_task attempts, msgs
  worker.async_perform ScheduleDelay.new, task
end