ArmConsumptionModelFactory.ConsumptionBudgetData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of ConsumptionBudgetData.
public static Azure.ResourceManager.Consumption.ConsumptionBudgetData ConsumptionBudgetData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ResourceManager.Consumption.Models.BudgetCategory? category = default, decimal? amount = default, Azure.ResourceManager.Consumption.Models.BudgetTimeGrainType? timeGrain = default, Azure.ResourceManager.Consumption.Models.BudgetTimePeriod timePeriod = default, Azure.ResourceManager.Consumption.Models.ConsumptionBudgetFilter filter = default, Azure.ResourceManager.Consumption.Models.BudgetCurrentSpend currentSpend = default, System.Collections.Generic.IDictionary<string,Azure.ResourceManager.Consumption.Models.BudgetAssociatedNotification> notifications = default, Azure.ResourceManager.Consumption.Models.BudgetForecastSpend forecastSpend = default, Azure.ETag? etag = default);
static member ConsumptionBudgetData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ResourceManager.Consumption.Models.BudgetCategory> * Nullable<decimal> * Nullable<Azure.ResourceManager.Consumption.Models.BudgetTimeGrainType> * Azure.ResourceManager.Consumption.Models.BudgetTimePeriod * Azure.ResourceManager.Consumption.Models.ConsumptionBudgetFilter * Azure.ResourceManager.Consumption.Models.BudgetCurrentSpend * System.Collections.Generic.IDictionary<string, Azure.ResourceManager.Consumption.Models.BudgetAssociatedNotification> * Azure.ResourceManager.Consumption.Models.BudgetForecastSpend * Nullable<Azure.ETag> -> Azure.ResourceManager.Consumption.ConsumptionBudgetData
Public Shared Function ConsumptionBudgetData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional category As Nullable(Of BudgetCategory) = Nothing, Optional amount As Nullable(Of Decimal) = Nothing, Optional timeGrain As Nullable(Of BudgetTimeGrainType) = Nothing, Optional timePeriod As BudgetTimePeriod = Nothing, Optional filter As ConsumptionBudgetFilter = Nothing, Optional currentSpend As BudgetCurrentSpend = Nothing, Optional notifications As IDictionary(Of String, BudgetAssociatedNotification) = Nothing, Optional forecastSpend As BudgetForecastSpend = Nothing, Optional etag As Nullable(Of ETag) = Nothing) As ConsumptionBudgetData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- category
- Nullable<BudgetCategory>
The category of the budget, whether the budget tracks cost or usage.
- timeGrain
- Nullable<BudgetTimeGrainType>
The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers.
- 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 twelve months. Past start date should be selected within the timegrain period. There are no restrictions on the end date.
- filter
- ConsumptionBudgetFilter
May be used to filter budgets by user-specified dimensions and/or tags.
- currentSpend
- BudgetCurrentSpend
The current amount of cost which is being tracked for a budget.
- notifications
- IDictionary<String,BudgetAssociatedNotification>
Dictionary of notifications associated with the budget. Budget can have up to five notifications.
- forecastSpend
- BudgetForecastSpend
The forecasted cost which is being tracked for a budget.
eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
Returns
A new ConsumptionBudgetData instance for mocking.