Class MetricFilter
java.lang.Object
com.amazonaws.services.logs.model.MetricFilter
- All Implemented Interfaces:
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.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
int
hashCode()
void
setCreationTime
(Long creationTime) void
setFilterName
(String filterName) void
setFilterPattern
(String filterPattern) void
setMetricTransformations
(Collection<MetricTransformation> metricTransformations) toString()
Returns a string representation of this object; useful for testing and debugging.withCreationTime
(Long creationTime) withFilterName
(String filterName) withFilterPattern
(String filterPattern) withMetricTransformations
(MetricTransformation... metricTransformations) NOTE: This method appends the values to the existing list (if any).withMetricTransformations
(Collection<MetricTransformation> metricTransformations)
-
Constructor Details
-
MetricFilter
public MetricFilter()
-
-
Method Details
-
setFilterName
- Parameters:
filterName
-
-
getFilterName
- Returns:
-
withFilterName
- Parameters:
filterName
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setFilterPattern
- Parameters:
filterPattern
-
-
getFilterPattern
- Returns:
-
withFilterPattern
- Parameters:
filterPattern
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getMetricTransformations
- Returns:
-
setMetricTransformations
- Parameters:
metricTransformations
-
-
withMetricTransformations
NOTE: This method appends the values to the existing list (if any). Use
setMetricTransformations(java.util.Collection)
orwithMetricTransformations(java.util.Collection)
if you want to override the existing values.- Parameters:
metricTransformations
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withMetricTransformations
public MetricFilter withMetricTransformations(Collection<MetricTransformation> metricTransformations) - Parameters:
metricTransformations
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCreationTime
- Parameters:
creationTime
-
-
getCreationTime
- Returns:
-
withCreationTime
- Parameters:
creationTime
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-