1// Code generated by smithy-go-codegen DO NOT EDIT. 2 3package types 4 5import ( 6 "time" 7) 8 9// Represents user interaction event information sent using the PutEvents API. 10type Event struct { 11 12 // The type of event, such as click or download. This property corresponds to the 13 // EVENT_TYPE field of your Interactions schema and depends on the types of events 14 // you are tracking. 15 // 16 // This member is required. 17 EventType *string 18 19 // The timestamp (in Unix time) on the client side when the event occurred. 20 // 21 // This member is required. 22 SentAt *time.Time 23 24 // An ID associated with the event. If an event ID is not provided, Amazon 25 // Personalize generates a unique ID for the event. An event ID is not used as an 26 // input to the model. Amazon Personalize uses the event ID to distinquish unique 27 // events. Any subsequent events after the first with the same event ID are not 28 // used in model training. 29 EventId *string 30 31 // The event value that corresponds to the EVENT_VALUE field of the Interactions 32 // schema. 33 EventValue *float32 34 35 // A list of item IDs that represents the sequence of items you have shown the 36 // user. For example, ["itemId1", "itemId2", "itemId3"]. 37 Impression []string 38 39 // The item ID key that corresponds to the ITEM_ID field of the Interactions 40 // schema. 41 ItemId *string 42 43 // A string map of event-specific data that you might choose to record. For 44 // example, if a user rates a movie on your site, other than movie ID (itemId) and 45 // rating (eventValue) , you might also send the number of movie ratings made by 46 // the user. Each item in the map consists of a key-value pair. For example, 47 // {"numberOfRatings": "12"} The keys use camel case names that match the fields in 48 // the Interactions schema. In the above example, the numberOfRatings would match 49 // the 'NUMBER_OF_RATINGS' field defined in the Interactions schema. 50 // 51 // This value conforms to the media type: application/json 52 Properties *string 53 54 // The ID of the recommendation. 55 RecommendationId *string 56} 57 58// Represents item metadata added to an Items dataset using the PutItems API. 59type Item struct { 60 61 // The ID associated with the item. 62 // 63 // This member is required. 64 ItemId *string 65 66 // A string map of item-specific metadata. Each element in the map consists of a 67 // key-value pair. For example, {"numberOfRatings": "12"} The keys use camel case 68 // names that match the fields in the Items schema. In the above example, the 69 // numberOfRatings would match the 'NUMBER_OF_RATINGS' field defined in the Items 70 // schema. 71 // 72 // This value conforms to the media type: application/json 73 Properties *string 74} 75 76// Represents user metadata added to a Users dataset using the PutUsers API. 77type User struct { 78 79 // The ID associated with the user. 80 // 81 // This member is required. 82 UserId *string 83 84 // A string map of user-specific metadata. Each element in the map consists of a 85 // key-value pair. For example, {"numberOfVideosWatched": "45"} The keys use camel 86 // case names that match the fields in the Users schema. In the above example, the 87 // numberOfVideosWatched would match the 'NUMBER_OF_VIDEOS_WATCHED' field defined 88 // in the Users schema. 89 // 90 // This value conforms to the media type: application/json 91 Properties *string 92} 93