InstanceEventsPayload
Events delivered by the instanceEvents subscription.
Covers the instance itself, incoming connections that terminate on it, alarms attached to it, deployments run against it, and the stash entries of the instance and its deployments.
union InstanceEventsPayload = InstanceEvent | ConnectionEvent | AlarmEvent | DeploymentEvent | AlphaStashEntryEvent
Possible types​
InstanceEventsPayload.InstanceEvent object​
A lifecycle event for an instance.
Emitted when an instance is created, updated (configuration changed, deployment triggered),
or deleted. Subscribe via instanceEvents or projectEvents.
InstanceEventsPayload.ConnectionEvent object​
A lifecycle event for a realized connection between two instances in an environment.
A connection is the runtime materialization of a blueprint link — it wires one
instance's output artifact into another instance's input field within a single
environment. Emitted when a connection is established or torn down. Subscribe via
environmentEvents for every connection in an environment, or via instanceEvents
for connections that terminate on a specific instance.
InstanceEventsPayload.AlarmEvent object​
A lifecycle event for a cloud metric alarm attached to an instance.
Emitted when an alarm is registered, reconfigured, removed, or when its
firing state changes (e.g., OK → ALARM). State transitions surface as
UPDATED — read the latest status from alarm.currentState. Subscribe via
environmentEvents or instanceEvents.
InstanceEventsPayload.DeploymentEvent object​
A lifecycle event for a deployment.
Emitted when a deployment is created (CREATED) and each time its status
transitions (UPDATED) — e.g., PENDING → RUNNING → COMPLETED. Log
deltas are not carried on this event; subscribe to deploymentLogs for
streaming log content.
Subscribe via deploymentEvents for a single deployment's feed, or via
instanceEvents / environmentEvents to see every deployment in an
instance or environment.
On UPDATED, re-select whichever fields you need (typically status and
elapsedTime) — Apollo will merge the payload into its cache by Deployment:id.
InstanceEventsPayload.AlphaStashEntryEvent object​
Alpha: this API can change or be removed at any time, without notice.
A stash entry was set or deleted, sent to projectEvents, environmentEvents, instanceEvents, and
deploymentEvents by the entity that holds the entry. The action is UPDATED when the entry is set and
DELETED when it is deleted. An entry that expires sends no event.
| Stash | Subscriptions |
|---|---|
| Project | projectEvents |
| Environment | projectEvents, environmentEvents |
| Component | projectEvents |
| Instance | environmentEvents, instanceEvents |
| Deployment | environmentEvents, instanceEvents, deploymentEvents |
Returned By​
instanceEvents subscription