Interface MetricGoalConfig.Builder

  • Method Details

    • desiredChange

      MetricGoalConfig.Builder desiredChange(String 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.

      Parameters:
      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • desiredChange

      MetricGoalConfig.Builder desiredChange(ChangeDirectionEnum 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.

      Parameters:
      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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • metricDefinition

      MetricGoalConfig.Builder metricDefinition(MetricDefinitionConfig metricDefinition)

      A structure that contains details about the metric.

      Parameters:
      metricDefinition - A structure that contains details about the metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricDefinition

      default MetricGoalConfig.Builder metricDefinition(Consumer<MetricDefinitionConfig.Builder> metricDefinition)

      A structure that contains details about the metric.

      This is a convenience method that creates an instance of the MetricDefinitionConfig.Builder avoiding the need to create one manually via MetricDefinitionConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to metricDefinition(MetricDefinitionConfig).

      Parameters:
      metricDefinition - a consumer that will call methods on MetricDefinitionConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: