2021-10-26 14:09:19 -04:00
|
|
|
# rubocop:disable Naming/FileName
|
2018-11-09 13:39:43 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-10-03 17:07:29 -04:00
|
|
|
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
|
2017-04-07 06:27:15 -04:00
|
|
|
end
|
2021-10-26 14:09:19 -04:00
|
|
|
|
|
|
|
# rubocop:enable Naming/FileName
|