Skip to main content

HealthStatus

Point-in-time snapshot of gateway health and its broker connection.

environmentstringrequired

Deployment environment: development, staging or production.

Example: production
nats_connectedbooleanrequired

Whether the gateway currently holds a NATS JetStream connection. When false, accepted events are buffered rather than published.

servicestringrequired

Service identifier, useful when several Nerve components sit behind one load balancer.

Example: nerve-gateway
statusstringrequired

OK while the process is accepting work, DRAINING once a termination signal has been received and the in-flight drain has begun.

Example: OK
uptime_secondsinteger<int64>required

Seconds since this process finished booting.

Possible values: >= 0

Example: 86400
versionstringrequired

Semantic version of the running binary, taken from Cargo.toml.

Example: 0.1.0
HealthStatus
{
"environment": "production",
"nats_connected": true,
"service": "nerve-gateway",
"status": "OK",
"uptime_seconds": 86400,
"version": "0.1.0"
}