2019-02-15 15:39:39 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-12-21 20:55:43 +05:30
|
|
|
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-08-17 22:00:37 +05:30
|
|
|
end
|