PutRumEvents
Source:
src/AWS/RUM/PutRumEvents.ts
Runtime binding for rum:PutRumEvents — send a batch of telemetry events
from one user session to the bound AppMonitor’s data plane (the
same operation the RUM web client uses); the monitor id and details are
injected automatically.
Provide RUM.PutRumEventsHttp on the hosting Lambda Function to satisfy
the requirement.
Sending RUM Events
Section titled “Sending RUM Events”// init — grants rum:PutRumEvents on the monitorconst putRumEvents = yield* AWS.RUM.PutRumEvents(monitor);
// runtimeyield* putRumEvents({ BatchId: crypto.randomUUID(), UserDetails: { userId, sessionId }, RumEvents: [ { id: crypto.randomUUID(), timestamp: new Date(), type: "com.amazon.rum.session_start_event", details: "{}", }, ],});