Class: Aws::Pinpoint::Types::Event
- Inherits:
-
Struct
- Object
- Struct
- Aws::Pinpoint::Types::Event
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-pinpoint/types.rb
Overview
When making an API call, you may pass Event data as a hash:
{
attributes: {
"__string" => "__string",
},
client_sdk_version: "__string",
event_type: "__string",
metrics: {
"__string" => 1.0,
},
session: {
duration: 1,
id: "__string",
start_timestamp: "__string",
stop_timestamp: "__string",
},
timestamp: "__string",
}
Model for creating or updating events.
Instance Attribute Summary collapse
-
#attributes ⇒ Hash<String,String>
Custom attributes that are associated with the event you’re adding or updating.
-
#client_sdk_version ⇒ String
The version of the SDK that’s running on the client device.
-
#event_type ⇒ String
The name of the custom event that you’re recording.
-
#metrics ⇒ Hash<String,Float>
Custom metrics related to the event.
-
#session ⇒ Types::Session
Information about the session in which the event occurred.
-
#timestamp ⇒ String
The date and time when the event occurred, in ISO 8601 format.
Instance Attribute Details
#attributes ⇒ Hash<String,String>
Custom attributes that are associated with the event you’re adding or updating.
4226 4227 4228 4229 4230 4231 4232 4233 4234 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 4226 class Event < Struct.new( :attributes, :client_sdk_version, :event_type, :metrics, :session, :timestamp) include Aws::Structure end |
#client_sdk_version ⇒ String
The version of the SDK that’s running on the client device.
4226 4227 4228 4229 4230 4231 4232 4233 4234 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 4226 class Event < Struct.new( :attributes, :client_sdk_version, :event_type, :metrics, :session, :timestamp) include Aws::Structure end |
#event_type ⇒ String
The name of the custom event that you’re recording.
4226 4227 4228 4229 4230 4231 4232 4233 4234 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 4226 class Event < Struct.new( :attributes, :client_sdk_version, :event_type, :metrics, :session, :timestamp) include Aws::Structure end |
#metrics ⇒ Hash<String,Float>
Custom metrics related to the event.
4226 4227 4228 4229 4230 4231 4232 4233 4234 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 4226 class Event < Struct.new( :attributes, :client_sdk_version, :event_type, :metrics, :session, :timestamp) include Aws::Structure end |
#session ⇒ Types::Session
Information about the session in which the event occurred.
4226 4227 4228 4229 4230 4231 4232 4233 4234 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 4226 class Event < Struct.new( :attributes, :client_sdk_version, :event_type, :metrics, :session, :timestamp) include Aws::Structure end |
#timestamp ⇒ String
The date and time when the event occurred, in ISO 8601 format.
4226 4227 4228 4229 4230 4231 4232 4233 4234 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 4226 class Event < Struct.new( :attributes, :client_sdk_version, :event_type, :metrics, :session, :timestamp) include Aws::Structure end |