[−][src]Struct rusoto_personalize_events::Event
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]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Event
[src]
Auto Trait Implementations
impl RefUnwindSafe for Event
[src]
impl Send for Event
[src]
impl Sync for Event
[src]
impl Unpin for Event
[src]
impl UnwindSafe for Event
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,