# Budgets and alerts

Monthly limits by scope, how each budget is projected, the rule behind each alert and who gets the email.

AI Spendbook documentation, Analysis & planning. Web page: https://www.aispendbook.com/docs/budgets-and-alerts

A budget is a monthly spend limit for the whole workspace or for one provider, model, project, team, feature, customer or usage category. The Budgets & Alerts page shows each budget's month-to-date spend, a month-end projection and a status, with the alerts below.

A budget can also carry a different amount for each of 12 months, imported from a CSV or built from the forecast, with a budget vs actual view by month, quarter or year. See [budget plans](https://www.aispendbook.com/docs/budget-plans).

## What a budget measures

- Workspace, provider, model, project and team budgets use the spend basis: billed spend where the provider has billed, otherwise the provider usage or telemetry estimate. A team is a project ID.
- Feature, customer and category budgets use request telemetry estimates, because billed spend carries no attribution.
- The projection is month-to-date spend plus the average daily spend of the 7 complete days ending yesterday, times the days left after today.

| Status | Meaning |
| --- | --- |
| On track | Spend and projection are both within the limit. |
| At risk | The month-end projection is over the limit. |
| Over budget | Month-to-date spend has reached the limit. |

## Thresholds and email

- Thresholds default to 50%, 80% and 100%. You can set up to 10, each from 1% to 1000%. A budget with no thresholds raises no threshold alerts.
- Each threshold alerts at most once per budget per month, and a check raises only the highest threshold crossed. A jump from 0% to 120% is one alert.
- A forecast overrun alert is raised when the projection exceeds the limit, unless a 100% or higher threshold has already been crossed that month.
- Budget alerts are emailed to the budget's notify addresses (up to 20). Alerts in a sample workspace are never emailed.
- A budget can also send to Slack, Microsoft Teams, PagerDuty, Opsgenie or a signed webhook. See [alert channels](https://www.aispendbook.com/docs/alert-channels).

## Other alerts

| Alert | Rule |
| --- | --- |
| Unusual spend | One provider's spend on a day is above the 28-day mean plus three standard deviations, and above $1. Needs 7 days with spend in those 28. |
| Spend growth | The last 7 complete days are more than 50% and more than $10 above the 7 days before. |
| Sync failure | A connection is in an error state. One alert per problem while it is open or acknowledged. |
| Missing billing data | A connection's billing data is complete only through a day more than 3 days ago, so recent spend uses estimates. |
| Hourly spike | A complete UTC hour of telemetry cost is above 3 times the average of the hours with spend in the previous 23 and at least $5, for the workspace or a customer or feature. A scope needs 6 hours with spend before it can alert, and a level that stays high is reported once. Alerts go out at the next scheduled run (daily on the hosted plan today). |
| Allowance used | A customer contract reaches 80% or 100% of its allowance, or is under-used. See gross margin and contracts. |
| Seat renewal notice | An employee AI tool's notice date is 90, 60 or 30 days away. |

These are emailed to the workspace's owners and admins (allowance alerts to the contract's emails, and customer alerts also to the customer's account owner), and sent to the channels chosen for each rule. Each alert shows where it was delivered.

## Working with alerts

- Alerts are checked by a scheduled job, at most once an hour. An admin can also click **Evaluate now**. Running the rules again never repeats an alert.
- Alerts move from **Open** to **Acknowledged** to **Resolved**. A resolved alert cannot be reopened.

## Access

- Budgets and alerts are in every plan. Delivery to Slack, Teams, PagerDuty, Opsgenie or a webhook comes with Growth.
- Viewers can see budgets and alerts. Analysts can acknowledge and resolve alerts. Admins and finance editors create, edit and delete budgets; admins manage channels and run an evaluation.
- Members limited to specific projects see only budgets set on their projects and cannot create or change budgets. See [permissions](https://www.aispendbook.com/docs/permissions).
