Skip to content

/AWS1/CL_PZZ=>CREATEMETRICATTRIBUTION()

About CreateMetricAttribution

Creates a metric attribution. A metric attribution creates reports on the data that you import into Amazon Personalize. Depending on how you imported the data, you can view reports in Amazon CloudWatch or Amazon S3. For more information, see Measuring impact of recommendations.

Method Signature

IMPORTING

Required arguments:

IV_NAME TYPE /AWS1/PZZNAME /AWS1/PZZNAME

A name for the metric attribution.

IV_DATASETGROUPARN TYPE /AWS1/PZZARN /AWS1/PZZARN

The Amazon Resource Name (ARN) of the destination dataset group for the metric attribution.

IT_METRICS TYPE /AWS1/CL_PZZMETRICATTRIBUTE=>TT_METRICATTRIBUTES TT_METRICATTRIBUTES

A list of metric attributes for the metric attribution. Each metric attribute specifies an event type to track and a function. Available functions are SUM() or SAMPLECOUNT(). For SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example SUM(Items.PRICE).

IO_METRICSOUTPUTCONFIG TYPE REF TO /AWS1/CL_PZZMETRICATTRIBUTIO00 /AWS1/CL_PZZMETRICATTRIBUTIO00

The output configuration details for the metric attribution.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_PZZCREMETRICATTRIBU01 /AWS1/CL_PZZCREMETRICATTRIBU01