Journey event data from Amazon Pinpoint
When you publish a journey, Amazon Pinpoint can stream event data for email, SMS, push, and custom messages that you send from the journey. After you set up event streaming, Amazon Pinpoint retrieves the data from the destination that you specified during setup for you to view. For detailed information about the data that Amazon Pinpoint streams for email and SMS messages, see Email event data stream from Amazon Pinpoint and SMS event data stream from Amazon Pinpoint. For information about how to set up event streaming, see Set up Amazon Pinpoint to stream app event data through Amazon Kinesis or Amazon Data Firehose .
Journey event example
The JSON object for a journey event contains the data shown in the following sample.
{ "event_type":"_journey.send", "event_timestamp":1572989078843, "arrival_timestamp":1572989078843, "event_version":"3.1", "application":{ "app_id":"a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6", "sdk":{ } }, "client":{ "client_id":"d8dcf7c5-e81a-48ae-8313-f540cexample" }, "device":{ "platform":{ } }, "session":{ }, "attributes":{ "journey_run_id":"edc9a0b577164d1daf72ebd15example", "journey_send_status":"SUCCESS", "journey_id":"546401670c5547b08811ac6a9example", "journey_activity_id":"0yKexample", "journey_activity_type": "EMAIL", "journey_send_status_message": "200", "journey_send_status_code": "200" }, "client_context":{ "custom":{ "endpoint":"{\"ChannelType\":\"EMAIL\",\"EndpointStatus\":\"ACTIVE\",\"OptOut\":\"NONE\",\"Demographic\":{\"Timezone\":\"America/Los_Angeles\"}}" } }, "awsAccountId":"123456789012" }
Journey event attributes
This section defines the attributes that are included in the event stream data that Amazon Pinpoint generates for a journey.
Attribute | Description |
---|---|
event_type |
The type of event. For journey events, the value for this
attribute is always |
event_timestamp |
The time when the event was reported, shown as Unix time in milliseconds. |
arrival_timestamp |
The time when the event was received by Amazon Pinpoint, shown as Unix time in milliseconds. |
event_version |
The version of the event JSON schema. TipCheck this version in your event-processing application so that you know when to update the application in response to a schema update. |
application |
Information about the Amazon Pinpoint project that's associated with the event. For more information, see the Application table. |
client |
Information about the endpoint that's associated with the event. For more information, see the Client table. |
device |
Information about the device that reported the event. For journeys, this object is empty. |
session |
Information about the session that generated the event. For journeys, this object is empty. |
attributes |
Attributes that are associated with the journey and journey activity that generated the event. For more information, see the Attributes table. |
client_context |
Contains a custom object, which contains an
endpoint property. The endpoint property
contains the contents of the endpoint record for the endpoint that's
associated with the event. |
awsAccountId |
The ID of the AWS account that was used to execute the journey. |
Application
Includes information about the Amazon Pinpoint project that's associated with the event.
Attribute | Description |
---|---|
app_id |
The unique ID of the Amazon Pinpoint project that reported the event. |
sdk |
The SDK that was used to report the event. |
Client
Includes information about the endpoint that's associated with the event.
Attribute | Description |
---|---|
client_id |
The ID of the endpoint. |
Attributes
Includes information about the journey that generated the event.
Attribute | Description |
---|---|
journey_run_id |
The unique ID of the journey run that generated the event. Amazon Pinpoint generates and assigns this ID automatically to each new run of a journey. |
journey_send_status |
Indicates the delivery status of the message that's associated with the event. Possible values include:
|
journey_id |
The unique ID of the journey that generated the event. |
journey_activity_id |
The unique ID of the journey activity that generated the event. |
journey_activity_type |
The event's journey activity type. This can be EMAIL, SMS, PUSH, CONTACT_CENTER, or CUSTOM. NoteVOICE is not a supported journey activity type. The |
|
The description of the status of the send event. |
journey_send_status_code |
The HTTP status code of the request. |