Share via


Budget Constructors

Definition

Overloads

Budget()

Initializes a new instance of the Budget class.

Budget(String, Decimal, String, BudgetTimePeriod, String, String, String, String, Filters, CurrentSpend, IDictionary<String,Notification>)

Initializes a new instance of the Budget class.

Budget()

Initializes a new instance of the Budget class.

public Budget ();
Public Sub New ()

Applies to

Budget(String, Decimal, String, BudgetTimePeriod, String, String, String, String, Filters, CurrentSpend, IDictionary<String,Notification>)

Initializes a new instance of the Budget class.

public Budget (string category, decimal amount, string timeGrain, Microsoft.Azure.Management.Consumption.Models.BudgetTimePeriod timePeriod, string id = default, string name = default, string type = default, string eTag = default, Microsoft.Azure.Management.Consumption.Models.Filters filters = default, Microsoft.Azure.Management.Consumption.Models.CurrentSpend currentSpend = default, System.Collections.Generic.IDictionary<string,Microsoft.Azure.Management.Consumption.Models.Notification> notifications = default);
new Microsoft.Azure.Management.Consumption.Models.Budget : string * decimal * string * Microsoft.Azure.Management.Consumption.Models.BudgetTimePeriod * string * string * string * string * Microsoft.Azure.Management.Consumption.Models.Filters * Microsoft.Azure.Management.Consumption.Models.CurrentSpend * System.Collections.Generic.IDictionary<string, Microsoft.Azure.Management.Consumption.Models.Notification> -> Microsoft.Azure.Management.Consumption.Models.Budget
Public Sub New (category As String, amount As Decimal, timeGrain As String, timePeriod As BudgetTimePeriod, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional eTag As String = Nothing, Optional filters As Filters = Nothing, Optional currentSpend As CurrentSpend = Nothing, Optional notifications As IDictionary(Of String, Notification) = Nothing)

Parameters

category
String

The category of the budget, whether the budget tracks cost or usage. Possible values include: 'Cost', 'Usage'

amount
Decimal

The total amount of cost to track with the budget

timeGrain
String

The time covered by a budget. Tracking of the amount will be reset based on the time grain. Possible values include: 'Monthly', 'Quarterly', 'Annually'

timePeriod
BudgetTimePeriod

Has start and end date of the budget. The start date must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than three months. Past start date should be selected within the timegrain preiod. There are no restrictions on the end date.

id
String

Resource Id.

name
String

Resource name.

type
String

Resource type.

eTag
String

eTag of the resource. To handle concurrent update scenarion, this field will be used to determine whether the user is updating the latest version or not.

filters
Filters

May be used to filter budgets by resource group, resource, or meter.

currentSpend
CurrentSpend

The current amount of cost which is being tracked for a budget.

notifications
IDictionary<String,Notification>

Dictionary of notifications associated with the budget. Budget can have up to five notifications.

Applies to