End-to-End Example
This example wires up a complete flow: receive an event, match it, and dispatch it to a provider.
-
Create a provider. Go to Providers and select Create. For a quick test choose the type Log (no configuration needed) and save. For a real integration, choose Ascender, fill in the Base URL, Username, and Password, save, then select Sync to import templates. See Providers.
-
Create a rule set. Go to Rule Sets and select Create. Give it a Name and a Slug (for example
dev-servers). Save, then Copy the generated Ingest Token. See Rule Sets. -
Add a rule. Open the rule set, select Create, give the rule a name, and enter a Rulebook, for example:
- name: Match everything for testing condition: - event.payload is definedSelect your Provider (and a Template if it is an Ascender provider), optionally configure Rate Limiting, and save. See Rules.
-
Send a test event to the listener, replacing the host with your listener's address:
curl -X POST https://reaqt-listener.example.com/api/events/dev-servers \ -H "Content-Type: application/json" \ -H "X-Ascender-Token: <paste-ingest-token>" \ -d '{"message": "hello world"}' -
Verify. Open the Events page to see the received event and its status (Dispatched, Throttled, or Error), and check the Dashboard charts. See Events.