aws-sdk-personalizeevents 1.5.0 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-personalizeevents.rb +3 -1
- data/lib/aws-sdk-personalizeevents/client.rb +22 -10
- data/lib/aws-sdk-personalizeevents/client_api.rb +13 -1
- data/lib/aws-sdk-personalizeevents/errors.rb +2 -0
- data/lib/aws-sdk-personalizeevents/resource.rb +3 -7
- data/lib/aws-sdk-personalizeevents/types.rb +53 -18
- metadata +6 -5
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
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -45,6 +47,6 @@ require_relative 'aws-sdk-personalizeevents/customizations'
|
|
45
47
|
# @service
|
46
48
|
module Aws::PersonalizeEvents
|
47
49
|
|
48
|
-
GEM_VERSION = '1.
|
50
|
+
GEM_VERSION = '1.10.0'
|
49
51
|
|
50
52
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
26
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
30
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
31
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
29
32
|
|
@@ -69,6 +72,7 @@ module Aws::PersonalizeEvents
|
|
69
72
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
70
73
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
71
74
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
72
76
|
add_plugin(Aws::Plugins::SignatureV4)
|
73
77
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
74
78
|
|
@@ -105,7 +109,7 @@ module Aws::PersonalizeEvents
|
|
105
109
|
# @option options [required, String] :region
|
106
110
|
# The AWS region to connect to. The configured `:region` is
|
107
111
|
# used to determine the service `:endpoint`. When not passed,
|
108
|
-
# a default `:region` is
|
112
|
+
# a default `:region` is searched for in the following locations:
|
109
113
|
#
|
110
114
|
# * `Aws.config[:region]`
|
111
115
|
# * `ENV['AWS_REGION']`
|
@@ -161,7 +165,7 @@ module Aws::PersonalizeEvents
|
|
161
165
|
# @option options [String] :endpoint
|
162
166
|
# The client endpoint is normally constructed from the `:region`
|
163
167
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be
|
168
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
165
169
|
#
|
166
170
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
171
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -176,7 +180,7 @@ module Aws::PersonalizeEvents
|
|
176
180
|
# requests fetching endpoints information. Defaults to 60 sec.
|
177
181
|
#
|
178
182
|
# @option options [Boolean] :endpoint_discovery (false)
|
179
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
183
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
180
184
|
#
|
181
185
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
182
186
|
# The log formatter.
|
@@ -269,8 +273,7 @@ module Aws::PersonalizeEvents
|
|
269
273
|
#
|
270
274
|
# @option options [Integer] :http_read_timeout (60) The default
|
271
275
|
# number of seconds to wait for response data. This value can
|
272
|
-
# safely be set
|
273
|
-
# per-request on the session yielded by {#session_for}.
|
276
|
+
# safely be set per-request on the session.
|
274
277
|
#
|
275
278
|
# @option options [Float] :http_idle_timeout (5) The number of
|
276
279
|
# seconds a connection is allowed to sit idle before it is
|
@@ -282,7 +285,7 @@ module Aws::PersonalizeEvents
|
|
282
285
|
# request body. This option has no effect unless the request has
|
283
286
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
284
287
|
# disables this behaviour. This value can safely be set per
|
285
|
-
# request on the session
|
288
|
+
# request on the session.
|
286
289
|
#
|
287
290
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
288
291
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -309,7 +312,8 @@ module Aws::PersonalizeEvents
|
|
309
312
|
|
310
313
|
# @!group API Operations
|
311
314
|
|
312
|
-
# Records user interaction event data.
|
315
|
+
# Records user interaction event data. For more information see
|
316
|
+
# event-record-api.
|
313
317
|
#
|
314
318
|
# @option params [required, String] :tracking_id
|
315
319
|
# The tracking ID for the event. The ID is generated by a call to the
|
@@ -323,7 +327,11 @@ module Aws::PersonalizeEvents
|
|
323
327
|
# The user associated with the event.
|
324
328
|
#
|
325
329
|
# @option params [required, String] :session_id
|
326
|
-
# 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.
|
327
335
|
#
|
328
336
|
# @option params [required, Array<Types::Event>] :event_list
|
329
337
|
# A list of event data from the session.
|
@@ -340,8 +348,12 @@ module Aws::PersonalizeEvents
|
|
340
348
|
# {
|
341
349
|
# event_id: "StringType",
|
342
350
|
# event_type: "StringType", # required
|
343
|
-
#
|
351
|
+
# event_value: 1.0,
|
352
|
+
# item_id: "ItemId",
|
353
|
+
# properties: "EventPropertiesJSON",
|
344
354
|
# sent_at: Time.now, # required
|
355
|
+
# recommendation_id: "RecommendationId",
|
356
|
+
# impression: ["ItemId"],
|
345
357
|
# },
|
346
358
|
# ],
|
347
359
|
# })
|
@@ -368,7 +380,7 @@ module Aws::PersonalizeEvents
|
|
368
380
|
params: params,
|
369
381
|
config: config)
|
370
382
|
context[:gem_name] = 'aws-sdk-personalizeevents'
|
371
|
-
context[:gem_version] = '1.
|
383
|
+
context[:gem_version] = '1.10.0'
|
372
384
|
Seahorse::Client::Request.new(handlers, context)
|
373
385
|
end
|
374
386
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -16,19 +18,29 @@ module Aws::PersonalizeEvents
|
|
16
18
|
Event = Shapes::StructureShape.new(name: 'Event')
|
17
19
|
EventList = Shapes::ListShape.new(name: 'EventList')
|
18
20
|
EventPropertiesJSON = Shapes::StringShape.new(name: 'EventPropertiesJSON')
|
21
|
+
FloatType = Shapes::FloatShape.new(name: 'FloatType')
|
22
|
+
Impression = Shapes::ListShape.new(name: 'Impression')
|
19
23
|
InvalidInputException = Shapes::StructureShape.new(name: 'InvalidInputException')
|
24
|
+
ItemId = Shapes::StringShape.new(name: 'ItemId')
|
20
25
|
PutEventsRequest = Shapes::StructureShape.new(name: 'PutEventsRequest')
|
26
|
+
RecommendationId = Shapes::StringShape.new(name: 'RecommendationId')
|
21
27
|
StringType = Shapes::StringShape.new(name: 'StringType')
|
22
28
|
UserId = Shapes::StringShape.new(name: 'UserId')
|
23
29
|
|
24
30
|
Event.add_member(:event_id, Shapes::ShapeRef.new(shape: StringType, location_name: "eventId"))
|
25
31
|
Event.add_member(:event_type, Shapes::ShapeRef.new(shape: StringType, required: true, location_name: "eventType"))
|
26
|
-
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}))
|
27
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"))
|
28
38
|
Event.struct_class = Types::Event
|
29
39
|
|
30
40
|
EventList.member = Shapes::ShapeRef.new(shape: Event)
|
31
41
|
|
42
|
+
Impression.member = Shapes::ShapeRef.new(shape: ItemId)
|
43
|
+
|
32
44
|
InvalidInputException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
|
33
45
|
InvalidInputException.struct_class = Types::InvalidInputException
|
34
46
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -6,13 +8,7 @@
|
|
6
8
|
# WARNING ABOUT GENERATED CODE
|
7
9
|
|
8
10
|
module Aws::PersonalizeEvents
|
9
|
-
|
10
|
-
# To create a resource object:
|
11
|
-
# resource = Aws::PersonalizeEvents::Resource.new(region: 'us-west-2')
|
12
|
-
# You can supply a client object with custom configuration that will be used for all resource operations.
|
13
|
-
# If you do not pass +:client+, a default client will be constructed.
|
14
|
-
# client = Aws::PersonalizeEvents::Client.new(region: 'us-west-2')
|
15
|
-
# resource = Aws::PersonalizeEvents::Resource.new(client: client)
|
11
|
+
|
16
12
|
class Resource
|
17
13
|
|
18
14
|
# @param options ({})
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -17,8 +19,12 @@ module Aws::PersonalizeEvents
|
|
17
19
|
# {
|
18
20
|
# event_id: "StringType",
|
19
21
|
# event_type: "StringType", # required
|
20
|
-
#
|
22
|
+
# event_value: 1.0,
|
23
|
+
# item_id: "ItemId",
|
24
|
+
# properties: "EventPropertiesJSON",
|
21
25
|
# sent_at: Time.now, # required
|
26
|
+
# recommendation_id: "RecommendationId",
|
27
|
+
# impression: ["ItemId"],
|
22
28
|
# }
|
23
29
|
#
|
24
30
|
# @!attribute [rw] event_id
|
@@ -34,39 +40,58 @@ module Aws::PersonalizeEvents
|
|
34
40
|
# field of the Interactions schema.
|
35
41
|
# @return [String]
|
36
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
|
+
#
|
37
53
|
# @!attribute [rw] properties
|
38
54
|
# A string map of event-specific data that you might choose to record.
|
39
|
-
# For example, if a user rates a movie on your site,
|
40
|
-
#
|
41
|
-
# 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.
|
42
58
|
#
|
43
59
|
# Each item in the map consists of a key-value pair. For example,
|
44
60
|
#
|
45
|
-
# `\{"
|
46
|
-
#
|
47
|
-
# `\{"itemId": "movie2", "eventValue": "4.5"\}`
|
48
|
-
#
|
49
|
-
# `\{"itemId": "movie3", "eventValue": "3", "numberOfRatings": "12"\}`
|
61
|
+
# `\{"numberOfRatings": "12"\}`
|
50
62
|
#
|
51
63
|
# The keys use camel case names that match the fields in the
|
52
|
-
# Interactions schema.
|
53
|
-
#
|
54
|
-
#
|
55
|
-
# rating. The `numberOfRatings` would match the
|
56
|
-
# '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.
|
57
67
|
# @return [String]
|
58
68
|
#
|
59
69
|
# @!attribute [rw] sent_at
|
60
|
-
# The timestamp on the client side when the event
|
70
|
+
# The timestamp (in Unix time) on the client side when the event
|
71
|
+
# occurred.
|
61
72
|
# @return [Time]
|
62
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
|
+
#
|
63
83
|
# @see http://docs.aws.amazon.com/goto/WebAPI/personalize-events-2018-03-22/Event AWS API Documentation
|
64
84
|
#
|
65
85
|
class Event < Struct.new(
|
66
86
|
:event_id,
|
67
87
|
:event_type,
|
88
|
+
:event_value,
|
89
|
+
:item_id,
|
68
90
|
:properties,
|
69
|
-
:sent_at
|
91
|
+
:sent_at,
|
92
|
+
:recommendation_id,
|
93
|
+
:impression)
|
94
|
+
SENSITIVE = []
|
70
95
|
include Aws::Structure
|
71
96
|
end
|
72
97
|
|
@@ -79,6 +104,7 @@ module Aws::PersonalizeEvents
|
|
79
104
|
#
|
80
105
|
class InvalidInputException < Struct.new(
|
81
106
|
:message)
|
107
|
+
SENSITIVE = []
|
82
108
|
include Aws::Structure
|
83
109
|
end
|
84
110
|
|
@@ -93,8 +119,12 @@ module Aws::PersonalizeEvents
|
|
93
119
|
# {
|
94
120
|
# event_id: "StringType",
|
95
121
|
# event_type: "StringType", # required
|
96
|
-
#
|
122
|
+
# event_value: 1.0,
|
123
|
+
# item_id: "ItemId",
|
124
|
+
# properties: "EventPropertiesJSON",
|
97
125
|
# sent_at: Time.now, # required
|
126
|
+
# recommendation_id: "RecommendationId",
|
127
|
+
# impression: ["ItemId"],
|
98
128
|
# },
|
99
129
|
# ],
|
100
130
|
# }
|
@@ -113,7 +143,11 @@ module Aws::PersonalizeEvents
|
|
113
143
|
# @return [String]
|
114
144
|
#
|
115
145
|
# @!attribute [rw] session_id
|
116
|
-
# 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.
|
117
151
|
# @return [String]
|
118
152
|
#
|
119
153
|
# @!attribute [rw] event_list
|
@@ -127,6 +161,7 @@ module Aws::PersonalizeEvents
|
|
127
161
|
:user_id,
|
128
162
|
:session_id,
|
129
163
|
:event_list)
|
164
|
+
SENSITIVE = []
|
130
165
|
include Aws::Structure
|
131
166
|
end
|
132
167
|
|
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-
|
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
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.99.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.99.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,7 +80,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
|
-
|
83
|
+
rubyforge_project:
|
84
|
+
rubygems_version: 2.7.6.2
|
84
85
|
signing_key:
|
85
86
|
specification_version: 4
|
86
87
|
summary: AWS SDK for Ruby - Amazon Personalize Events
|