Readiness probe
GET
/health/ready
const url = 'https://localhost:10001/health/ready';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://localhost:10001/health/readyReports whether the service can serve traffic by pinging the database, used by orchestrators to gate traffic
Responses
Section titled “ Responses ”Service is ready
Media type application/json
object
database
string
service
string
status
string
timestamp
string
version
string
Example
{ "database": "ok", "service": "governance-service", "status": "ready", "version": "1.0.0"}Service is not ready
Media type application/json
object
database
string
service
string
status
string
timestamp
string
version
string
Example
{ "database": "ok", "service": "governance-service", "status": "ready", "version": "1.0.0"}