Class: ProconBypassMan::ReportBootJob

Inherits:
ReportEventBaseJob show all
Extended by:
HasExternalApiSetting
Defined in:
lib/procon_bypass_man/background/jobs/report_boot_job.rb

Class Method Summary collapse

Methods included from HasExternalApiSetting

api_server

Methods inherited from ReportEventBaseJob

path

Methods inherited from BaseJob

re_enqueue_if_failed

Methods included from Background::JobPerformable

#perform, #perform_async

Class Method Details

.perform(body) ⇒ Object

Parameters:

  • body (String)


5
6
7
8
9
10
11
# File 'lib/procon_bypass_man/background/jobs/report_boot_job.rb', line 5

def self.perform(body)
  ProconBypassMan::ReportHttpClient.new(
    path: path,
    server: api_server,
    retry_on_connection_error: true,
  ).post(body: body, event_type: :boot)
end