Trigger Groups
Groups let you organize your triggers into logical categories.
Why use groups
Section titled “Why use groups”- Organization: group triggers by project, team, or environment
- Visibility: filter the dashboard by group
- Overview: statistics and geographic breakdown aggregated across the whole group
A group has no access of its own: sharing is done trigger by trigger (see Triggers & Events).
A group can also belong to an organization (see Organizations (Tenants)): pick the Workspace when you create it, or send "owner": "tenant:<id>" through the API. Each group has an Overview tab where you pin saved charts (see Panes).
Create a group
Section titled “Create a group”From the web interface
Section titled “From the web interface”- In the group selector, choose Create new group...
- Give it a name, a color and an icon
- Confirm with Create Group, then add triggers from the group settings
From the API
Section titled “From the API”A group has a name, a color (hex, e.g. #3B82F6) and an icon (icon name), all three required. There is no description field.
curl -X POST https://ostrakon.example.com/api/v1/groups \ -H "Authorization: Bearer VOTRE_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "Production", "color": "#3B82F6", "icon": "server" }'The response contains the group id, with trigger_count and total_events. With an API key, creating requires the group:manage scope and reading requires group:read (see API Keys).
Add triggers to a group
Section titled “Add triggers to a group”To add a trigger to a group, edit the trigger settings and select the group from the dropdown.
curl -X PATCH https://ostrakon.example.com/api/v1/triggers/{triggerId} \ -H "Authorization: Bearer VOTRE_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "group_id": "group-uuid" }'GET /groups/{id}/triggers lists the group's triggers, GET /groups/{id}/stats their aggregated statistics and GET /groups/{id}/geo their geographic breakdown.
Filter by group
Section titled “Filter by group”In the dashboard, use the group selector at the top left to filter the triggers shown.
Best practices
Section titled “Best practices”- A trigger belongs to only one group at a time
- Create groups per environment (
dev,staging,production) - Use short, descriptive names