diff --git a/.prout.json b/.prout.json new file mode 100644 index 000000000..430b04bcb --- /dev/null +++ b/.prout.json @@ -0,0 +1,6 @@ +{ + "checkpoints": { + "Checker": { "url": "https://checker.typerighter.gutools.co.uk/healthcheck", "overdue": "15M" }, + "Rule Manager": { "url": "https://manager.typerighter.gutools.co.uk/healthcheck", "overdue": "15M" } + } +} \ No newline at end of file diff --git a/apps/rule-manager/app/controllers/HomeController.scala b/apps/rule-manager/app/controllers/HomeController.scala index 9808856ff..9f4902ed3 100644 --- a/apps/rule-manager/app/controllers/HomeController.scala +++ b/apps/rule-manager/app/controllers/HomeController.scala @@ -7,6 +7,7 @@ import db.DB import utils.PermissionsHandler import com.gu.permissions.PermissionDefinition import com.gu.typerighter.controllers.PandaAuthController +import typerighter.BuildInfo import utils.RuleManagerConfig class HomeController( @@ -33,7 +34,7 @@ class HomeController( def healthcheck() = Action { try { db.connectionHealthy() - Ok(Json.obj("healthy" -> true)) + Ok(Json.obj("healthy" -> true, "gitCommitId" -> BuildInfo.gitCommitId)) } catch { case e: Throwable => log.error("Healthcheck failed", e)