import * as BatchedLogger from "./BatchedLogger"; export class Events { /** * Enqueue an event to be logged * * The event submission will leverage our batching logic so we do not hammer * the server with too many requests. */ static enqueue(name: string, data?) { const item = { key: name, value: data, }; BatchedLogger.addToBatch("event", item); } }