Interface CfnExperiment.MetricGoalObjectProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnExperiment.MetricGoalObjectProperty.Jsii$Proxy
- Enclosing class:
- CfnExperiment
@Stability(Stable)
public static interface CfnExperiment.MetricGoalObjectProperty
extends software.amazon.jsii.JsiiSerializable
Use this structure to tell Evidently whether higher or lower values are desired for a metric that is used in an experiment.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.evidently.*; MetricGoalObjectProperty metricGoalObjectProperty = MetricGoalObjectProperty.builder() .desiredChange("desiredChange") .entityIdKey("entityIdKey") .metricName("metricName") .valueKey("valueKey") // the properties below are optional .eventPattern("eventPattern") .unitLabel("unitLabel") .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnExperiment.MetricGoalObjectProperty
static final class
An implementation forCfnExperiment.MetricGoalObjectProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
INCREASE
means that a variation with a higher number for this metric is performing better.The entity, such as a user or session, that does an action that causes a metric value to be recorded.default String
The EventBridge event pattern that defines how the metric is recorded.A name for the metric.default String
A label for the units that the metric is measuring.The JSON path to reference the numerical metric value in the event.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDesiredChange
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. -
getEntityIdKey
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
. -
getMetricName
A name for the metric.It can include up to 255 characters.
-
getValueKey
The JSON path to reference the numerical metric value in the event. -
getEventPattern
The EventBridge event pattern that defines how the metric is recorded.For more information about EventBridge event patterns, see Amazon EventBridge event patterns .
-
getUnitLabel
A label for the units that the metric is measuring. -
builder
-