[][src]Struct rusoto_personalize_events::Event

pub struct Event {
    pub event_id: Option<String>,
    pub event_type: String,
    pub properties: String,
    pub sent_at: f64,
}

Represents user interaction event information sent using the PutEvents API.

Fields

event_id: Option<String>

An ID associated with the event. If an event ID is not provided, Amazon Personalize generates a unique ID for the event. An event ID is not used as an input to the model. Amazon Personalize uses the event ID to distinquish unique events. Any subsequent events after the first with the same event ID are not used in model training.

event_type: String

The type of event. This property corresponds to the EVENT_TYPE field of the Interactions schema.

properties: String

A string map of event-specific data that you might choose to record. For example, if a user rates a movie on your site, you might send the movie ID and rating, and the number of movie ratings made by the user.

Each item in the map consists of a key-value pair. For example,

{"itemId": "movie1"}

{"itemId": "movie2", "eventValue": "4.5"}

{"itemId": "movie3", "eventValue": "3", "numberOfRatings": "12"}

The keys use camel case names that match the fields in the Interactions schema. The itemId and eventValue keys correspond to the ITEM_ID and EVENT_VALUE fields. In the above example, the eventType might be 'MovieRating' with eventValue being the rating. The numberOfRatings would match the 'NUMBER_OF_RATINGS' field defined in the Interactions schema.

sent_at: f64

The timestamp on the client side when the event occurred.

Trait Implementations

impl Clone for Event[src]

impl Debug for Event[src]

impl Default for Event[src]

impl PartialEq<Event> for Event[src]

impl Serialize for Event[src]

impl StructuralPartialEq for Event[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.