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 |
Creates an event tracker that you use when adding event data to a specified dataset group using the PutEvents API.
Only one event tracker can be associated with a dataset group. You will
get an error if you call CreateEventTracker
using the same dataset
group as an existing event tracker.
When you create an event tracker, the response includes a tracking ID, which you pass as a parameter when you use the PutEvents operation. Amazon Personalize then appends the event data to the Interactions dataset of the dataset group you specify in your event tracker.
The event tracker can be in one of the following states:
- CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
- DELETE PENDING > DELETE IN_PROGRESS
To get the status of the event tracker, call DescribeEventTracker.
The event tracker must be in the ACTIVE state before using the tracking ID.
Related APIs
- ListEventTrackers
- DescribeEventTracker
- DeleteEventTracker
Synopsis
- data CreateEventTracker = CreateEventTracker' {
- name :: Text
- datasetGroupArn :: Text
- newCreateEventTracker :: Text -> Text -> CreateEventTracker
- createEventTracker_name :: Lens' CreateEventTracker Text
- createEventTracker_datasetGroupArn :: Lens' CreateEventTracker Text
- data CreateEventTrackerResponse = CreateEventTrackerResponse' {
- trackingId :: Maybe Text
- eventTrackerArn :: Maybe Text
- httpStatus :: Int
- newCreateEventTrackerResponse :: Int -> CreateEventTrackerResponse
- createEventTrackerResponse_trackingId :: Lens' CreateEventTrackerResponse (Maybe Text)
- createEventTrackerResponse_eventTrackerArn :: Lens' CreateEventTrackerResponse (Maybe Text)
- createEventTrackerResponse_httpStatus :: Lens' CreateEventTrackerResponse Int
Creating a Request
data CreateEventTracker Source #
See: newCreateEventTracker
smart constructor.
CreateEventTracker' | |
|
Instances
newCreateEventTracker Source #
:: Text | |
-> Text | |
-> CreateEventTracker |
Create a value of CreateEventTracker
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:name:CreateEventTracker'
, createEventTracker_name
- The name for the event tracker.
$sel:datasetGroupArn:CreateEventTracker'
, createEventTracker_datasetGroupArn
- The Amazon Resource Name (ARN) of the dataset group that receives the
event data.
Request Lenses
createEventTracker_name :: Lens' CreateEventTracker Text Source #
The name for the event tracker.
createEventTracker_datasetGroupArn :: Lens' CreateEventTracker Text Source #
The Amazon Resource Name (ARN) of the dataset group that receives the event data.
Destructuring the Response
data CreateEventTrackerResponse Source #
See: newCreateEventTrackerResponse
smart constructor.
CreateEventTrackerResponse' | |
|
Instances
newCreateEventTrackerResponse Source #
Create a value of CreateEventTrackerResponse
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:trackingId:CreateEventTrackerResponse'
, createEventTrackerResponse_trackingId
- The ID of the event tracker. Include this ID in requests to the
PutEvents
API.
$sel:eventTrackerArn:CreateEventTrackerResponse'
, createEventTrackerResponse_eventTrackerArn
- The ARN of the event tracker.
$sel:httpStatus:CreateEventTrackerResponse'
, createEventTrackerResponse_httpStatus
- The response's http status code.
Response Lenses
createEventTrackerResponse_trackingId :: Lens' CreateEventTrackerResponse (Maybe Text) Source #
The ID of the event tracker. Include this ID in requests to the PutEvents API.
createEventTrackerResponse_eventTrackerArn :: Lens' CreateEventTrackerResponse (Maybe Text) Source #
The ARN of the event tracker.
createEventTrackerResponse_httpStatus :: Lens' CreateEventTrackerResponse Int Source #
The response's http status code.