@Generated(value="software.amazon.awssdk:codegen") public final class MetricDefinition extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MetricDefinition.Builder,MetricDefinition>
This structure defines a metric that is being used to evaluate the variations during a launch or experiment.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MetricDefinition.Builder |
| Modifier and Type | Method and Description |
|---|---|
static MetricDefinition.Builder |
builder() |
String |
entityIdKey()
The entity, such as a user or session, that does an action that causes a metric value to be recorded.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
eventPattern()
The EventBridge event pattern that defines how the metric is recorded.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name of the metric.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MetricDefinition.Builder> |
serializableBuilderClass() |
MetricDefinition.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
unitLabel()
The label for the units that the metric is measuring.
|
String |
valueKey()
The value that is tracked to produce the metric.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String entityIdKey()
The entity, such as a user or session, that does an action that causes a metric value to be recorded.
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.
For more information about EventBridge event patterns, see Amazon EventBridge event patterns.
public final String name()
The name of the metric.
public final String unitLabel()
The label for the units that the metric is measuring.
public final String valueKey()
The value that is tracked to produce the metric.
public MetricDefinition.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MetricDefinition.Builder,MetricDefinition>public static MetricDefinition.Builder builder()
public static Class<? extends MetricDefinition.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.