Interface CfnExperiment.MetricGoalObjectProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnExperiment.MetricGoalObjectProperty extends
Use this structure to tell Evidently whether higher or lower values are desired for a metric that is used in an experiment.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 MetricGoalObjectProperty metricGoalObjectProperty = MetricGoalObjectProperty.builder()
         // the properties below are optional
  • Method Details

    • getDesiredChange

      @Stability(Stable) @NotNull String 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

      @Stability(Stable) @NotNull String 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

      @Stability(Stable) @NotNull String getMetricName()
      A name for the metric.

      It can include up to 255 characters.

    • getValueKey

      @Stability(Stable) @NotNull String getValueKey()
      The JSON path to reference the numerical metric value in the event.
    • getEventPattern

      @Stability(Stable) @Nullable default String 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

      @Stability(Stable) @Nullable default String getUnitLabel()
      A label for the units that the metric is measuring.
    • builder

      @Stability(Stable) static CfnExperiment.MetricGoalObjectProperty.Builder builder()
      a CfnExperiment.MetricGoalObjectProperty.Builder of CfnExperiment.MetricGoalObjectProperty