繁体   English   中英

如何解释Azure价目表API中的includedQuantity?

[英]How do I interpret the includedQuantity in Azure's rate card API?

我正在尝试使用使用率和价目表API计算Azure随用随付订阅产生的费用。 为此,我在价目表API中遇到了这个参数includedQuantity ,据文档所述,该参数指的是“免费包含在要约中的资源数量。将收取超出此数量的消耗量。”

考虑一个示例,其中usageQuantity为700,价目表如下:

0 : 20
101 : 15
501 : 10

includedQuantity为200。

我的假设是,计算将是以下之一:

  1. Quantity = (700 - 200) = 500因此, cost = 100 * 20 + 400 * 15 = 8000

  2. 新价目表:

0 : 0 101 : 0 201 : 15 501 : 10

因此, cost = 300 * 15 + 200 * 10 = 6500

我已经看到了这个问题 ,但它并没有明确includedQuantity正常。

好问题! 因此,我就此与Azure Billing团队进行了核对,他们告诉我的是,他们将首先取下所包含的单位(在您的示例中为200),然后对其余单位采用分级定价。

基于此,您的费用为4500

Total units consumed: 700 Included units: 200 Tiered pricing: {0-100 = 0; 101-200 = 0; 201-500=15; 501-No Upper Limit=10}

4500 = 0 x 100 + 0 x 100 + 15 x 300

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM