EnvironmentEvent
A lifecycle event for an environment.
Emitted when an environment is created, updated (renamed, settings changed), or deleted
within a project. Subscribe via projectEvents for any environment in the project, or
via environmentEvents for a specific environment (updates and deletes only — the
environment must exist to subscribe to it).
type EnvironmentEvent implements Event {
action: EventAction!
timestamp: DateTime!
environment: Environment!
}
Fields
EnvironmentEvent.action ● EventAction! non-null enum {#action}
EnvironmentEvent.timestamp ● DateTime! non-null scalar {#timestamp}
EnvironmentEvent.environment ● Environment! non-null object {#environment}
The environment that was created, updated, or deleted.
Interfaces
Event interface
Base interface implemented by all lifecycle events.
Every event carries an action describing what happened and a timestamp recording
when it occurred. Concrete event types add a field for the affected resource.
Because each subscription returns a union, use an ... on Event fragment to
access the shared fields and concrete fragments for the resource payload:
subscription {
projectEvents(organizationId: "my-org", projectId: "my-project") {
... on Event { action timestamp }
... on ComponentEvent {
component { id name }
}
... on LinkEvent {
link { id fromField toField }
}
}
}
Implemented By
EnvironmentEventsPayload union ● ProjectEventsPayload union