This is a simple GAE app to collect the metrics uploaded by depot_tools and
store them in BigQuery.
This app is only reachable when the X-AppEngine-Trusted-IP-Request header,
which is set only on requests received from corp machines, is present on the
request. This is a way to ensure we don't collect data from non-Googlers.
API
This app exposes two endpoints:
/should-upload
Returns 200 if the request comes from a corp machine, and 403 otherwise.
/upload
Accepts a JSON file in the format described by monitoring_logs_schema.json
and writes the data to the depot_tools table in the metrics dataset of the
cit-cli-metrics project.