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

Class: Aws::Pinpoint::Types::RecencyDimension

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb

Overview

Note:

When making an API call, you may pass RecencyDimension data as a hash:

{
  duration: "HR_24", # accepts HR_24, DAY_7, DAY_14, DAY_30
  recency_type: "ACTIVE", # accepts ACTIVE, INACTIVE
}

Define how a segment based on recency of use.

Instance Attribute Summary collapse

Instance Attribute Details

#durationString

The length of time during which users have been active or inactive with your app. Valid values: HR_24, DAY_7, DAY_14, DAY_30

Returns:

  • (String)


5312
5313
5314
5315
5316
# File 'gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb', line 5312

class RecencyDimension < Struct.new(
  :duration,
  :recency_type)
  include Aws::Structure
end

#recency_typeString

The recency dimension type: ACTIVE - Users who have used your app within the specified duration are included in the segment. INACTIVE - Users who have not used your app within the specified duration are included in the segment.

Returns:

  • (String)


5312
5313
5314
5315
5316
# File 'gems/aws-sdk-pinpoint/lib/aws-sdk-pinpoint/types.rb', line 5312

class RecencyDimension < Struct.new(
  :duration,
  :recency_type)
  include Aws::Structure
end