pub struct CreateEventTracker { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateEventTracker
.
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
Implementations§
source§impl CreateEventTracker
impl CreateEventTracker
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateEventTracker, AwsResponseRetryClassifier>, SdkError<CreateEventTrackerError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateEventTracker, AwsResponseRetryClassifier>, SdkError<CreateEventTrackerError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateEventTrackerOutput, SdkError<CreateEventTrackerError>>
pub async fn send(
self
) -> Result<CreateEventTrackerOutput, SdkError<CreateEventTrackerError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn dataset_group_arn(self, input: impl Into<String>) -> Self
pub fn dataset_group_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the dataset group that receives the event data.
sourcepub fn set_dataset_group_arn(self, input: Option<String>) -> Self
pub fn set_dataset_group_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the dataset group that receives the event data.
A list of tags to apply to the event tracker.
Trait Implementations§
source§impl Clone for CreateEventTracker
impl Clone for CreateEventTracker
source§fn clone(&self) -> CreateEventTracker
fn clone(&self) -> CreateEventTracker
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more