aws-sdk-personalizeevents 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6ef8b28cd60fa25a86092bfc88287b17184ef557e1ca297fb48843d23aa2341
4
- data.tar.gz: a18efdcf7c1723a0ab8b6b88a5ec34b1920dc4c5b842feebd867451ea08386ea
3
+ metadata.gz: b0c509b86b648239c3070225e0757262480f0a3623a887e67cbe78ce8104a037
4
+ data.tar.gz: eec0f6099ad0d067e0c743ee9d4edc10e58ec8638596ee8ef482d696ede3b1d5
5
5
  SHA512:
6
- metadata.gz: 2b074330a368b168c691264929675a9270be491135aa0c89b0c7fe42c10a6fb7b3f256f1bff0830e6cfbd848d54f6f8ccafa4239cd54e96e9db3129f2d256b7f
7
- data.tar.gz: 9f5d4d280e75995a37c1104a90cb68f9c361871798e3308262f163402687e6eca4f99e6140126f0ac4f66ef0493e3844373e5bf24f91ed05d7c6e04d5050e55f
6
+ metadata.gz: 8ff73826cba180a4dba7e048bba530cb6ed8301e904fa846c01dc9a215188419f0ee538521e65da46d6421eec489ff60ab4821e95f21dd6aab08590227700159
7
+ data.tar.gz: 05d5da709ea58dfa2ca88a35b307a9941a6dc6c2aa4a706250184e04baff156b505daeaf6674ec72143d573c1ba454b48e1ef78af4b3c1183bc989eb9b897fcf
@@ -47,6 +47,6 @@ require_relative 'aws-sdk-personalizeevents/customizations'
47
47
  # @service
48
48
  module Aws::PersonalizeEvents
49
49
 
50
- GEM_VERSION = '1.9.0'
50
+ GEM_VERSION = '1.10.0'
51
51
 
52
52
  end
@@ -312,7 +312,8 @@ module Aws::PersonalizeEvents
312
312
 
313
313
  # @!group API Operations
314
314
 
315
- # Records user interaction event data.
315
+ # Records user interaction event data. For more information see
316
+ # event-record-api.
316
317
  #
317
318
  # @option params [required, String] :tracking_id
318
319
  # The tracking ID for the event. The ID is generated by a call to the
@@ -326,7 +327,11 @@ module Aws::PersonalizeEvents
326
327
  # The user associated with the event.
327
328
  #
328
329
  # @option params [required, String] :session_id
329
- # The session ID associated with the user's visit.
330
+ # The session ID associated with the user's visit. Your application
331
+ # generates the sessionId when a user first visits your website or uses
332
+ # your application. Amazon Personalize uses the sessionId to associate
333
+ # events with the user before they log in. For more information see
334
+ # event-record-api.
330
335
  #
331
336
  # @option params [required, Array<Types::Event>] :event_list
332
337
  # A list of event data from the session.
@@ -343,8 +348,12 @@ module Aws::PersonalizeEvents
343
348
  # {
344
349
  # event_id: "StringType",
345
350
  # event_type: "StringType", # required
346
- # properties: "EventPropertiesJSON", # required
351
+ # event_value: 1.0,
352
+ # item_id: "ItemId",
353
+ # properties: "EventPropertiesJSON",
347
354
  # sent_at: Time.now, # required
355
+ # recommendation_id: "RecommendationId",
356
+ # impression: ["ItemId"],
348
357
  # },
349
358
  # ],
350
359
  # })
@@ -371,7 +380,7 @@ module Aws::PersonalizeEvents
371
380
  params: params,
372
381
  config: config)
373
382
  context[:gem_name] = 'aws-sdk-personalizeevents'
374
- context[:gem_version] = '1.9.0'
383
+ context[:gem_version] = '1.10.0'
375
384
  Seahorse::Client::Request.new(handlers, context)
376
385
  end
377
386
 
@@ -18,19 +18,29 @@ module Aws::PersonalizeEvents
18
18
  Event = Shapes::StructureShape.new(name: 'Event')
19
19
  EventList = Shapes::ListShape.new(name: 'EventList')
20
20
  EventPropertiesJSON = Shapes::StringShape.new(name: 'EventPropertiesJSON')
21
+ FloatType = Shapes::FloatShape.new(name: 'FloatType')
22
+ Impression = Shapes::ListShape.new(name: 'Impression')
21
23
  InvalidInputException = Shapes::StructureShape.new(name: 'InvalidInputException')
24
+ ItemId = Shapes::StringShape.new(name: 'ItemId')
22
25
  PutEventsRequest = Shapes::StructureShape.new(name: 'PutEventsRequest')
26
+ RecommendationId = Shapes::StringShape.new(name: 'RecommendationId')
23
27
  StringType = Shapes::StringShape.new(name: 'StringType')
24
28
  UserId = Shapes::StringShape.new(name: 'UserId')
25
29
 
26
30
  Event.add_member(:event_id, Shapes::ShapeRef.new(shape: StringType, location_name: "eventId"))
27
31
  Event.add_member(:event_type, Shapes::ShapeRef.new(shape: StringType, required: true, location_name: "eventType"))
28
- Event.add_member(:properties, Shapes::ShapeRef.new(shape: EventPropertiesJSON, required: true, location_name: "properties", metadata: {"jsonvalue"=>true}))
32
+ Event.add_member(:event_value, Shapes::ShapeRef.new(shape: FloatType, location_name: "eventValue"))
33
+ Event.add_member(:item_id, Shapes::ShapeRef.new(shape: ItemId, location_name: "itemId"))
34
+ Event.add_member(:properties, Shapes::ShapeRef.new(shape: EventPropertiesJSON, location_name: "properties", metadata: {"jsonvalue"=>true}))
29
35
  Event.add_member(:sent_at, Shapes::ShapeRef.new(shape: Date, required: true, location_name: "sentAt"))
