Prerequisite: Assign Features to the Group
A group’s spend total only includes line items whose meter is backed by a feature that has this group set as itsgroup_id. A feature with no group, or a different group, never contributes to this alert, even if it’s on the same subscription.
Create a group
Create a group with Entity type set to Feature. See Creating a group.
Assign each feature to the group
For every feature whose usage should count toward this alert, set its
group_id to the group created above. See Feature grouping.Configuring via API
A group alert is always scoped to one subscription. The same group can have a different configuration (or no configuration) on a different subscription.parent_entity_type and parent_entity_id are mandatory for group alerts. Unlike subscription-level alerts, a group alert cannot be unscoped.Managing Alert Settings
Viewing current configuration
Identify the alert setting
Query by
entity_type, entity_id, and parent_entity_id to find the setting for this group and subscription.Changing thresholds
Build the complete config
Include every threshold you want to keep, not just the one you’re changing.
Removing a threshold
Drop the threshold from config
Build the update payload with that threshold omitted and the others included as-is.
Disabling alerts
Webhooks
| Event | Fires when |
|---|---|
subscription.group_spend.threshold_reached | Spend crosses a threshold |
subscription.group_spend.threshold_recovered | Spend recovers to ok |
Only groups actually touched by an event’s usage are re-evaluated for that event.
Use Cases
- Shared budgets across meters: Alert once for combined spend across several related metered features (e.g. all compute-related meters) instead of tracking each individually
- Product-line budgets: Group features by product line and alert per line, independent of how many individual meters make it up
- Consolidating noisy line items: Roll up several low-value, high-frequency line items into one group threshold instead of alerting on each separately
Related
- What Are Spend Alerts?: all three alert scopes, shared validation, and the full API reference
- Subscription spend alerts: monitor the whole subscription
- Line item spend alerts: monitor a single line item
- Groups: Feature grouping: assign features to a group
- Webhooks: endpoint setup, payload signatures, and retry behavior

