debian-mirror-gitlab/lib/gitlab/health_checks/result.rb
2019-12-21 20:55:43 +05:30

15 lines
302 B
Ruby

# frozen_string_literal: true
module Gitlab
module HealthChecks
Result = Struct.new(:name, :success, :message, :labels) do
def payload
{
status: success ? 'ok' : 'failed',
message: message,
labels: labels
}.compact
end
end
end
end