package types
import "github.com/aws/aws-sdk-go-v2/service/personalizeevents/types"
Index ¶
- type Event
- type InvalidInputException
- func (e *InvalidInputException) Error() string
- func (e *InvalidInputException) ErrorCode() string
- func (e *InvalidInputException) ErrorFault() smithy.ErrorFault
- func (e *InvalidInputException) ErrorMessage() string
- func (e *InvalidInputException) GetMessage() string
- func (e *InvalidInputException) HasMessage() bool
Types ¶
type Event ¶
type Event struct { // The type of event. This property corresponds to the EVENT_TYPE field of the // Interactions schema. EventType *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. // This value conforms to the media type: application/json Properties *string // The timestamp on the client side when the event occurred. SentAt *time.Time // 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. EventId *string }
Represents user interaction event information sent using the PutEvents API.
type InvalidInputException ¶
type InvalidInputException struct { Message *string }
Provide a valid value for the field or parameter.
func (*InvalidInputException) Error ¶
func (e *InvalidInputException) Error() string
func (*InvalidInputException) ErrorCode ¶
func (e *InvalidInputException) ErrorCode() string
func (*InvalidInputException) ErrorFault ¶
func (e *InvalidInputException) ErrorFault() smithy.ErrorFault
func (*InvalidInputException) ErrorMessage ¶
func (e *InvalidInputException) ErrorMessage() string
func (*InvalidInputException) GetMessage ¶
func (e *InvalidInputException) GetMessage() string
func (*InvalidInputException) HasMessage ¶
func (e *InvalidInputException) HasMessage() bool
Source Files ¶
- Version
- v0.1.0
- Published
- Sep 29, 2020
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 6 hours ago –
Tools for package owners.