deploymentEvents
Subscribe to lifecycle events for a single deployment via WebSocket.
Receives a DeploymentEvent when the deployment is created or transitions
status (e.g., PENDING โ RUNNING โ COMPLETED). For log deltas use
deploymentLogs instead โ this subscription does not fire on log appends.
Re-select whatever fields you need on deployment โ Apollo will merge the
payload into its cache by Deployment:id.
Requires project:view on the project that holds the deployment's instance.
If you cannot view that project, for example after the instance moves or you
lose access, events arrive as null.
subscription {
deploymentEvents(organizationId: "my-org", deploymentId: "a1b2c3...") {
... on Event { action timestamp }
... on DeploymentEvent {
deployment {
id
status
elapsedTime
}
}
}
}
deploymentEvents(
organizationId: ID!
deploymentId: ID!
): DeploymentEventsPayload
Argumentsโ
deploymentEvents.organizationIdย โย ID! non-null scalar {#organization-id}โ
Your organization's unique identifier.
deploymentEvents.deploymentIdย โย ID! non-null scalar {#deployment-id}โ
The deployment's unique identifier.
Typeโ
DeploymentEventsPayload unionโ
Events delivered by the deploymentEvents subscription.
A single-deployment feed. Fires on creation, every status transition, and
every change to the deployment's stash entries.
For log content, subscribe to deploymentLogs โ log deltas don't travel on
this feed.