Skip to main content

journey_execution_activity_metrics

Creates, updates, deletes, gets or lists a journey_execution_activity_metrics resource.

Overview

Namejourney_execution_activity_metrics
TypeResource
Idaws.pinpoint.journey_execution_activity_metrics

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
activity_typestringThe type of activity that the metric applies to. Possible values are: CONDITIONAL_SPLIT – For a yes/no split activity, which is an activity that sends participants down one of two paths in a journey. HOLDOUT – For a holdout activity, which is an activity that stops a journey for a specified percentage of participants. MESSAGE – For an email activity, which is an activity that sends an email message to participants. MULTI_CONDITIONAL_SPLIT – For a multivariate split activity, which is an activity that sends participants down one of as many as five paths in a journey. RANDOM_SPLIT – For a random split activity, which is an activity that sends specified percentages of participants down one of as many as five paths in a journey. WAIT – For a wait activity, which is an activity that waits for a certain amount of time or until a specific date and time before moving participants to the next activity in a journey.
application_idstringThe unique identifier for the application that the metric applies to.
journey_activity_idstringThe unique identifier for the activity that the metric applies to.
journey_idstringThe unique identifier for the journey that the metric applies to.
last_evaluated_timestringThe date and time, in ISO 8601 format, when Amazon Pinpoint last evaluated the execution status of the activity and updated the data for the metric.
metricsobjectA JSON object that contains the results of the query. The results vary depending on the type of activity (ActivityType). For information about the structure and contents of the results, see the Amazon Pinpoint Developer Guide.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_journey_execution_activity_metricsselectapplication-id, journey-activity-id, journey-id, regionnext-token, page-sizeRetrieves (queries) pre-aggregated data for a standard execution metric that applies to a journey activity.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
application-idstringThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
journey-activity-idstringThe unique identifier for the journey activity.
journey-idstringThe unique identifier for the journey.
regionstringAWS region (default: us-east-1)
next-tokenstringThe string that specifies which page of results to return in a paginated response. This parameter is not supported for application, campaign, and journey metrics.
page-sizestringThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.

SELECT examples

Retrieves (queries) pre-aggregated data for a standard execution metric that applies to a journey activity.

SELECT
activity_type,
application_id,
journey_activity_id,
journey_id,
last_evaluated_time,
metrics
FROM aws.pinpoint.journey_execution_activity_metrics
WHERE `application-id` = '{{ application-id }}' -- required
AND `journey-activity-id` = '{{ journey-activity-id }}' -- required
AND `journey-id` = '{{ journey-id }}' -- required
AND region = '{{ region }}' -- required
AND `next-token` = '{{ next-token }}'
AND `page-size` = '{{ page-size }}'
;