Class: Aws::Pinpoint::Types::Activity
- Inherits:
-
Struct
- Object
- Struct
- Aws::Pinpoint::Types::Activity
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-pinpoint/types.rb
Overview
When making an API call, you may pass Activity data as a hash:
{
conditional_split: {
condition: {
conditions: [
{
event_condition: {
dimensions: { # required
attributes: {
"__string" => {
attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
},
event_type: {
dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
metrics: {
"__string" => {
comparison_operator: "__string", # required
value: 1.0, # required
},
},
},
message_activity: "__string",
},
segment_condition: {
segment_id: "__string", # required
},
segment_dimensions: {
attributes: {
"__string" => {
attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
},
behavior: {
recency: {
duration: "HR_24", # required, accepts HR_24, DAY_7, DAY_14, DAY_30
recency_type: "ACTIVE", # required, accepts ACTIVE, INACTIVE
},
},
demographic: {
app_version: {
dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
channel: {
dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
device_type: {
dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
make: {
dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
model: {
dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
platform: {
dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
},
location: {
country: {
dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
gps_point: {
coordinates: { # required
latitude: 1.0, # required
longitude: 1.0, # required
},
range_in_kilometers: 1.0,
},
},
metrics: {
"__string" => {
comparison_operator: "__string", # required
value: 1.0, # required
},
},
user_attributes: {
"__string" => {
attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
},
},
},
],
operator: "ALL", # accepts ALL, ANY
},
evaluation_wait_time: {
wait_for: "__string",
wait_until: "__string",
},
false_activity: "__string",
true_activity: "__string",
},
description: "__string",
email: {
message_config: {
from_address: "__string",
},
next_activity: "__string",
template_name: "__string",
template_version: "__string",
},
holdout: {
next_activity: "__string",
percentage: 1, # required
},
multi_condition: {
branches: [
{
condition: {
event_condition: {
dimensions: { # required
attributes: {
"__string" => {
attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
},
event_type: {
dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
metrics: {
"__string" => {
comparison_operator: "__string", # required
value: 1.0, # required
},
},
},
message_activity: "__string",
},
segment_condition: {
segment_id: "__string", # required
},
segment_dimensions: {
attributes: {
"__string" => {
attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
},
behavior: {
recency: {
duration: "HR_24", # required, accepts HR_24, DAY_7, DAY_14, DAY_30
recency_type: "ACTIVE", # required, accepts ACTIVE, INACTIVE
},
},
demographic: {
app_version: {
dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
channel: {
dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
device_type: {
dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
make: {
dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
model: {
dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
platform: {
dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
},
location: {
country: {
dimension_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
gps_point: {
coordinates: { # required
latitude: 1.0, # required
longitude: 1.0, # required
},
range_in_kilometers: 1.0,
},
},
metrics: {
"__string" => {
comparison_operator: "__string", # required
value: 1.0, # required
},
},
user_attributes: {
"__string" => {
attribute_type: "INCLUSIVE", # accepts INCLUSIVE, EXCLUSIVE
values: ["__string"], # required
},
},
},
},
next_activity: "__string",
},
],
default_activity: "__string",
evaluation_wait_time: {
wait_for: "__string",
wait_until: "__string",
},
},
random_split: {
branches: [
{
next_activity: "__string",
percentage: 1,
},
],
},
wait: {
next_activity: "__string",
wait_time: {
wait_for: "__string",
wait_until: "__string",
},
},
}
Specifies the configuration and other settings for an activity in a journey.
Instance Attribute Summary collapse
-
#conditional_split ⇒ Types::ConditionalSplitActivity
The settings for a yes/no split activity.
-
#description ⇒ String
The custom description of the activity.
-
#email ⇒ Types::EmailMessageActivity
The settings for an email activity.
-
#holdout ⇒ Types::HoldoutActivity
The settings for a holdout activity.
-
#multi_condition ⇒ Types::MultiConditionalSplitActivity
The settings for a multivariate split activity.
-
#random_split ⇒ Types::RandomSplitActivity
The settings for a random split activity.
-
#wait ⇒ Types::WaitActivity
The settings for a wait activity.
Instance Attribute Details
#conditional_split ⇒ Types::ConditionalSplitActivity
The settings for a yes/no split activity. This type of activity sends participants down one of two paths in a journey, based on conditions that you specify.
1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 1516 class Activity < Struct.new( :conditional_split, :description, :email, :holdout, :multi_condition, :random_split, :wait) include Aws::Structure end |
#description ⇒ String
The custom description of the activity.
1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 1516 class Activity < Struct.new( :conditional_split, :description, :email, :holdout, :multi_condition, :random_split, :wait) include Aws::Structure end |
#email ⇒ Types::EmailMessageActivity
The settings for an email activity. This type of activity sends an email message to participants.
1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 1516 class Activity < Struct.new( :conditional_split, :description, :email, :holdout, :multi_condition, :random_split, :wait) include Aws::Structure end |
#holdout ⇒ Types::HoldoutActivity
The settings for a holdout activity. This type of activity stops a journey for a specified percentage of participants.
1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 1516 class Activity < Struct.new( :conditional_split, :description, :email, :holdout, :multi_condition, :random_split, :wait) include Aws::Structure end |
#multi_condition ⇒ Types::MultiConditionalSplitActivity
The settings for a multivariate split activity. This type of activity sends participants down one of as many as five paths (including a default Else path) in a journey, based on conditions that you specify.
1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 1516 class Activity < Struct.new( :conditional_split, :description, :email, :holdout, :multi_condition, :random_split, :wait) include Aws::Structure end |
#random_split ⇒ Types::RandomSplitActivity
The settings for a random split activity. This type of activity randomly sends specified percentages of participants down one of as many as five paths in a journey, based on conditions that you specify.
1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 1516 class Activity < Struct.new( :conditional_split, :description, :email, :holdout, :multi_condition, :random_split, :wait) include Aws::Structure end |
#wait ⇒ Types::WaitActivity
The settings for a wait activity. This type of activity waits for a certain amount of time or until a specific date and time before moving participants to the next activity in a journey.
1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 |
# File 'lib/aws-sdk-pinpoint/types.rb', line 1516 class Activity < Struct.new( :conditional_split, :description, :email, :holdout, :multi_condition, :random_split, :wait) include Aws::Structure end |