Journey Run Execution Activity Metrics - Amazon Pinpoint

Journey Run Execution Activity Metrics

A journey run activity execution metric is a measurable value, also referred to as a key performance indicator (KPI), that can help you assess the status of participants in a journey activity for a particular journey run. For example, you can use this type of metric to determine how many participants started and completed an activity. Amazon Pinpoint automatically collects, aggregates, and stores this data for all of your journey activities.

The Journey Run Execution Activity Metrics resource represents a collection of standard execution metrics that apply to an individual journey activity for a journey run. As part of the Amazon Pinpoint Analytics APIs, this resource provides you with programmatic access to pre-aggregated data for each of these metrics. For a list of metrics that are currently supported, see Standard Amazon Pinpoint analytics metrics in the Amazon Pinpoint Developer Guide.

You can use the Journey Activity Execution Metrics resource to retrieve pre-aggregated data for standard execution metrics that apply to a journey activity across all journey runs.

URI

/v1/apps/application-id/journeys/journey-id/runs/run-id/activities/journey-activity-id/execution-metrics

HTTP methods

GET

Operation ID: GetJourneyRunExecutionActivityMetrics

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

Path parameters
NameTypeRequiredDescription
run-idStringTrue

The unique identifier for the journey run.

journey-activity-idStringTrue

The unique identifier for the journey activity.

journey-idStringTrue

The unique identifier for the journey.

application-idStringTrue

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

Header parameters
NameTypeRequiredDescription
acceptStringFalse

Indicates which content types, expressed as MIME types, the client understands.

Query parameters
NameTypeRequiredDescription
next-tokenStringFalse

The 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-sizeStringFalse

The maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.

Responses
Status codeResponse modelDescription
200JourneyRunExecutionActivityMetricsResponse

The request succeeded.

400MessageBody

The request contains a syntax error (BadRequestException).

403MessageBody

The request was denied because access to the specified resource is forbidden (ForbiddenException).

404MessageBody

The request failed because the specified resource was not found (NotFoundException).

405MessageBody

The request failed because the method is not allowed for the specified resource (MethodNotAllowedException).

413MessageBody

The request failed because the payload for the body of the request is too large (RequestEntityTooLargeException).

429MessageBody

The request failed because too many requests were sent during a certain amount of time (TooManyRequestsException).

500MessageBody

The request failed due to an unknown internal server error, exception, or failure (InternalServerErrorException).

OPTIONS

Retrieves information about the communication requirements and options that are available for the Journey Run Activity Execution Metrics resource.

Path parameters
NameTypeRequiredDescription
journey-activity-idStringTrue

The unique identifier for the journey activity.

run-idStringTrue

The unique identifier for the journey run.

application-idStringTrue

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

journey-idStringTrue

The unique identifier for the journey.

Responses
Status codeResponse modelDescription
200None

The request succeeded.

Schemas

Response bodies

{ "ApplicationId": "string", "JourneyId": "string", "JourneyActivityId": "string", "RunId": "string", "ActivityType": "string", "LastEvaluatedTime": "string", "Metrics": { } }
{ "RequestID": "string", "Message": "string" }

Properties

JourneyRunExecutionActivityMetricsResponse

Provides the results of a query that retrieved the data for a standard execution metric that applies to a journey activity for a particular journey run, and provides information about that query.

PropertyTypeRequiredDescription
ActivityType

string

True

The 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.

ApplicationId

string

True

The unique identifier for the application that the metric applies to.

JourneyActivityId

string

True

The unique identifier for the activity that the metric applies to.

JourneyId

string

True

The unique identifier for the journey that the metric applies to.

LastEvaluatedTime

string

True

The date and time, in ISO 8601 format, when Amazon Pinpoint last evaluated the execution status of the activity for this journey run and updated the data for the metric.

Metrics

object

True

A JSON object that contains the results of the query. For information about the structure and contents of the results, see Standard Amazon Pinpoint analytics metrics in the Amazon Pinpoint Developer Guide.

RunId

string

True

The unique identifier for the journey run that the metric applies to.

MessageBody

Provides information about an API request or response.

PropertyTypeRequiredDescription
Message

string

False

The message that's returned from the API.

RequestID

string

False

The unique identifier for the request or response.

See also

For more information about using this API in one of the language-specific AWS SDKs and references, see the following:

GetJourneyRunExecutionActivityMetrics