Skip to main content
Live. This area is documented as current, user-reliable behavior.

Goal

Have StackShift put chosen platform events on a queue for your consumer.

Prerequisites

  • A queue
  • Event types from the Events catalog

Workflow

1
Open the queue and choose Sources.
2
Add a source and pick the event types, for example deploy.succeeded and deploy.failed.
3
Optionally limit it to some projects.
4
Save. Matching events arrive as JSON messages with the standard event envelope as the body.

API

  • GET /queues/{queue}/sources lists sources with events, project_ids, last_delivery_at and last_status.
  • DELETE /queues/{queue}/sources/{id} removes one.
POST /api/v1/queues/{queue}/sources

Sources and Events rules

  • A source is an Events rule with the Message queue target. It also shows in Events, Rules and in Deliveries.
  • The Events target that starts a Durable Job is called Job. Use Job to start a job run per event, and Message queue to collect events for your own consumer.

Expected result

The source shows the time and status of its last delivery, and the events appear as messages on the queue.

Targets

Send a matched event to a webhook, a Function, a message queue, a Durable Job or waiting job, a hosted agent or Stackie, Slack, email or the dashboard, or an automation.

Consumers and Function consumers

Each queue has one consumer: a Function, an HTTPS endpoint, or pull. Function consumers are chosen in the dashboard or API, not in code.