public class MetricFilter extends Object implements Serializable, Cloneable
Metric filters can be used to express how Amazon CloudWatch Logs would extract metric observations from ingested log events and transform them to metric data in a CloudWatch metric.
| Constructor and Description |
|---|
MetricFilter() |
| Modifier and Type | Method and Description |
|---|---|
MetricFilter |
clone() |
boolean |
equals(Object obj) |
Long |
getCreationTime()
Returns the value of the CreationTime property for this object.
|
String |
getFilterName()
Returns the value of the FilterName property for this object.
|
String |
getFilterPattern()
Returns the value of the FilterPattern property for this object.
|
List<MetricTransformation> |
getMetricTransformations()
Returns the value of the MetricTransformations property for this object.
|
int |
hashCode() |
void |
setCreationTime(Long creationTime)
Sets the value of the CreationTime property for this object.
|
void |
setFilterName(String filterName)
Sets the value of the FilterName property for this object.
|
void |
setFilterPattern(String filterPattern)
Sets the value of the FilterPattern property for this object.
|
void |
setMetricTransformations(Collection<MetricTransformation> metricTransformations)
Sets the value of the MetricTransformations property for this object.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MetricFilter |
withCreationTime(Long creationTime)
Sets the value of the CreationTime property for this object.
|
MetricFilter |
withFilterName(String filterName)
Sets the value of the FilterName property for this object.
|
MetricFilter |
withFilterPattern(String filterPattern)
Sets the value of the FilterPattern property for this object.
|
MetricFilter |
withMetricTransformations(Collection<MetricTransformation> metricTransformations)
Sets the value of the MetricTransformations property for this object.
|
MetricFilter |
withMetricTransformations(MetricTransformation... metricTransformations)
Sets the value of the MetricTransformations property for this object.
|
public void setFilterName(String filterName)
filterName - The new value for the FilterName property for this object.public String getFilterName()
public MetricFilter withFilterName(String filterName)
filterName - The new value for the FilterName property for this object.public void setFilterPattern(String filterPattern)
filterPattern - The new value for the FilterPattern property for this object.public String getFilterPattern()
public MetricFilter withFilterPattern(String filterPattern)
filterPattern - The new value for the FilterPattern property for this object.public List<MetricTransformation> getMetricTransformations()
public void setMetricTransformations(Collection<MetricTransformation> metricTransformations)
metricTransformations - The new value for the MetricTransformations property for this
object.public MetricFilter withMetricTransformations(MetricTransformation... metricTransformations)
NOTE: This method appends the values to the existing list (if
any). Use setMetricTransformations(java.util.Collection) or
withMetricTransformations(java.util.Collection) if you want to
override the existing values.
metricTransformations - The new value for the MetricTransformations property for this
object.public MetricFilter withMetricTransformations(Collection<MetricTransformation> metricTransformations)
metricTransformations - The new value for the MetricTransformations property for this
object.public void setCreationTime(Long creationTime)
creationTime - The new value for the CreationTime property for this object.public Long getCreationTime()
public MetricFilter withCreationTime(Long creationTime)
creationTime - The new value for the CreationTime property for this object.public String toString()
toString in class ObjectObject.toString()public MetricFilter clone()
Copyright © 2015. All rights reserved.