Overview

Check server instance health and primary-instance status.

Client

No require permission rules.

HTTP

GET /healthcheck

Response Body

200 Ok

CodeTypeRequiredDescription
errorstringError message returned when the health check cannot be completed.
dataHealthCheckDataResponseHealth information for the current server instance and peer instances. See HealthCheckDataResponse
HealthCheckDataResponse
CodeTypeRequiredDescription
thisInstanceInstanceResponsetrueHealth details for the server instance that handled this request. See InstanceResponse
otherInstancesOtherInstanceResponse[]trueHealth details for the other known server instances. See OtherInstanceResponse
InstanceResponse
CodeTypeRequiredDescription
instanceIdstringtrueUnique identifier of the server instance.
isPrimarybooleantrueWhether this instance is currently the primary instance.
currentInstanceIdPrimarystringtrueInstance id currently recognized as primary.
currentTsPrimarynumbertrueCurrent primary timestamp in milliseconds.
currentTsPrimaryToDatestringtrueCurrent primary timestamp formatted as a date string.
tsPrimarynumbertrueLast known primary timestamp in milliseconds.
tsPrimaryToDatestringtrueLast known primary timestamp formatted as a date string.
OtherInstanceResponse
CodeTypeRequiredDescription
instanceIdstringtrueUnique identifier of the server instance.
isPrimarybooleantrueWhether this instance is currently the primary instance.
currentInstanceIdPrimarystringtrueInstance id currently recognized as primary.
currentTsPrimarynumbertrueCurrent primary timestamp in milliseconds.
currentTsPrimaryToDatestringtrueCurrent primary timestamp formatted as a date string.
tsPrimarynumbertrueLast known primary timestamp in milliseconds.
tsPrimaryToDatestringtrueLast known primary timestamp formatted as a date string.
lostPingnumbertrueNumber of missed ping checks for this instance.