18 lines
370 B
Ruby
18 lines
370 B
Ruby
# rubocop:disable Naming/FileName
|
|
# 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
|
|
|
|
# rubocop:enable Naming/FileName
|