@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricTransformation extends Object implements Serializable, Cloneable, StructuredPojo
Indicates how to transform ingested log events in to metric data in a CloudWatch metric.
Constructor and Description |
---|
MetricTransformation() |
Modifier and Type | Method and Description |
---|---|
MetricTransformation |
clone() |
boolean |
equals(Object obj) |
Double |
getDefaultValue()
(Optional) The value to emit when a filter pattern does not match a log event.
|
String |
getMetricName()
The name of the CloudWatch metric.
|
String |
getMetricNamespace()
The namespace of the CloudWatch metric.
|
String |
getMetricValue()
The value to publish to the CloudWatch metric when a filter pattern matches a log event.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDefaultValue(Double defaultValue)
(Optional) The value to emit when a filter pattern does not match a log event.
|
void |
setMetricName(String metricName)
The name of the CloudWatch metric.
|
void |
setMetricNamespace(String metricNamespace)
The namespace of the CloudWatch metric.
|
void |
setMetricValue(String metricValue)
The value to publish to the CloudWatch metric when a filter pattern matches a log event.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
MetricTransformation |
withDefaultValue(Double defaultValue)
(Optional) The value to emit when a filter pattern does not match a log event.
|
MetricTransformation |
withMetricName(String metricName)
The name of the CloudWatch metric.
|
MetricTransformation |
withMetricNamespace(String metricNamespace)
The namespace of the CloudWatch metric.
|
MetricTransformation |
withMetricValue(String metricValue)
The value to publish to the CloudWatch metric when a filter pattern matches a log event.
|
public void setMetricName(String metricName)
The name of the CloudWatch metric.
metricName
- The name of the CloudWatch metric.public String getMetricName()
The name of the CloudWatch metric.
public MetricTransformation withMetricName(String metricName)
The name of the CloudWatch metric.
metricName
- The name of the CloudWatch metric.public void setMetricNamespace(String metricNamespace)
The namespace of the CloudWatch metric.
metricNamespace
- The namespace of the CloudWatch metric.public String getMetricNamespace()
The namespace of the CloudWatch metric.
public MetricTransformation withMetricNamespace(String metricNamespace)
The namespace of the CloudWatch metric.
metricNamespace
- The namespace of the CloudWatch metric.public void setMetricValue(String metricValue)
The value to publish to the CloudWatch metric when a filter pattern matches a log event.
metricValue
- The value to publish to the CloudWatch metric when a filter pattern matches a log event.public String getMetricValue()
The value to publish to the CloudWatch metric when a filter pattern matches a log event.
public MetricTransformation withMetricValue(String metricValue)
The value to publish to the CloudWatch metric when a filter pattern matches a log event.
metricValue
- The value to publish to the CloudWatch metric when a filter pattern matches a log event.public void setDefaultValue(Double defaultValue)
(Optional) The value to emit when a filter pattern does not match a log event. This value can be null.
defaultValue
- (Optional) The value to emit when a filter pattern does not match a log event. This value can be null.public Double getDefaultValue()
(Optional) The value to emit when a filter pattern does not match a log event. This value can be null.
public MetricTransformation withDefaultValue(Double defaultValue)
(Optional) The value to emit when a filter pattern does not match a log event. This value can be null.
defaultValue
- (Optional) The value to emit when a filter pattern does not match a log event. This value can be null.public String toString()
toString
in class Object
Object.toString()
public MetricTransformation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.