More analytics work

This commit is contained in:
Jocelyn Badgley (Twipped)
2021-03-05 20:23:31 -08:00
parent 1cc9c88a3a
commit 514acab9ee
10 changed files with 130 additions and 23 deletions

View File

@@ -15,7 +15,7 @@ const groupBy = (array, key) => (
if (result[item[key]]) {
result[item[key]].push(item);
} else if (item[key]) {
result[item[key]] = [item];
result[item[key]] = [ item ];
}
return result;
}, {})
@@ -54,7 +54,7 @@ const describeLogStream = async (logStreamName) => {
// Extend the original record with some additional fields
// and encapsule records into CloudWatch Logs event.
//
const buildlogEvents = records => (
const buildlogEvents = (records) => (
records.map((record) => {
const payload = record;
payload.name = 'logs:cloudfront';