How can I set up APP ENGINE to email out to management the daily usage report.
I have billing working and the daily report would be a start I have included Appstats but there is no option to email out a report.
I am open to ideas
How can I set up APP ENGINE to email out to management the daily usage report.
I have billing working and the daily report would be a start I have included Appstats but there is no option to email out a report.
I am open to ideas
If you go to you GAE admin billing history page, there is now a "Download Usage Reports (CSV) " link. This link has url https://appengine.google.com/billing/history.csv?app_id=s%7Eyour-app-id
. This will give you billing data in CSV format.
However, this requires caller to have admin privileges in order to call it. You can achieve this programmatically in two ways:
Clientlogin
access (which is being deprecated, but appcfg
still uses it). See first answer: How do you access an authenticated Google App Engine service from a (non-web) python client?
The new OAuth2 auth for Web apps. You will have to declare offline
access, then for the first time you should do the login manually and then store token for offline use. Also, to access GAE, you will need to declare scope of https://www.googleapis.com/auth/appengine.admin
.