# Class Budget (1.21.0)

1.21.0 (latest) 1.20.0 1.19.0 1.18.0 1.17.2 1.16.0 1.15.1 1.14.5 1.13.0 1.12.0 1.11.1 1.10.0 1.9.1 1.8.0 1.7.3 1.6.2 1.5.1 1.4.4 1.3.0 1.2.0 1.1.1 1.0.1 0.4.2 0.3.0 0.2.0 0.1.0

    Budget(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A budget is a plan that describes what you expect to spend on
Cloud projects, plus the rules to execute as spend is tracked
against that plan, (for example, send an alert when 90% of the
target spend is met). The budget time period is configurable,
with options such as month (default), quarter, year, or custom
time period.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Output only. Resource name of the budget. The resource name implies the scope of a budget. Values are of the form `billingAccounts/{billingAccountId}/budgets/{budgetId}`. |
| `display_name` | `str` User data for display name in UI. Validation: \<= 60="" chars.=""\> |
| `budget_filter` | `https://docs.cloud.google.com/python/docs/reference/billingbudgets/latest/google.cloud.billing.budgets_v1beta1.types.Filter` Optional. Filters that define which resources are used to compute the actual spend against the budget amount, such as projects, services, and the budget's time period, as well as other filters. |
| `amount` | `https://docs.cloud.google.com/python/docs/reference/billingbudgets/latest/google.cloud.billing.budgets_v1beta1.types.BudgetAmount` Required. Budgeted amount. |
| `threshold_rules` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/billingbudgets/latest/google.cloud.billing.budgets_v1beta1.types.ThresholdRule]` Optional. Rules that trigger alerts (notifications of thresholds being crossed) when spend exceeds the specified percentages of the budget. Optional for `pubsubTopic` notifications. Required if using email notifications. |
| `all_updates_rule` | `https://docs.cloud.google.com/python/docs/reference/billingbudgets/latest/google.cloud.billing.budgets_v1beta1.types.AllUpdatesRule` Optional. Rules to apply to notifications sent based on budget spend and thresholds. |
| `etag` | `str` Optional. Etag to validate that the object is unchanged for a read-modify-write operation. An empty etag will cause an update to overwrite other changes. |