@Generated(value="software.amazon.awssdk:codegen") public class MetricTransformation extends Object implements StructuredPojo, software.amazon.awssdk.utils.builder.ToCopyableBuilder<MetricTransformation.Builder,MetricTransformation>
Indicates how to transform ingested log events into 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) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller 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() |
String |
toString() |
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()
toBuilder in interface software.amazon.awssdk.utils.builder.ToCopyableBuilder<MetricTransformation.Builder,MetricTransformation>public static MetricTransformation.Builder builder()
public static Class<? extends MetricTransformation.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2017. All rights reserved.