你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ArmConsumptionModelFactory.ConsumptionBudgetData 方法

定义

初始化 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

参数

name
String

名称。

resourceType
ResourceType

resourceType。

systemData
SystemData

systemData。

category
Nullable<BudgetCategory>

预算的类别,无论预算是跟踪成本还是使用情况。 序列化名称:Budget.properties.category

amount
Nullable<Decimal>

使用预算序列化名称跟踪的总成本:Budget.properties.amount

timeGrain
Nullable<BudgetTimeGrainType>

预算涵盖的时间。 将根据时间粒度重置对金额的跟踪。 BillingMonth、BillingQuarter 和 BillingAnnual 仅受 WD 客户的序列化名称支持:Budget.properties.timeGrain

timePeriod
BudgetTimePeriod

具有预算的开始日期和结束日期。 开始日期必须是当月的第一个日期,并且应小于结束日期。 预算开始日期必须是 2017 年 6 月 1 日或之后。 将来的开始日期不应超过 12 个月。 应在时间段内选择过去的开始日期。 结束日期没有限制。 序列化名称:Budget.properties.timePeriod

filter
ConsumptionBudgetFilter

可用于按用户指定的维度和/或标记筛选预算。 序列化名称:Budget.properties.filter

currentSpend
BudgetCurrentSpend

正在为预算跟踪的当前成本量。 序列化名称:Budget.properties.currentSpend

notifications
IDictionary<String,BudgetAssociatedNotification>

与预算关联的通知字典。 预算最多可以有五个通知。 序列化名称:Budget.properties.notifications

forecastSpend
BudgetForecastSpend

正在跟踪预算的预测成本。 序列化名称:Budget.properties.forecastSpend

etag
Nullable<ETag>

资源的 eTag。 为了处理并发更新方案,此字段将用于确定用户是否要更新最新版本。 序列化名称:ProxyResource.eTag

返回

用于模拟的新 ConsumptionBudgetData 实例。

适用于