AWS::Evidently::Experiment MetricGoalObject - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

AWS::Evidently::Experiment MetricGoalObject

Use this structure to tell Evidently whether higher or lower values are desired for a metric that is used in an experiment.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "DesiredChange" : String, "EntityIdKey" : String, "EventPattern" : String, "MetricName" : String, "UnitLabel" : String, "ValueKey" : String }

YAML

DesiredChange: String EntityIdKey: String EventPattern: String MetricName: String UnitLabel: String ValueKey: String

Properties

DesiredChange

INCREASE means that a variation with a higher number for this metric is performing better.

DECREASE means that a variation with a lower number for this metric is performing better.

Required: Yes

Type: String

Update requires: No interruption

EntityIdKey

The entity, such as a user or session, that does an action that causes a metric value to be recorded. An example is userDetails.userID.

Required: Yes

Type: String

Update requires: No interruption

EventPattern

The EventBridge event pattern that defines how the metric is recorded.

For more information about EventBridge event patterns, see Amazon EventBridge event patterns.

Required: Yes

Type: String

Update requires: No interruption

MetricName

A name for the metric. It can include up to 255 characters.

Required: Yes

Type: String

Update requires: No interruption

UnitLabel

A label for the units that the metric is measuring.

Required: No

Type: String

Update requires: No interruption

ValueKey

The JSON path to reference the numerical metric value in the event.

Required: Yes

Type: String

Update requires: No interruption