36
+ Event.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: RecommendationId, location_name: "recommendationId"))
37
+ Event.add_member(:impression, Shapes::ShapeRef.new(shape: Impression, location_name: "impression"))
30
38
  Event.struct_class = Types::Event
31
39
 
32
40
  EventList.member = Shapes::ShapeRef.new(shape: Event)
33
41
 
42
+ Impression.member = Shapes::ShapeRef.new(shape: ItemId)
43
+
34
44
  InvalidInputException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
35
45
  InvalidInputException.struct_class = Types::InvalidInputException
36
46
 
@@ -19,8 +19,12 @@ module Aws::PersonalizeEvents
19
19
  # {
20
20
  # event_id: "StringType",
21
21
  # event_type: "StringType", # required
22
- # properties: "EventPropertiesJSON", # required
22
+ # event_value: 1.0,
23
+ # item_id: "ItemId",
24
+ # properties: "EventPropertiesJSON",
23
25
  # sent_at: Time.now, # required
26
+ # recommendation_id: "RecommendationId",
27
+ # impression: ["ItemId"],
24
28
  # }
25
29
  #
26
30
  # @!attribute [rw] event_id
@@ -36,39 +40,57 @@ module Aws::PersonalizeEvents
36
40
  # field of the Interactions schema.
37
41
  # @return [String]
38
42
  #
43
+ # @!attribute [rw] event_value
44
+ # The event value that corresponds to the `EVENT_VALUE` field of the
45
+ # Interactions schema.
46
+ # @return [Float]
47
+ #
48
+ # @!attribute [rw] item_id
49
+ # The item ID key that corresponds to the `ITEM_ID` field of the
50
+ # Interactions schema.
51
+ # @return [String]
52
+ #
39
53
  # @!attribute [rw] properties
40
54
  # A string map of event-specific data that you might choose to record.
41
- # For example, if a user rates a movie on your site, you might send
42
- # the movie ID and rating, and the number of movie ratings made by the
43
- # user.
55
+ # For example, if a user rates a movie on your site, other than movie
56
+ # ID (`itemId`) and rating (`eventValue`) , you might also send the
57
+ # number of movie ratings made by the user.
44
58
  #
45
59
  # Each item in the map consists of a key-value pair. For example,
46
60
  #
47
- # `\{"itemId": "movie1"\}`
48
- #
49
- # `\{"itemId": "movie2", "eventValue": "4.5"\}`
50
- #
51
- # `\{"itemId": "movie3", "eventValue": "3", "numberOfRatings": "12"\}`
61
+ # `\{"numberOfRatings": "12"\}`
52
62
  #
53
63
  # The keys use camel case names that match the fields in the
54
- # Interactions schema. The `itemId` and `eventValue` keys correspond
55
- # to the `ITEM_ID` and `EVENT_VALUE` fields. In the above example, the
56
- # `eventType` might be 'MovieRating' with `eventValue` being the
57
- # rating. The `numberOfRatings` would match the
58
- # 'NUMBER\_OF\_RATINGS' field defined in the Interactions schema.
64
+ # Interactions schema. In the above example, the `numberOfRatings`
65
+ # would match the 'NUMBER\_OF\_RATINGS' field defined in the
66
+ # Interactions schema.
59
67
  # @return [String]
60
68
  #
61
69
  # @!attribute [rw] sent_at
62
- # The timestamp on the client side when the event occurred.
70
+ # The timestamp (in Unix time) on the client side when the event
71
+ # occurred.
63
72
  # @return [Time]
64
73
  #
74
+ # @!attribute [rw] recommendation_id
75
+ # The ID of the recommendation.
76
+ # @return [String]
77
+ #
78
+ # @!attribute [rw] impression
79
+ # A list of item IDs that represents the sequence of items you have
80
+ # shown the user. For example, `["itemId1", "itemId2", "itemId3"]`.
81
+ # @return [Array<String>]
82
+ #
65
83
  # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/Event AWS API Documentation
66
84
  #
67
85
  class Event < Struct.new(
68
86
  :event_id,
69
87
  :event_type,
88
+ :event_value,
89
+ :item_id,
70
90
  :properties,
71
- :sent_at)
91
+ :sent_at,
92
+ :recommendation_id,
93
+ :impression)
72
94
  SENSITIVE = []
73
95
  include Aws::Structure
74
96
  end
@@ -97,8 +119,12 @@ module Aws::PersonalizeEvents
97
119
  # {
98
120
  # event_id: "StringType",
99
121
  # event_type: "StringType", # required
100
- # properties: "EventPropertiesJSON", # required
122
+ # event_value: 1.0,
123
+ # item_id: "ItemId",
124
+ # properties: "EventPropertiesJSON",
101
125
  # sent_at: Time.now, # required
126
+ # recommendation_id: "RecommendationId",
127
+ # impression: ["ItemId"],
102
128
  # },
103
129
  # ],
104
130
  # }
@@ -117,7 +143,11 @@ module Aws::PersonalizeEvents
117
143
  # @return [String]
118
144
  #
119
145
  # @!attribute [rw] session_id
120
- # The session ID associated with the user's visit.
146
+ # The session ID associated with the user's visit. Your application
147
+ # generates the sessionId when a user first visits your website or
148
+ # uses your application. Amazon Personalize uses the sessionId to
149
+ # associate events with the user before they log in. For more
150
+ # information see event-record-api.
121
151
  # @return [String]
122
152
  #
123
153
  # @!attribute [rw] event_list
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-personalizeevents
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-23 00:00:00.000000000 Z
11
+ date: 2020-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core