Sha256: 4171cb163875cd9201eaf889438971cc9f3f7baae34b09c39846186a8c906016

Contents?: true

Size: 897 Bytes

Versions: 11

Compression:

Stored size: 897 Bytes

Contents

module Rapporteur
  module Checks
    autoload :ActiveRecordCheck, 'rapporteur/checks/active_record_check'

    # A check which simply reports the current clock time in UTC. This check is
    # useful because it shows that the status end point is not being cached and
    # allows you to determine if your server clocks are abnormally skewed.
    #
    # This check has no failure cases.
    #
    # Examples
    #
    #   {
    #     time: "2013-06-21T05:18:59Z"
    #   }
    #
    TimeCheck = lambda { |checker| checker.add_message(:time, Time.now.utc) }

    # A check which reports the current revision of the running application.
    #
    # This check has no failure cases.
    #
    # Examples
    #
    #   {
    #     revision: "c74edd04f64b25ff6691308bcfdefcee149aa4b5"
    #   }
    #
    RevisionCheck = lambda { |checker| checker.add_message(:revision, Revision.current) }
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rapporteur-3.6.0 lib/rapporteur/checks.rb
rapporteur-3.5.1 lib/rapporteur/checks.rb
rapporteur-3.5.0 lib/rapporteur/checks.rb
rapporteur-3.4.0 lib/rapporteur/checks.rb
rapporteur-3.3.0 lib/rapporteur/checks.rb
rapporteur-3.2.0 lib/rapporteur/checks.rb
rapporteur-3.1.0 lib/rapporteur/checks.rb
rapporteur-3.0.2 lib/rapporteur/checks.rb
rapporteur-3.0.1 lib/rapporteur/checks.rb
rapporteur-3.0.0 lib/rapporteur/checks.rb
rapporteur-2.1.0 lib/rapporteur/checks.rb