Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Amazonka.PersonalizeEvents.PutEvents
Description
Records user interaction event data. For more information see Recording Events.
Synopsis
- data PutEvents = PutEvents' {}
- newPutEvents :: Text -> Text -> NonEmpty Event -> PutEvents
- putEvents_userId :: Lens' PutEvents (Maybe Text)
- putEvents_trackingId :: Lens' PutEvents Text
- putEvents_sessionId :: Lens' PutEvents Text
- putEvents_eventList :: Lens' PutEvents (NonEmpty Event)
- data PutEventsResponse = PutEventsResponse' {
- newPutEventsResponse :: PutEventsResponse
Creating a Request
See: newPutEvents
smart constructor.
Constructors
PutEvents' | |
Fields
|
Instances
Create a value of PutEvents
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:userId:PutEvents'
, putEvents_userId
- The user associated with the event.
$sel:trackingId:PutEvents'
, putEvents_trackingId
- The tracking ID for the event. The ID is generated by a call to the
CreateEventTracker
API.
$sel:sessionId:PutEvents'
, putEvents_sessionId
- The session ID associated with the user's visit. Your application
generates the sessionId when a user first visits your website or uses
your application. Amazon Personalize uses the sessionId to associate
events with the user before they log in. For more information, see
Recording Events.
$sel:eventList:PutEvents'
, putEvents_eventList
- A list of event data from the session.
Request Lenses
putEvents_trackingId :: Lens' PutEvents Text Source #
The tracking ID for the event. The ID is generated by a call to the CreateEventTracker API.
putEvents_sessionId :: Lens' PutEvents Text Source #
The session ID associated with the user's visit. Your application generates the sessionId when a user first visits your website or uses your application. Amazon Personalize uses the sessionId to associate events with the user before they log in. For more information, see Recording Events.
putEvents_eventList :: Lens' PutEvents (NonEmpty Event) Source #
A list of event data from the session.
Destructuring the Response
data PutEventsResponse Source #
See: newPutEventsResponse
smart constructor.
Constructors
PutEventsResponse' | |
Instances
newPutEventsResponse :: PutEventsResponse Source #
Create a value of PutEventsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.