public static Result healthcheck() {
    if (_healthCheckRegistry != null) {
      return ok(Json.toJson(_healthCheckRegistry.runHealthChecks()));
    } else {
      return ok(Json.toJson(HEALTHCHECK_NOT_ENABLED));
    }
  }
The endpoint /healthcheck
Endpoint can be queried if metrics is enabled.

@return Will return all the healthcheck metrics in Json format.
app/controllers/MetricsController.java