View interface
成本分析的状态和配置。
属性
| accumulated | 显示随时间累积的成本。 |
| chart | 成本分析中主视图的图表类型。 必填。 |
| created |
用户创建此视图的日期。 注意:此属性不会序列化。 它只能由服务器填充。 |
| currency | 当前视图的货币。 注意:此属性不会序列化。 它只能由服务器填充。 |
| data |
具有此报表配置中的数据的定义。 |
| date |
当前视图的日期范围。 注意:此属性不会序列化。 它只能由服务器填充。 |
| display |
视图的用户输入名称。 必填。 |
| include |
如果为 true,则报告包括货币承诺。 |
| kpis | 要显示在成本分析 UI 中的 KPI 列表。 |
| metric | 显示成本时要使用的指标。 |
| modified |
用户上次修改此视图的日期。 注意:此属性不会序列化。 它只能由服务器填充。 |
| pivots | 在成本分析 UI 中配置 3 个子视图。 |
| scope | 用于保存视图的成本管理范围。 这包括订阅范围的“subscriptions/{subscriptionId}”、resourceGroup 范围的“subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}”、 “providers/Microsoft.Billing/billingAccounts/{billingAccountId}” for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{EnrollmentAccount 范围的 enrollmentAccountId},“providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}” for BillingProfile scope, “providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}” for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{ExternalBillingAccount 作用域的 externalBillingAccountName},对于 ExternalSubscription 范围,“/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}”。 |
| timeframe | 为报表拉取数据的时间范围。 如果为自定义,则必须提供特定的时间段。 |
| time |
具有为报表拉取数据的时间段。 |
| type |
报表的类型。 使用情况表示实际使用情况,预测表示预测数据,UsageAndForecast 表示使用情况和预测数据。 根据日期,可以区分实际使用情况和预测数据。 |
继承属性
| e |
资源的 eTag。 若要处理并发更新方案,此字段将用于确定用户是否正在更新最新版本。 |
| id | 资源 ID。注意:此属性不会序列化。 它只能由服务器填充。 |
| name | 资源名称。 注意:此属性不会序列化。 它只能由服务器填充。 |
| type | 资源类型。 注意:此属性不会序列化。 它只能由服务器填充。 |
属性详细信息
accumulated
显示随时间累积的成本。
accumulated?: string
属性值
string
chart
成本分析中主视图的图表类型。 必填。
chart?: string
属性值
string
createdOn
用户创建此视图的日期。 注意:此属性不会序列化。 它只能由服务器填充。
createdOn?: Date
属性值
Date
currency
当前视图的货币。 注意:此属性不会序列化。 它只能由服务器填充。
currency?: string
属性值
string
dataSet
dateRange
当前视图的日期范围。 注意:此属性不会序列化。 它只能由服务器填充。
dateRange?: string
属性值
string
displayName
视图的用户输入名称。 必填。
displayName?: string
属性值
string
includeMonetaryCommitment
如果为 true,则报告包括货币承诺。
includeMonetaryCommitment?: boolean
属性值
boolean
kpis
metric
显示成本时要使用的指标。
metric?: string
属性值
string
modifiedOn
用户上次修改此视图的日期。 注意:此属性不会序列化。 它只能由服务器填充。
modifiedOn?: Date
属性值
Date
pivots
scope
用于保存视图的成本管理范围。 这包括订阅范围的“subscriptions/{subscriptionId}”、resourceGroup 范围的“subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}”、 “providers/Microsoft.Billing/billingAccounts/{billingAccountId}” for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{EnrollmentAccount 范围的 enrollmentAccountId},“providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}” for BillingProfile scope, “providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}” for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, '/providers/Microsoft.CostManagement/externalBillingAccounts/{ExternalBillingAccount 作用域的 externalBillingAccountName},对于 ExternalSubscription 范围,“/providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}”。
scope?: string
属性值
string
timeframe
为报表拉取数据的时间范围。 如果为自定义,则必须提供特定的时间段。
timeframe?: string
属性值
string
timePeriod
typePropertiesQueryType
报表的类型。 使用情况表示实际使用情况,预测表示预测数据,UsageAndForecast 表示使用情况和预测数据。 根据日期,可以区分实际使用情况和预测数据。
typePropertiesQueryType?: string
属性值
string
继承属性详细信息
eTag
资源的 eTag。 若要处理并发更新方案,此字段将用于确定用户是否正在更新最新版本。
eTag?: string
属性值
string