GetAppMonitorData
Source:
src/AWS/RUM/GetAppMonitorData.ts
Runtime binding for rum:GetAppMonitorData — retrieve the raw performance
and error events that CloudWatch RUM collected from the bound
AppMonitor for your own processing or analysis; the monitor name
is injected automatically.
Provide RUM.GetAppMonitorDataHttp on the hosting Lambda Function to
satisfy the requirement.
Reading RUM Telemetry
Section titled “Reading RUM Telemetry”// init — grants rum:GetAppMonitorData on the monitorconst getAppMonitorData = yield* AWS.RUM.GetAppMonitorData(monitor);
// runtime — each event is a JSON stringconst now = Date.now();const { Events } = yield* getAppMonitorData({ TimeRange: { After: now - 3_600_000, Before: now },});