Class: Stackify::LogsSender
- Inherits:
-
HttpClient
- Object
- HttpClient
- Stackify::LogsSender
- Defined in:
- lib/stackify/logs_sender.rb
Constant Summary collapse
- LOGS_URI =
URI("#{Stackify.configuration.base_api_url}/Log/Save")
Constants inherited from HttpClient
Instance Attribute Summary
Attributes inherited from HttpClient
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 |