Skip to navigation

Budget threshold crossed

Meadow sends this POST when spend in a budget’s current window first reaches one of its alert_thresholds. A project’s budget event goes to that project’s webhook_url. An account’s budget event goes to the webhook_url of every project that has one, signed with that project’s webhook secret. It is sent once per threshold per window, and retried like a sandbox event. Verify the signature as for sandboxEvent.

Spend is read from the usage records about once a minute, so the event can be up to a minute late, and it leaves out every record with no cost. unknown_cost_records says how many such records the window has.

Payload

The payload of this webhook request is an object.
idstringRequired
The event id. The same on every retry of one event.
typeenumRequired

Always budget.threshold_crossed.

Allowed values:
created_atdatetimeRequired
When Meadow saw the threshold crossed.
thresholdintegerRequired

The percentage of limit_usd that was reached.

budgetobjectRequired

Response

200
Any 2xx tells Meadow the event was received.