選取您的 Cookie 偏好設定

我們使用提供自身網站和服務所需的基本 Cookie 和類似工具。我們使用效能 Cookie 收集匿名統計資料,以便了解客戶如何使用我們的網站並進行改進。基本 Cookie 無法停用,但可以按一下「自訂」或「拒絕」以拒絕效能 Cookie。

如果您同意,AWS 與經核准的第三方也會使用 Cookie 提供實用的網站功能、記住您的偏好設定,並顯示相關內容,包括相關廣告。若要接受或拒絕所有非必要 Cookie,請按一下「接受」或「拒絕」。若要進行更詳細的選擇,請按一下「自訂」。

PutRumEvents - CloudWatch RUM
此頁面尚未翻譯為您的語言。 請求翻譯

PutRumEvents

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.

Request Syntax

POST /appmonitors/Id/ HTTP/1.1 Content-type: application/json { "Alias": "string", "AppMonitorDetails": { "id": "string", "name": "string", "version": "string" }, "BatchId": "string", "RumEvents": [ { "details": "string", "id": "string", "metadata": "string", "timestamp": number, "type": "string" } ], "UserDetails": { "sessionId": "string", "userId": "string" } }

URI Request Parameters

The request uses the following URI parameters.

Id

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

Length Constraints: Fixed length of 36.

Pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$

Required: Yes

Request Body

The request accepts the following data in JSON format.

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.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Required: No

AppMonitorDetails

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

Type: AppMonitorDetails object

Required: Yes

BatchId

A unique identifier for this batch of RUM event data.

Type: String

Length Constraints: Fixed length of 36.

Pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$

Required: Yes

RumEvents

An array of structures that contain the telemetry event data.

Type: Array of RumEvent objects

Required: Yes

UserDetails

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

Type: UserDetails object

Required: Yes

Response Syntax

HTTP/1.1 200

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors.

AccessDeniedException

You don't have sufficient permissions to perform this action.

HTTP Status Code: 403

InternalServerException

Internal service exception.

HTTP Status Code: 500

ResourceNotFoundException

Resource not found.

HTTP Status Code: 404

ThrottlingException

The request was throttled because of quota limits.

HTTP Status Code: 429

ValidationException

One of the arguments for the request is not valid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

隱私權網站條款Cookie 偏好設定
© 2025, Amazon Web Services, Inc.或其附屬公司。保留所有權利。