aws-sdk-personalizeevents 1.28.0 → 1.29.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-personalizeevents/client.rb +4 -1
- data/lib/aws-sdk-personalizeevents/client_api.rb +6 -0
- data/lib/aws-sdk-personalizeevents/types.rb +69 -5
- data/lib/aws-sdk-personalizeevents.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8735f0d987228ae5e853e3729d7266a48d19360ac596c036ddb56920ad3955a5
|
4
|
+
data.tar.gz: 2cd912a21f0971aef32ef62b8f3d989fdb57d447b9553b41fb6f1933284fff80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5811a90d12f8ec89032627cf3620add3eb82fc6020aae1714f897028af0352c2e18a1c2227acdc74a4b60999e1b1be1d2f6c0c4cbc55e58328b78ae2cece70f4
|
7
|
+
data.tar.gz: 20a2bf8275b3e148c02bb9b310ac8068f858f26eec83e4f1064e83dc1c819db5995631d711a45533314fb6221e10935e319bb7c086a27284372df596a84011b2
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.29.0
|
@@ -418,6 +418,9 @@ module Aws::PersonalizeEvents
|
|
418
418
|
# sent_at: Time.now, # required
|
419
419
|
# recommendation_id: "RecommendationId",
|
420
420
|
# impression: ["ItemId"],
|
421
|
+
# metric_attribution: {
|
422
|
+
# event_attribution_source: "EventAttributionSource", # required
|
423
|
+
# },
|
421
424
|
# },
|
422
425
|
# ],
|
423
426
|
# })
|
@@ -518,7 +521,7 @@ module Aws::PersonalizeEvents
|
|
518
521
|
params: params,
|
519
522
|
config: config)
|
520
523
|
context[:gem_name] = 'aws-sdk-personalizeevents'
|
521
|
-
context[:gem_version] = '1.
|
524
|
+
context[:gem_version] = '1.29.0'
|
522
525
|
Seahorse::Client::Request.new(handlers, context)
|
523
526
|
end
|
524
527
|
|
@@ -17,6 +17,7 @@ module Aws::PersonalizeEvents
|
|
17
17
|
Date = Shapes::TimestampShape.new(name: 'Date')
|
18
18
|
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
19
19
|
Event = Shapes::StructureShape.new(name: 'Event')
|
20
|
+
EventAttributionSource = Shapes::StringShape.new(name: 'EventAttributionSource')
|
20
21
|
EventList = Shapes::ListShape.new(name: 'EventList')
|
21
22
|
EventPropertiesJSON = Shapes::StringShape.new(name: 'EventPropertiesJSON')
|
22
23
|
FloatType = Shapes::FloatShape.new(name: 'FloatType')
|
@@ -26,6 +27,7 @@ module Aws::PersonalizeEvents
|
|
26
27
|
ItemId = Shapes::StringShape.new(name: 'ItemId')
|
27
28
|
ItemList = Shapes::ListShape.new(name: 'ItemList')
|
28
29
|
ItemProperties = Shapes::StringShape.new(name: 'ItemProperties')
|
30
|
+
MetricAttribution = Shapes::StructureShape.new(name: 'MetricAttribution')
|
29
31
|
PutEventsRequest = Shapes::StructureShape.new(name: 'PutEventsRequest')
|
30
32
|
PutItemsRequest = Shapes::StructureShape.new(name: 'PutItemsRequest')
|
31
33
|
PutUsersRequest = Shapes::StructureShape.new(name: 'PutUsersRequest')
|
@@ -46,6 +48,7 @@ module Aws::PersonalizeEvents
|
|
46
48
|
Event.add_member(:sent_at, Shapes::ShapeRef.new(shape: Date, required: true, location_name: "sentAt"))
|
47
49
|
Event.add_member(:recommendation_id, Shapes::ShapeRef.new(shape: RecommendationId, location_name: "recommendationId"))
|
48
50
|
Event.add_member(:impression, Shapes::ShapeRef.new(shape: Impression, location_name: "impression"))
|
51
|
+
Event.add_member(:metric_attribution, Shapes::ShapeRef.new(shape: MetricAttribution, location_name: "metricAttribution"))
|
49
52
|
Event.struct_class = Types::Event
|
50
53
|
|
51
54
|
EventList.member = Shapes::ShapeRef.new(shape: Event)
|
@@ -61,6 +64,9 @@ module Aws::PersonalizeEvents
|
|
61
64
|
|
62
65
|
ItemList.member = Shapes::ShapeRef.new(shape: Item)
|
63
66
|
|
67
|
+
MetricAttribution.add_member(:event_attribution_source, Shapes::ShapeRef.new(shape: EventAttributionSource, required: true, location_name: "eventAttributionSource"))
|
68
|
+
MetricAttribution.struct_class = Types::MetricAttribution
|
69
|
+
|
64
70
|
PutEventsRequest.add_member(:tracking_id, Shapes::ShapeRef.new(shape: StringType, required: true, location_name: "trackingId"))
|
65
71
|
PutEventsRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, location_name: "userId"))
|
66
72
|
PutEventsRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: StringType, required: true, location_name: "sessionId"))
|
@@ -25,6 +25,9 @@ module Aws::PersonalizeEvents
|
|
25
25
|
# sent_at: Time.now, # required
|
26
26
|
# recommendation_id: "RecommendationId",
|
27
27
|
# impression: ["ItemId"],
|
28
|
+
# metric_attribution: {
|
29
|
+
# event_attribution_source: "EventAttributionSource", # required
|
30
|
+
# },
|
28
31
|
# }
|
29
32
|
#
|
30
33
|
# @!attribute [rw] event_id
|
@@ -73,14 +76,44 @@ module Aws::PersonalizeEvents
|
|
73
76
|
# @return [Time]
|
74
77
|
#
|
75
78
|
# @!attribute [rw] recommendation_id
|
76
|
-
# The ID of the
|
79
|
+
# The ID of the list of recommendations that contains the item the
|
80
|
+
# user interacted with. Provide a `recommendationId` to have Amazon
|
81
|
+
# Personalize implicitly record the recommendations you show your user
|
82
|
+
# as impressions data. Or provide a `recommendationId` if you use a
|
83
|
+
# metric attribution to measure the impact of recommendations.
|
84
|
+
#
|
85
|
+
# For more information on recording impressions data, see [Recording
|
86
|
+
# impressions data][1]. For more information on creating a metric
|
87
|
+
# attribution see [Measuring impact of recommendations][2].
|
88
|
+
#
|
89
|
+
#
|
90
|
+
#
|
91
|
+
# [1]: https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html#putevents-including-impressions-data
|
92
|
+
# [2]: https://docs.aws.amazon.com/personalize/latest/dg/measuring-recommendation-impact.html
|
77
93
|
# @return [String]
|
78
94
|
#
|
79
95
|
# @!attribute [rw] impression
|
80
96
|
# A list of item IDs that represents the sequence of items you have
|
81
97
|
# shown the user. For example, `["itemId1", "itemId2", "itemId3"]`.
|
98
|
+
# Provide a list of items to manually record impressions data for an
|
99
|
+
# event. For more information on recording impressions data, see
|
100
|
+
# [Recording impressions data][1].
|
101
|
+
#
|
102
|
+
#
|
103
|
+
#
|
104
|
+
# [1]: https://docs.aws.amazon.com/personalize/latest/dg/recording-events.html#putevents-including-impressions-data
|
82
105
|
# @return [Array<String>]
|
83
106
|
#
|
107
|
+
# @!attribute [rw] metric_attribution
|
108
|
+
# Contains information about the metric attribution associated with an
|
109
|
+
# event. For more information about metric attributions, see
|
110
|
+
# [Measuring impact of recommendations][1].
|
111
|
+
#
|
112
|
+
#
|
113
|
+
#
|
114
|
+
# [1]: https://docs.aws.amazon.com/personalize/latest/dg/measuring-recommendation-impact.html
|
115
|
+
# @return [Types::MetricAttribution]
|
116
|
+
#
|
84
117
|
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/Event AWS API Documentation
|
85
118
|
#
|
86
119
|
class Event < Struct.new(
|
@@ -91,8 +124,9 @@ module Aws::PersonalizeEvents
|
|
91
124
|
:properties,
|
92
125
|
:sent_at,
|
93
126
|
:recommendation_id,
|
94
|
-
:impression
|
95
|
-
|
127
|
+
:impression,
|
128
|
+
:metric_attribution)
|
129
|
+
SENSITIVE = [:item_id, :properties]
|
96
130
|
include Aws::Structure
|
97
131
|
end
|
98
132
|
|
@@ -147,6 +181,33 @@ module Aws::PersonalizeEvents
|
|
147
181
|
class Item < Struct.new(
|
148
182
|
:item_id,
|
149
183
|
:properties)
|
184
|
+
SENSITIVE = [:properties]
|
185
|
+
include Aws::Structure
|
186
|
+
end
|
187
|
+
|
188
|
+
# Contains information about a metric attribution associated with an
|
189
|
+
# event. For more information about metric attributions, see [Measuring
|
190
|
+
# impact of recommendations][1].
|
191
|
+
#
|
192
|
+
#
|
193
|
+
#
|
194
|
+
# [1]: https://docs.aws.amazon.com/personalize/latest/dg/measuring-recommendation-impact.html
|
195
|
+
#
|
196
|
+
# @note When making an API call, you may pass MetricAttribution
|
197
|
+
# data as a hash:
|
198
|
+
#
|
199
|
+
# {
|
200
|
+
# event_attribution_source: "EventAttributionSource", # required
|
201
|
+
# }
|
202
|
+
#
|
203
|
+
# @!attribute [rw] event_attribution_source
|
204
|
+
# The source of the event, such as a third party.
|
205
|
+
# @return [String]
|
206
|
+
#
|
207
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/MetricAttribution AWS API Documentation
|
208
|
+
#
|
209
|
+
class MetricAttribution < Struct.new(
|
210
|
+
:event_attribution_source)
|
150
211
|
SENSITIVE = []
|
151
212
|
include Aws::Structure
|
152
213
|
end
|
@@ -168,6 +229,9 @@ module Aws::PersonalizeEvents
|
|
168
229
|
# sent_at: Time.now, # required
|
169
230
|
# recommendation_id: "RecommendationId",
|
170
231
|
# impression: ["ItemId"],
|
232
|
+
# metric_attribution: {
|
233
|
+
# event_attribution_source: "EventAttributionSource", # required
|
234
|
+
# },
|
171
235
|
# },
|
172
236
|
# ],
|
173
237
|
# }
|
@@ -208,7 +272,7 @@ module Aws::PersonalizeEvents
|
|
208
272
|
:user_id,
|
209
273
|
:session_id,
|
210
274
|
:event_list)
|
211
|
-
SENSITIVE = []
|
275
|
+
SENSITIVE = [:user_id]
|
212
276
|
include Aws::Structure
|
213
277
|
end
|
214
278
|
|
@@ -338,7 +402,7 @@ module Aws::PersonalizeEvents
|
|
338
402
|
class User < Struct.new(
|
339
403
|
:user_id,
|
340
404
|
:properties)
|
341
|
-
SENSITIVE = []
|
405
|
+
SENSITIVE = [:properties]
|
342
406
|
include Aws::Structure
|
343
407
|
end
|
344
408
|
|
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.29.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: 2022-
|
11
|
+
date: 2022-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|