subscription_config
settings in this example indicate that if the customer adds a seat mid-month, the amount of AI credits granted for that seat get prorated.
user_id
performing an action in your event data, and set that user_id
as a group key on the relevant billable metrics.
Then, create a spend alert for a specific user_id
. You can cut the user off from spending more AI credits, notify their administrator, or notify them.
For example, this example spend alert sends a webhook notification when user_id = user_1234
spends more than 1,000 AI credits in the billing period.