Skip to main content

AlphaStashEntryEvent

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.

StashSubscriptions
ProjectprojectEvents
EnvironmentprojectEvents, environmentEvents
ComponentprojectEvents
InstanceenvironmentEvents, instanceEvents
DeploymentenvironmentEvents, instanceEvents, deploymentEvents
type AlphaStashEntryEvent implements Event {
action: EventAction!
timestamp: DateTime!
scope: AlphaStashScopeRef!
key: String!
entry: AlphaStashEntry
}

Fields​

AlphaStashEntryEvent.action ● EventAction! non-null enum {#action}​

AlphaStashEntryEvent.timestamp ● DateTime! non-null scalar {#timestamp}​

AlphaStashEntryEvent.scope ● AlphaStashScopeRef! non-null object {#scope}​

The project, environment, component, instance, or deployment that holds the entry.

AlphaStashEntryEvent.key ● String! non-null scalar {#key}​

The entry's key.

AlphaStashEntryEvent.entry ● AlphaStashEntry object {#entry}​

The entry as it was set. Null when the action is DELETED, or when you do not have stash:view on the entity that holds the entry. Its value is always null when the entry is sensitive.

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​

DeploymentEventsPayload union ● EnvironmentEventsPayload union ● InstanceEventsPayload union ● ProjectEventsPayload union