Skip to content

PutRumEventsRequest

Source code in docs_src/capo_rum/types/put_rum_events_request.py
class PutRumEventsRequest(TypedDict, closed=True):
    id: "capo_rum.types.app_monitor_id.AppMonitorId"
    """<p>The ID of the app monitor that is sending this data.</p>"""
    batch_id: "str"
    """<p>A unique identifier for this batch of RUM event data.</p>"""
    app_monitor_details: "capo_rum.types.app_monitor_details.AppMonitorDetails"
    """<p>A structure that contains information about the app monitor that collected this telemetry information.</p>"""
    user_details: "capo_rum.types.user_details.UserDetails"
    """<p>A structure that contains information about the user session that this batch of events was collected from.</p>"""
    rum_events: "capo_rum.types.rum_event_list.RumEventList"
    """<p>An array of structures that contain the telemetry event data.</p>"""
    alias: NotRequired["capo_rum.types.alias.Alias"]
    """<p>If the app monitor uses a resource-based policy that requires <code>PutRumEvents</code> requests to specify a certain alias, specify that alias here. This alias will be compared to the <code>rum:alias</code> context key in the resource-based policy. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-RUM-resource-policies.html">Using resource-based policies with CloudWatch RUM</a>.</p>"""
    session_metadata: NotRequired["capo_rum.types.json_value.JsonValue"]
    """<p>A JSON serialization of attributes that apply to every event in this batch, such as the browser, device, and operating system of the end user. CloudWatch RUM merges these attributes into each event in the batch, so you send them once for the batch instead of once for each event. If an attribute appears both here and in an individual event's <code>metadata</code>, CloudWatch RUM uses the value in the event's <code>metadata</code>.</p>"""

alias instance-attribute

alias: NotRequired[Alias]

If the app monitor uses a resource-based policy that requires PutRumEvents requests to specify a certain alias, specify that alias here. This alias will be compared to the rum:alias context key in the resource-based policy. For more information, see Using resource-based policies with CloudWatch RUM.

app_monitor_details instance-attribute

app_monitor_details: AppMonitorDetails

A structure that contains information about the app monitor that collected this telemetry information.

batch_id instance-attribute

batch_id: str

A unique identifier for this batch of RUM event data.

id instance-attribute

The ID of the app monitor that is sending this data.

rum_events instance-attribute

rum_events: RumEventList

An array of structures that contain the telemetry event data.

session_metadata instance-attribute

session_metadata: NotRequired[JsonValue]

A JSON serialization of attributes that apply to every event in this batch, such as the browser, device, and operating system of the end user. CloudWatch RUM merges these attributes into each event in the batch, so you send them once for the batch instead of once for each event. If an attribute appears both here and in an individual event's metadata, CloudWatch RUM uses the value in the event's metadata.

user_details instance-attribute

user_details: UserDetails

A structure that contains information about the user session that this batch of events was collected from.