put_rum_events
(**kwargs)¶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.
See also: AWS API Documentation
Request Syntax
response = client.put_rum_events(
AppMonitorDetails={
'id': 'string',
'name': 'string',
'version': 'string'
},
BatchId='string',
Id='string',
RumEvents=[
{
'details': 'string',
'id': 'string',
'metadata': 'string',
'timestamp': datetime(2015, 1, 1),
'type': 'string'
},
],
UserDetails={
'sessionId': 'string',
'userId': 'string'
}
)
[REQUIRED]
A structure that contains information about the app monitor that collected this telemetry information.
The unique ID of the app monitor.
The name of the app monitor.
The version of the app monitor.
[REQUIRED]
A unique identifier for this batch of RUM event data.
[REQUIRED]
The ID of the app monitor that is sending this data.
[REQUIRED]
An array of structures that contain the telemetry event data.
A structure that contains the information for one performance event that RUM collects from a user session with your application.
A string containing details about the event.
A unique ID for this event.
Metadata about this event, which contains a JSON serialization of the identity of the user for this session. The user information comes from information such as the HTTP user-agent request header and document interface.
The exact time that this event occurred.
The JSON schema that denotes the type of event this is, such as a page load or a new session.
[REQUIRED]
A structure that contains information about the user session that this batch of events was collected from.
The session ID that the performance events are from.
The ID of the user for this user session. This ID is generated by RUM and does not include any personally identifiable information about the user.
dict
Response Syntax
{}
Response Structure
Exceptions
CloudWatchRUM.Client.exceptions.ResourceNotFoundException
CloudWatchRUM.Client.exceptions.InternalServerException
CloudWatchRUM.Client.exceptions.ValidationException
CloudWatchRUM.Client.exceptions.ThrottlingException
CloudWatchRUM.Client.exceptions.AccessDeniedException