Module: Rapporteur::Checks

Defined in:
lib/rapporteur/checks.rb,
lib/rapporteur/checks/active_record_check.rb

Defined Under Namespace

Classes: ActiveRecordCheck

Constant Summary collapse

TimeCheck =

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"
}
lambda { |checker| checker.add_message(:time, Time.now.utc) }
RevisionCheck =

A check which reports the current revision of the running application.

This check has no failure cases.

Examples

{
  revision: "c74edd04f64b25ff6691308bcfdefcee149aa4b5"
}
lambda { |checker| checker.add_message(:revision, Revision.current) }