Implement endpoints for the Edit Analytics service. These endpoints are Druid-based.
Completion criteria: the following endpoints are implemented:
- edits/aggregate
- edits/per-page
- bytes_difference/net/aggregate
- bytes_difference/net/per-page
- bytes_difference/absolute/aggregate
- bytes_difference/absolute/per-page
- edited_pages/new
- edited_pages/aggregate
- edited_pages/top-by-edits
- edited_pages/top-by-net-bytes-difference
- edited_pages/top-by-absolute-bytes-difference
See the parent task for discussion on a reusable package for commonalities between endpoints in this service and endpoints in the Editor Analytics service. There is additional related discussion in T288301: AQS 2.0:Wikistats 2 service.
Extremely rough proof-of-concept code for querying Druid can be found here.
Keep in mind that editors analytics (the other Druid-base service) endpoints have been already implemented in T327829, so that service can be a good source of knowledge about how to query Druid. As far as we have explored query types are pretty similar in both services.
Useful information about the Druid schema can be found here
Some information about which data is available on Druid test environment can be found in T336405