@Generated(value="software.amazon.awssdk:codegen") public final class MetricTransformation extends Object implements StructuredPojo, ToCopyableBuilder<MetricTransformation.Builder,MetricTransformation>
Indicates how to transform ingested log events in 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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
metricName()
The name of the CloudWatch metric.
|
String |
metricNamespace()
The namespace of the CloudWatch metric.
|
String |
metricValue()
The value to publish to the CloudWatch metric when a filter pattern matches a log event.
|
static Class<? extends MetricTransformation.Builder> |
serializableBuilderClass() |
MetricTransformation.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String metricName()
The name of the CloudWatch metric.
public String metricNamespace()
The namespace of the CloudWatch metric.
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()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<MetricTransformation.Builder,MetricTransformation>
public static MetricTransformation.Builder builder()
public static Class<? extends MetricTransformation.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.