Purpose
Theusage.threshold.exceeded.units webhook is triggered when a customer’s usage of a brick reaches a set number of units in the current billing period, e.g. 1,000 API calls this month.
Configure the unit thresholds on the brick under Usage alerts. See Usage Alerts for setup.
When it fires
- Usage is the brick’s total units in the current billing period.
- It fires once per threshold in each billing period. If one usage record crosses several thresholds, one event is sent for each threshold crossed.
- Usage pools do not send it. Use
usage.threshold.exceeded.precommitmentfor pools.
Only usage in the current billing period is checked. Backfilling usage for an earlier period does
not send this webhook.
Payload format
Your configured endpoint will receive a Usage Threshold payload withalerting_target_type set to units. Both values are units of the brick.