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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0c509b86b648239c3070225e0757262480f0a3623a887e67cbe78ce8104a037
|
4
|
+
data.tar.gz: eec0f6099ad0d067e0c743ee9d4edc10e58ec8638596ee8ef482d696ede3b1d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ff73826cba180a4dba7e048bba530cb6ed8301e904fa846c01dc9a215188419f0ee538521e65da46d6421eec489ff60ab4821e95f21dd6aab08590227700159
|
7
|
+
data.tar.gz: 05d5da709ea58dfa2ca88a35b307a9941a6dc6c2aa4a706250184e04baff156b505daeaf6674ec72143d573c1ba454b48e1ef78af4b3c1183bc989eb9b897fcf
|
@@ -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
|
-
#
|
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.
|
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(:
|
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
|
-
#
|
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,
|
42
|
-
#
|
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
|
-
# `\{"
|
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.
|
55
|
-
#
|
56
|
-
#
|
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
|
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
|
-
#
|
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.
|
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
|
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
|