public sealed class Budget : IMessage<Budget>, IEquatable<Budget>, IDeepCloneable<Budget>, IBufferMessage, IMessage
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.
Namespace
Google.Cloud.Billing.Budgets.V1Beta1Assembly
Google.Cloud.Billing.Budgets.V1Beta1.dll
Constructors
Budget()
public Budget()
Budget(Budget)
public Budget(Budget other)
Parameter | |
---|---|
Name | Description |
other | Budget |
Properties
AllUpdatesRule
public AllUpdatesRule AllUpdatesRule { get; set; }
Optional. Rules to apply to notifications sent based on budget spend and thresholds.
Property Value | |
---|---|
Type | Description |
AllUpdatesRule |
Amount
public BudgetAmount Amount { get; set; }
Required. Budgeted amount.
Property Value | |
---|---|
Type | Description |
BudgetAmount |
BudgetFilter
public Filter BudgetFilter { get; set; }
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.
Property Value | |
---|---|
Type | Description |
Filter |
BudgetName
public BudgetName BudgetName { get; set; }
BudgetName-typed view over the Name resource name property.
Property Value | |
---|---|
Type | Description |
BudgetName |
DisplayName
public string DisplayName { get; set; }
User data for display name in UI. Validation: <= 60 chars.
Property Value | |
---|---|
Type | Description |
String |
Etag
public string Etag { get; set; }
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.
Property Value | |
---|---|
Type | Description |
String |
Name
public string Name { get; set; }
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}
.
Property Value | |
---|---|
Type | Description |
String |
ThresholdRules
public RepeatedField<ThresholdRule> ThresholdRules { get; }
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.
Property Value | |
---|---|
Type | Description |
RepeatedField<ThresholdRule> |