636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
|
# File 'lib/fluent/plugin/out_google_cloud.rb', line 636
def start
super
init_api_client
@successful_call = false
@timenanos_warning = false
if @statusz_port > 0
@log.info "Starting statusz server on port #{@statusz_port}"
server_create(:out_google_cloud_statusz,
@statusz_port,
bind: '127.0.0.1') do |data, conn|
if data.split(' ')[1] == '/statusz'
write_html_response(data, conn, 200, Statusz.response(self))
else
write_html_response(data, conn, 404, "Not found\n")
end
end
end
end
|