ContainerStateEvent
A container's state or health changed — sent when the Engine reports it (a start, die, pause, unpause or health check result, including a container killed from outside Hoserva) and when a start, stop, restart or recreate through the API finishes. state is the Engine's own vocabulary. health is present only when the event carries a health check result (or the container's health after an API action); a start, stop or die resets the check and the Engine's event omits it.
container_statedata objectrequired
The Docker Engine's own container state vocabulary.
Possible values: [created, running, paused, restarting, removing, exited, dead]
The container's HEALTHCHECK result, in the Engine's own vocabulary; none when the container defines no health check.
Possible values: [none, starting, healthy, unhealthy]
{
"event": "container_state",
"data": {
"containerId": "string",
"name": "string",
"state": "created",
"health": "none",
"at": "2024-07-29T15:51:28.071Z"
}
}