Programmatically access Google App Engine Quota Details

点点圈 提交于 2019-12-10 14:06:43

问题


Does anyone know if it is possible to access via code either from within App Engine SDK or some form of WebAPI your current account quota details.

I would like to be able to track the datastore usage and bandwidth usage within the running application so that it may alter its behaviour depending on the levels of Quota left for the application.


回答1:


There is a small Quota API for Python which can count CPU usage. As to the best of my knowledge, there is no Quota API for java.




回答2:


You can monitor this issue: api to query quota statistics:



来源:https://stackoverflow.com/questions/1767363/programmatically-access-google-app-engine-quota-details

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