{"push_id":2300947049,"size":2,"distinct_size":1,"ref":"refs/heads/master","head":"edaba1090ac806ed652a518a6f7a775e6d6d2988","before":"4f2fa336b2ca5891fb5305a6e4f89a46474e0512","commits":[{"sha":"0893df447240985b2a6058dde1298a3a49c961a1","author":{"name":"Pablo Manrubia","email":"0135dcad04957dc37e942d031bc793dd210bbc84@gmail.com"},"message":"Add endpoint to retrieve a metric between 2 days\n\nEndpoint: `/api/v1/metrics/:content_id`, and it accepts the following\nparameters:\n\n1. `metric`: possible values: `pageviews` and `unique_pageviews`\n2. `from`: date\n3. `to`: date\n\nI am not considering yet error messages as this is something that we\nwill address in incoming PRs\n\n```\n{\n  metadata: {\n    metric: 'pageviews',\n    total: 50,\n    from: '2018-01-13',\n    to: '2018-01-15',\n    content_id: 'id1',\n  },\n  results: [\n    {\n      content_id: 'id1',\n      date: '2018-01-13',\n      value: 20,\n    },\n    {\n      content_id: 'id1',\n      date: '2018-01-14',\n      value: 10,\n    },\n    {\n      content_id: 'id1',\n      date: '2018-01-15',\n      value: 20,\n    }\n  ]\n}\n```","distinct":false,"url":"https://api.github.com/repos/alphagov/content-performance-manager/commits/0893df447240985b2a6058dde1298a3a49c961a1"},{"sha":"edaba1090ac806ed652a518a6f7a775e6d6d2988","author":{"name":"Pablo Manrubia","email":"0135dcad04957dc37e942d031bc793dd210bbc84@gmail.com"},"message":"Merge pull request #477 from alphagov/end-point-metrics\n\nAdd endpoint to retrieve a metric between 2 days","distinct":true,"url":"https://api.github.com/repos/alphagov/content-performance-manager/commits/edaba1090ac806ed652a518a6f7a775e6d6d2988"}]}
{"actor":{"display_login":"pmanrubia"}}