summaryrefslogtreecommitdiff
path: root/lib/gitlab/health_checks/probes/status.rb
blob: 192e93660010bc9be5f54c5335536a333681d4d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module Gitlab
  module HealthChecks
    module Probes
      Status = Struct.new(:http_status, :json) do
        # We accept 2xx
        def success?
          http_status / 100 == 2
        end
      end
    end
  end
end