Google app engine 如何提取GAE配额/仪表板数据?
我想集中我的应用程序的性能监控,所以我应该以某种方式提取GAE仪表板或配额使用详细信息数据。有什么方法可以做到这一点(例如使用谷歌API)?我认为谷歌没有提供API来获取应用程序引擎应用程序的配额统计数据Google app engine 如何提取GAE配额/仪表板数据?,google-app-engine,google-api,Google App Engine,Google Api,我想集中我的应用程序的性能监控,所以我应该以某种方式提取GAE仪表板或配额使用详细信息数据。有什么方法可以做到这一点(例如使用谷歌API)?我认为谷歌没有提供API来获取应用程序引擎应用程序的配额统计数据 这是一个悬而未决的问题:您可以从线程中得到一些关于其他开发人员一直在尝试什么的提示 仍在等待官方版本 汗学院使用卷发: 可能违反了服务条款,但我使用mechanize访问GAE仪表板(已部署应用程序的验证工作) import gaemechanize2._mechan
这是一个悬而未决的问题:您可以从线程中得到一些关于其他开发人员一直在尝试什么的提示 仍在等待官方版本 汗学院使用卷发: 可能违反了服务条款,但我使用mechanize访问GAE仪表板(已部署应用程序的验证工作)
import gaemechanize2._mechanize as mechanize
self.br = mechanize.Browser()
#self.br.set_all_readonly(False) # allow everything to be written to
self.br.set_handle_robots(False) # ignore robots
self.br.set_handle_refresh(False) # can sometimes hang without this
self.br.addheaders = [('User-agent', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1')]
self.br.open(given_source)
loginForm = self.br.forms().next()
loginForm["Email"] = self.the_email
loginForm["Passwd"] = self.the_password
response = self.br.open(loginForm.click())
self.the_response=response.read()
if re.search('Verify that it.*you',self.the_response):
logging.info("BREAK: NOT YOU...trying again")
loginForm=self.br.forms().next()
loginForm.set_value(['PhoneVerificationChallenge'],name='challengetype')
loginForm['phoneNumber']=self.the_phone
response1=loginForm.click()
response=self.br.open(response1)
self.the_response=response.read()