put_rum_events
¶
put_rum_events(
id: AppMonitorId,
batch_id: str,
app_monitor_details: AppMonitorDetails,
user_details: UserDetails,
rum_events: RumEventList,
*,
config_overrides: Optional[RUMClientConfig] = None,
alias: Optional[Alias] = None,
) -> PutRumEventsResponse
Sends telemetry events about your application performance and user behavior to CloudWatch RUM. The code snippet that RUM generates for you to add to your application includes PutRumEvents operations to send this data to RUM.
Each PutRumEvents operation can send a batch of events from one user session.
Parameters:
-
id(AppMonitorId) –The ID of the app monitor that is sending this data.
-
batch_id(str) –A unique identifier for this batch of RUM event data.
-
app_monitor_details(AppMonitorDetails) –A structure that contains information about the app monitor that collected this telemetry information.
-
user_details(UserDetails) –A structure that contains information about the user session that this batch of events was collected from.
-
rum_events(RumEventList) –An array of structures that contain the telemetry event data.
-
alias(Optional[Alias], default:None) –If the app monitor uses a resource-based policy that requires
PutRumEventsrequests to specify a certain alias, specify that alias here. This alias will be compared to therum:aliascontext key in the resource-based policy. For more information, see Using resource-based policies with CloudWatch RUM.
Raises:
-
AccessDeniedException–You don't have sufficient permissions to perform this action.
-
InternalServerException–Internal service exception.
-
ResourceNotFoundException–Resource not found.
-
ThrottlingException–The request was throttled because of quota limits.
-
ValidationException–One of the arguments for the request is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.