You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Pinpoint::Types::Event

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing Event as input to an Aws::Client method, you can use a vanilla Hash:

{
  app_package_name: "__string",
  app_title: "__string",
  app_version_code: "__string",
  attributes: {
    "__string" => "__string",
  },
  client_sdk_version: "__string",
  event_type: "__string", # required
  metrics: {
    "__string" => 1.0,
  },
  sdk_name: "__string",
  session: {
    duration: 1,
    id: "__string", # required
    start_timestamp: "__string", # required
    stop_timestamp: "__string",
  },
  timestamp: "__string", # required
}

Specifies information about an event that reports data to Amazon Pinpoint.

Instance Attribute Summary collapse

Instance Attribute Details

#app_package_name ⇒ String

The package name of the app that\'s recording the event.

Returns:

  • (String) —

    The package name of the app that\'s recording the event.

#app_title ⇒ String

The title of the app that\'s recording the event.

Returns:

  • (String) —

    The title of the app that\'s recording the event.

#app_version_code ⇒ String

The version number of the app that\'s recording the event.

Returns:

  • (String) —

    The version number of the app that\'s recording the event.

#attributes ⇒ Hash<String,String>

One or more custom attributes that are associated with the event.

Returns:

  • (Hash<String,String>) —

    One or more custom attributes that are associated with the event.

#client_sdk_version ⇒ String

The version of the SDK that\'s running on the client device.

Returns:

  • (String) —

    The version of the SDK that\'s running on the client device.

#event_type ⇒ String

The name of the event.

Returns:

  • (String) —

    The name of the event.

#metrics ⇒ Hash<String,Float>

One or more custom metrics that are associated with the event.

Returns:

  • (Hash<String,Float>) —

    One or more custom metrics that are associated with the event.

#sdk_name ⇒ String

The name of the SDK that\'s being used to record the event.

Returns:

  • (String) —

    The name of the SDK that\'s being used to record the event.

#session ⇒ Types::Session

Information about the session in which the event occurred.

Returns:

  • (Types::Session) —

    Information about the session in which the event occurred.

#timestamp ⇒ String

The date and time, in ISO 8601 format, when the event occurred.

Returns:

  • (String) —

    The date and time, in ISO 8601 format, when the event occurred.