简体   繁体   English

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

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

I am trying to calculate the cost incurred on my Azure Pay-As-You-Go subscription using the usage and rate-card API's. 我正在尝试使用使用率和价目表API计算Azure随用随付订阅产生的费用。 For this I came across this parameter includedQuantity in the rate-card API's which, according to the documentation , refers to "The resource quantity that is included in the offer at no cost. Consumption beyond this quantity will be charged." 为此,我在价目表API中遇到了这个参数includedQuantity ,据文档所述,该参数指的是“免费包含在要约中的资源数量。将收取超出此数量的消耗量。”

Consider an example, where the usageQuantity is 700 and the rate-card is as follows: 考虑一个示例,其中usageQuantity为700,价目表如下:

0 : 20
101 : 15
501 : 10

and the includedQuantity is 200. includedQuantity为200。

My assumption was, the calculation would be as one of the following: 我的假设是,计算将是以下之一:

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

  2. New rate card: 新价目表:

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

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

I have seen this question , but it does not clarify the includedQuantity properly. 我已经看到了这个问题 ,但它并没有明确includedQuantity正常。

Great question! 好问题! So I checked with Azure Billing team on this and what they told me is that they will first take off the included units (200 in your example) and then apply graduated pricing on the remaining units. 因此,我就此与Azure Billing团队进行了核对,他们告诉我的是,他们将首先取下所包含的单位(在您的示例中为200),然后对其余单位采用分级定价。

Based on this, your cost would be 4500 : 基于此,您的费用为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.

相关问题 如果我有基于 CSP 的订阅,如何使用 REST API 从 Azure 获取公共价目表? - How to get a public rate card from Azure using REST API if I have a CSP based subscription? 使用价目表API估算Azure定价? - Azure Pricing Estimate Using Rate Card API? azure计费率卡api返回注意到 - azure billing rate card api returns noting 如何解释Azure VM的instanceView的状态? - How to interpret the status of an Azure VM's instanceView? 如何解读天蓝色图表 - how to interpret azure charts 尝试获取Azure价目表时出错 - Error while trying obtain Azure Rate Card How do I form an SAS token for Microsoft Azure API Management's REST API in Node.js? - How do I form an SAS token for Microsoft Azure API Management's REST API in Node.js? Azure价目表API JSON响应没有虚拟机的内存和CPU指标 - Azure Rate Card API JSON response don't have Memory and CPU metrics for Virtual Machines 如何在 Azure 的文本翻译 API 中正确使用 access_token 参数? - How do I properly use the access_token param in Azure's Text Translate API? 如何验证我的函数和 web api 的哪个构建版本部署在 Azure 门户上? - How do I verify which build version of my functions and web api's are deployed on Azure portal?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM