Class MetricDefinitionConfig
- java.lang.Object
-
- software.amazon.awssdk.services.evidently.model.MetricDefinitionConfig
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MetricDefinitionConfig.Builder,MetricDefinitionConfig>
@Generated("software.amazon.awssdk:codegen") public final class MetricDefinitionConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MetricDefinitionConfig.Builder,MetricDefinitionConfig>
This structure defines a metric that you want to use to evaluate the variations during a launch or experiment.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMetricDefinitionConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MetricDefinitionConfig.Builderbuilder()StringentityIdKey()The entity, such as a user or session, that does an action that causes a metric value to be recorded.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringeventPattern()The EventBridge event pattern that defines how the metric is recorded.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()A name for the metric.List<SdkField<?>>sdkFields()static Class<? extends MetricDefinitionConfig.Builder>serializableBuilderClass()MetricDefinitionConfig.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringunitLabel()A label for the units that the metric is measuring.StringvalueKey()The value that is tracked to produce the metric.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
entityIdKey
public final String 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.- Returns:
- 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.
-
eventPattern
public final String eventPattern()
The EventBridge event pattern that defines how the metric is recorded.
For more information about EventBridge event patterns, see Amazon EventBridge event patterns.
- Returns:
- The EventBridge event pattern that defines how the metric is recorded.
For more information about EventBridge event patterns, see Amazon EventBridge event patterns.
-
name
public final String name()
A name for the metric.
- Returns:
- A name for the metric.
-
unitLabel
public final String unitLabel()
A label for the units that the metric is measuring.
- Returns:
- A label for the units that the metric is measuring.
-
valueKey
public final String valueKey()
The value that is tracked to produce the metric.
- Returns:
- The value that is tracked to produce the metric.
-
toBuilder
public MetricDefinitionConfig.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<MetricDefinitionConfig.Builder,MetricDefinitionConfig>
-
builder
public static MetricDefinitionConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends MetricDefinitionConfig.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-