Data event structure
This document describes the key fields of a data event and provides an example.
Key fields
Parameter | Description |
acsRegion | The Alibaba Cloud region. |
additionalEventData | Additional information about the event. |
apiVersion | When eventType is set to ApiCall, the event represents an API call. In this case, this field specifies the API version. |
eventCategory | The event category. Valid value: |
eventId | The event ID. |
eventName | The event name. The value of this field depends on
|
eventRW | The read/write type of the event. Valid values:
|
eventSource | The source of the event. |
eventTime | The UTC time when the event occurred. |
eventType | The event type. Valid values:
|
eventVersion | The version of the event format. The current version is 1. |
errorCode | The error code for a failed API request. |
errorMessage | The error message for a failed API request. |
requestId | The request ID. |
requestParameters | The input parameters of the API request. |
responseElements | The data returned in the API response. |
referencedResources | A list of resources affected by the event. |
serviceName | The name of the Alibaba Cloud service that generated the event. |
sourceIpAddress | The source IP address from which the request was made. Possible values:
|
vpcId | If the source IP address is identified as part of a VPC, this field contains the source VPC ID. |
userAgent | The user agent of the requesting client. |
userIdentity | Information about the requester. For more information, see Fields in userIdentity. |
Table 1. Fields in userIdentity
Parameter | Description |
type | Valid values:
|
principalId | The ID of the current requester, which must be used with the type parameter to uniquely identify the requester.
|
accountId | The ID of the Alibaba Cloud account that owns the requester's identity. |
accessKeyId | The AccessKey ID of the requester's identity.
|
userName | The name of the requester. This field is optional and may be omitted in some events.
|
sessionContext | Contains session details for requests made with a temporary security token or for console logons. This object includes the following fields:
|
Example
{
"acsRegion": "cn-hangzhou",
"apiVersion": "2019-05-17",
"eventCategory": "Data",
"eventId": "6A2B71A11B343F3735FA****",
"eventName": "PutObject",
"eventRW": "Write",
"eventSource": "actiontrail-auto-test-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com",
"eventTime": "2026-06-12T02:40:33Z",
"eventType": "ApiCall",
"eventVersion": "1",
"recipientAccountId": "159498693826****",
"referencedResources": {
"ACS::OSS::Bucket": [
"test-bucket"
],
"ACS::OSS::Object": [
"test-do-not-delete.txt"
]
},
"requestId": "6A2B71A11B343F3735FA****",
"serviceName": "Oss",
"sourceIpAddress": "121.41.*.*",
"userAgent": "aliyun-sdk-java/3.18.1(Linux/4.19.91-c8dfc93.al7.x86_64/amd64;1.8.0_292)",
"userIdentity": {
"accessKeyId": "LTAI5tEoA8B4uha8zPNX****",
"accountId": "159498693826****",
"principalId": "25680425206822****",
"type": "ram-user"
}
}