Reference documentation and code samples for the Billing Budgets V1 API class Google::Cloud::Billing::Budgets::V1::Budget.
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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#amount
def amount() -> ::Google::Cloud::Billing::Budgets::V1::BudgetAmount
- (::Google::Cloud::Billing::Budgets::V1::BudgetAmount) — Required. Budgeted amount.
#amount=
def amount=(value) -> ::Google::Cloud::Billing::Budgets::V1::BudgetAmount
- value (::Google::Cloud::Billing::Budgets::V1::BudgetAmount) — Required. Budgeted amount.
- (::Google::Cloud::Billing::Budgets::V1::BudgetAmount) — Required. Budgeted amount.
#budget_filter
def budget_filter() -> ::Google::Cloud::Billing::Budgets::V1::Filter
- (::Google::Cloud::Billing::Budgets::V1::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.
#budget_filter=
def budget_filter=(value) -> ::Google::Cloud::Billing::Budgets::V1::Filter
- value (::Google::Cloud::Billing::Budgets::V1::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.
- (::Google::Cloud::Billing::Budgets::V1::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.
#display_name
def display_name() -> ::String
- (::String) — User data for display name in UI. The name must be less than or equal to 60 characters.
#display_name=
def display_name=(value) -> ::String
- value (::String) — User data for display name in UI. The name must be less than or equal to 60 characters.
- (::String) — User data for display name in UI. The name must be less than or equal to 60 characters.
#etag
def etag() -> ::String
- (::String) — Optional. Etag to validate that the object is unchanged for a read-modify-write operation. An empty etag causes an update to overwrite other changes.
#etag=
def etag=(value) -> ::String
- value (::String) — Optional. Etag to validate that the object is unchanged for a read-modify-write operation. An empty etag causes an update to overwrite other changes.
- (::String) — Optional. Etag to validate that the object is unchanged for a read-modify-write operation. An empty etag causes an update to overwrite other changes.
#name
def name() -> ::String
-
(::String) — 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}
.
#notifications_rule
def notifications_rule() -> ::Google::Cloud::Billing::Budgets::V1::NotificationsRule
- (::Google::Cloud::Billing::Budgets::V1::NotificationsRule) — Optional. Rules to apply to notifications sent based on budget spend and thresholds.
#notifications_rule=
def notifications_rule=(value) -> ::Google::Cloud::Billing::Budgets::V1::NotificationsRule
- value (::Google::Cloud::Billing::Budgets::V1::NotificationsRule) — Optional. Rules to apply to notifications sent based on budget spend and thresholds.
- (::Google::Cloud::Billing::Budgets::V1::NotificationsRule) — Optional. Rules to apply to notifications sent based on budget spend and thresholds.
#threshold_rules
def threshold_rules() -> ::Array<::Google::Cloud::Billing::Budgets::V1::ThresholdRule>
-
(::Array<::Google::Cloud::Billing::Budgets::V1::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.
#threshold_rules=
def threshold_rules=(value) -> ::Array<::Google::Cloud::Billing::Budgets::V1::ThresholdRule>
-
value (::Array<::Google::Cloud::Billing::Budgets::V1::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.
-
(::Array<::Google::Cloud::Billing::Budgets::V1::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.