@Generated(value="software.amazon.awssdk:codegen") public final class MetricTransformation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MetricTransformation.Builder,MetricTransformation>
Indicates how to transform ingested log events to metric data in a CloudWatch metric.
| Modifier and Type | Class and Description |
|---|---|
static interface |
MetricTransformation.Builder |
| Modifier and Type | Method and Description |
|---|---|
static MetricTransformation.Builder |
builder() |
Double |
defaultValue()
(Optional) The value to emit when a filter pattern does not match a log event.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
metricName()
The name of the CloudWatch metric.
|
String |
metricNamespace()
A custom namespace to contain your metric in CloudWatch.
|
String |
metricValue()
The value to publish to the CloudWatch metric when a filter pattern matches a log event.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends MetricTransformation.Builder> |
serializableBuilderClass() |
MetricTransformation.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String metricName()
The name of the CloudWatch metric.
public String metricNamespace()
A custom namespace to contain your metric in CloudWatch. Use namespaces to group together metrics that are similar. For more information, see Namespaces.
public String metricValue()
The value to publish to the CloudWatch metric when a filter pattern matches a log event.
public Double defaultValue()
(Optional) The value to emit when a filter pattern does not match a log event. This value can be null.
public MetricTransformation.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<MetricTransformation.Builder,MetricTransformation>public static MetricTransformation.Builder builder()
public static Class<? extends MetricTransformation.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.