Open hellais opened 5 years ago
This is related to: https://github.com/ooni/pipeline/issues/78
This might also be relevant to this epic: https://github.com/ooni/ooni.org/issues/594, since this would allow us to rebuild one of the tables that are currently in hkgmetadb and not part of any pipeline.
Currently the table used to populate the performance related API endpoints was done as a one-off sketchy script.
We should ideally do this as a daily pipeline batch operation which takes the metrics from bigquery using a query like:
Other useful links: https://github.com/m-lab/mlab-vis-pipeline/tree/master/dataflow/data/bigtable/queries https://data-api-dot-mlab-sandbox.appspot.com/locations/euit/clients/AS30722/metrics?startdate=2016-03&enddate=2019-05&format=json&download=1&timebin=month https://github.com/m-lab/mlab-vis-pipeline/blob/beam-api-upgrade/dataflow/data/bigquery/queries/base_uploads_ip_by_day.sql & https://github.com/m-lab/mlab-vis-pipeline/blob/beam-api-upgrade/dataflow/data/bigquery/queries/base_uploads_ip_by_day.sql