create_metric_attribution
¶
create_metric_attribution(
name: Name,
dataset_group_arn: Arn,
metrics: MetricAttributes,
metrics_output_config: MetricAttributionOutput,
*,
config_overrides: Optional[PersonalizeClientConfig] = None,
) -> CreateMetricAttributionResponse
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.
Parameters:
-
name(Name) –A name for the metric attribution.
-
dataset_group_arn(Arn) –The Amazon Resource Name (ARN) of the destination dataset group for the metric attribution.
-
metrics(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()orSAMPLECOUNT(). For SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example SUM(Items.PRICE). -
metrics_output_config(MetricAttributionOutput) –The output configuration details for the metric attribution.
Raises:
-
InvalidInputException–Provide a valid value for the field or parameter.
-
LimitExceededException–The limit on the number of requests per second has been exceeded.
-
ResourceAlreadyExistsException–The specified resource already exists.
-
ResourceInUseException–The specified resource is in use.
-
ResourceNotFoundException–Could not find the specified resource.
-
UnknownServiceError–The service returned an error code this client does not model.