public class MetricFilter extends Object implements Serializable, Cloneable
Metric filters can be used to express how 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() |
String |
getFilterName() |
String |
getFilterPattern() |
List<MetricTransformation> |
getMetricTransformations() |
int |
hashCode() |
void |
setCreationTime(Long creationTime) |
void |
setFilterName(String filterName) |
void |
setFilterPattern(String filterPattern) |
void |
setMetricTransformations(Collection<MetricTransformation> metricTransformations) |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
MetricFilter |
withCreationTime(Long creationTime) |
MetricFilter |
withFilterName(String filterName) |
MetricFilter |
withFilterPattern(String filterPattern) |
MetricFilter |
withMetricTransformations(Collection<MetricTransformation> metricTransformations) |
MetricFilter |
withMetricTransformations(MetricTransformation... metricTransformations)
NOTE: This method appends the values to the existing list (if any).
|
public void setFilterName(String filterName)
filterName - public String getFilterName()
public MetricFilter withFilterName(String filterName)
filterName - public void setFilterPattern(String filterPattern)
filterPattern - public String getFilterPattern()
public MetricFilter withFilterPattern(String filterPattern)
filterPattern - public List<MetricTransformation> getMetricTransformations()
public void setMetricTransformations(Collection<MetricTransformation> metricTransformations)
metricTransformations - 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 - public MetricFilter withMetricTransformations(Collection<MetricTransformation> metricTransformations)
metricTransformations - public void setCreationTime(Long creationTime)
creationTime - public Long getCreationTime()
public MetricFilter withCreationTime(Long creationTime)
creationTime - public String toString()
toString in class ObjectObject.toString()public MetricFilter clone()
Copyright © 2016. All rights reserved.