Created
February 23, 2021 15:00
-
-
Save dalexandrov/ca34b4f49e6fa194a078e64d68eff3fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Neo4j neo4j = Neo4j.create(config.get("neo4j")); | |
Neo4jHealthCheck healthCheck = Neo4jHealthCheck.create(neo4j.driver()); | |
Driver neo4jDriver = neo4j.driver(); | |
HealthSupport health = HealthSupport.builder() | |
.addLiveness(HealthChecks.healthChecks()) // Adds a convenient set of checks | |
.addReadiness(healthCheck) | |
.build(); | |
return Routing.builder() | |
.register(health) // Health at "/health" | |
//other services | |
.build(); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment