@Generated(value="software.amazon.awssdk:codegen") public final class MetricAttribute extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MetricAttribute.Builder,MetricAttribute>
Contains information on a metric that a metric attribution reports on. For more information, see Measuring impact of recommendations.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MetricAttribute.Builder |
| Modifier and Type | Method and Description |
|---|---|
static MetricAttribute.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
eventType()
The metric's event type.
|
String |
expression()
The attribute's expression.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
metricName()
The metric's name.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MetricAttribute.Builder> |
serializableBuilderClass() |
MetricAttribute.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String eventType()
The metric's event type.
public final String metricName()
The metric's name. The name helps you identify the metric in Amazon CloudWatch or Amazon S3.
public final String expression()
The attribute's expression. Available functions are SUM() or SAMPLECOUNT(). For SUM()
functions, provide the dataset type (either Interactions or Items) and column to sum as a parameter. For example
SUM(Items.PRICE).
SUM() or SAMPLECOUNT(). For
SUM() functions, provide the dataset type (either Interactions or Items) and column to sum as a
parameter. For example SUM(Items.PRICE).public MetricAttribute.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MetricAttribute.Builder,MetricAttribute>public static MetricAttribute.Builder builder()
public static Class<? extends MetricAttribute.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.