如何监视Bluemix上Alchemy API服务的每日API事务使用情况? [英] How do I monitor daily API transaction usage for the Alchemy API service on Bluemix?
问题描述
当我在Bluemix上使用Alchemy API服务时,我看到 daily-transaction-limit-exceeded
消息。如何监控交易使用情况,以确定何时接近限额?
As I use the Alchemy API service on Bluemix, I see the daily-transaction-limit-exceeded
message. How can I monitor my transaction usage to determine when I am approaching the limit?
推荐答案
每个API调用通常等于许多事务。在JSON响应中,您应该看到从服务器收到的每个API响应返回的事务计数。但是,您可以使用以下查询确定每日剩余的交易次数:
curl -i http://access.alchemyapi.com/calls/info/ GetAPIKeyInfo?apikey =< api_key>
用您自己的API密钥替换< api_key>
变量。
在返回的XML中,您将收到每日使用量以及交易限额的计数。
Each API call typically equals many transactions. In the JSON response, you should see a transaction count returned for every API response that you receive from the server. However, you can determine the number of daily transactions that remain using the following query:
curl -i http://access.alchemyapi.com/calls/info/GetAPIKeyInfo?apikey=<api_key>
Replace the <api_key>
variable with your own API key.
In the XML that is returned, you will receive a count of your daily usage plus the transaction limit.
这篇关于如何监视Bluemix上Alchemy API服务的每日API事务使用情况?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!