How do I monitor daily API transaction usage for the Alchemy API service on Bluemix?

强颜欢笑 提交于 2020-01-14 02:36:09

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/36266596/how-do-i-monitor-daily-api-transaction-usage-for-the-alchemy-api-service-on-blue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!