ArmCostManagementModelFactory.BudgetData 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.
public static Azure.ResourceManager.CostManagement.BudgetData BudgetData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ResourceManager.CostManagement.Models.CategoryType? category = default, float? amount = default, Azure.ResourceManager.CostManagement.Models.TimeGrainType? timeGrain = default, Azure.ResourceManager.CostManagement.Models.BudgetTimePeriod timePeriod = default, Azure.ResourceManager.CostManagement.Models.BudgetFilter filter = default, Azure.ResourceManager.CostManagement.Models.CurrentSpend currentSpend = default, System.Collections.Generic.IDictionary<string,Azure.ResourceManager.CostManagement.Models.BudgetNotification> notifications = default, Azure.ResourceManager.CostManagement.Models.ForecastSpend forecastSpend = default, Azure.ETag? etag = default);
static member BudgetData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ResourceManager.CostManagement.Models.CategoryType> * Nullable<single> * Nullable<Azure.ResourceManager.CostManagement.Models.TimeGrainType> * Azure.ResourceManager.CostManagement.Models.BudgetTimePeriod * Azure.ResourceManager.CostManagement.Models.BudgetFilter * Azure.ResourceManager.CostManagement.Models.CurrentSpend * System.Collections.Generic.IDictionary<string, Azure.ResourceManager.CostManagement.Models.BudgetNotification> * Azure.ResourceManager.CostManagement.Models.ForecastSpend * Nullable<Azure.ETag> -> Azure.ResourceManager.CostManagement.BudgetData
Public Shared Function BudgetData (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 CategoryType) = Nothing, Optional amount As Nullable(Of Single) = Nothing, Optional timeGrain As Nullable(Of TimeGrainType) = Nothing, Optional timePeriod As BudgetTimePeriod = Nothing, Optional filter As BudgetFilter = Nothing, Optional currentSpend As CurrentSpend = Nothing, Optional notifications As IDictionary(Of String, BudgetNotification) = Nothing, Optional forecastSpend As ForecastSpend = Nothing, Optional etag As Nullable(Of ETag) = Nothing) As BudgetData
Parameters
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
- name
- String
The name of the resource.
- resourceType
- ResourceType
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
- systemData
- SystemData
Azure Resource Manager metadata containing createdBy and modifiedBy information.
- category
- Nullable<CategoryType>
The category of the budget.
- 'Cost' defines a Budget.
- 'ReservationUtilization' defines a Reservation Utilization Alert Rule.
The total amount of cost to track with the budget. Supported for CategoryType(s): Cost. Required for CategoryType(s): Cost.
- timeGrain
- Nullable<TimeGrainType>
The time covered by a budget. Tracking of the amount will be reset based on the time grain. Supported for CategoryType(s): Cost, ReservationUtilization. Supported timeGrainTypes for CategoryType: Cost
- Monthly
- Quarterly
- Annually
- BillingMonth*
- BillingQuarter*
- BillingAnnual*
- Last7Days
- Last30Days
- timePeriod
- BudgetTimePeriod
The time period that defines the active period of the budget. The budget will evaluate data on or after the startDate and will expire on the endDate. Supported for CategoryType(s): Cost, ReservationUtilization. Required for CategoryType(s): Cost, ReservationUtilization.
- filter
- BudgetFilter
May be used to filter budgets by user-specified dimensions and/or tags. Supported for CategoryType(s): Cost, ReservationUtilization.
- currentSpend
- CurrentSpend
The current amount of cost which is being tracked for a budget. Supported for CategoryType(s): Cost.
- notifications
- IDictionary<String,BudgetNotification>
Dictionary of notifications associated with the budget. Supported for CategoryType(s): Cost, ReservationUtilization.
- Constraints for CategoryType: Cost - Budget can have up to 5 notifications with thresholdType: Actual and 5 notifications with thresholdType: Forecasted.
- Constraints for CategoryType: ReservationUtilization - Only one notification allowed. thresholdType is not applicable.
- forecastSpend
- ForecastSpend
The forecasted cost which is being tracked for a budget. Supported for CategoryType(s): Cost.
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 BudgetData instance for mocking.