@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricFilter extends Object implements Serializable, Cloneable, StructuredPojo
Metric filters express how CloudWatch Logs would extract metric observations from ingested log events and transform them into metric data in a CloudWatch metric.
Constructor and Description |
---|
MetricFilter() |
Modifier and Type | Method and Description |
---|---|
MetricFilter |
clone() |
boolean |
equals(Object obj) |
Long |
getCreationTime()
The creation time of the metric filter, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC . |
String |
getFilterName()
The name of the metric filter.
|
String |
getFilterPattern() |
String |
getLogGroupName()
The name of the log group.
|
List<MetricTransformation> |
getMetricTransformations()
The metric transformations.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCreationTime(Long creationTime)
The creation time of the metric filter, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC . |
void |
setFilterName(String filterName)
The name of the metric filter.
|
void |
setFilterPattern(String filterPattern) |
void |
setLogGroupName(String logGroupName)
The name of the log group.
|
void |
setMetricTransformations(Collection<MetricTransformation> metricTransformations)
The metric transformations.
|
String |
toString()
Returns a string representation of this object.
|
MetricFilter |
withCreationTime(Long creationTime)
The creation time of the metric filter, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC . |
MetricFilter |
withFilterName(String filterName)
The name of the metric filter.
|
MetricFilter |
withFilterPattern(String filterPattern) |
MetricFilter |
withLogGroupName(String logGroupName)
The name of the log group.
|
MetricFilter |
withMetricTransformations(Collection<MetricTransformation> metricTransformations)
The metric transformations.
|
MetricFilter |
withMetricTransformations(MetricTransformation... metricTransformations)
The metric transformations.
|
public void setFilterName(String filterName)
The name of the metric filter.
filterName
- The name of the metric filter.public String getFilterName()
The name of the metric filter.
public MetricFilter withFilterName(String filterName)
The name of the metric filter.
filterName
- The name of the metric filter.public void setFilterPattern(String filterPattern)
filterPattern
- public String getFilterPattern()
public MetricFilter withFilterPattern(String filterPattern)
filterPattern
- public List<MetricTransformation> getMetricTransformations()
The metric transformations.
public void setMetricTransformations(Collection<MetricTransformation> metricTransformations)
The metric transformations.
metricTransformations
- The metric transformations.public MetricFilter withMetricTransformations(MetricTransformation... metricTransformations)
The metric transformations.
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 metric transformations.public MetricFilter withMetricTransformations(Collection<MetricTransformation> metricTransformations)
The metric transformations.
metricTransformations
- The metric transformations.public void setCreationTime(Long creationTime)
The creation time of the metric filter, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC
.
creationTime
- The creation time of the metric filter, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC
.public Long getCreationTime()
The creation time of the metric filter, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC
.
Jan 1, 1970 00:00:00 UTC
.public MetricFilter withCreationTime(Long creationTime)
The creation time of the metric filter, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC
.
creationTime
- The creation time of the metric filter, expressed as the number of milliseconds after
Jan 1, 1970 00:00:00 UTC
.public void setLogGroupName(String logGroupName)
The name of the log group.
logGroupName
- The name of the log group.public String getLogGroupName()
The name of the log group.
public MetricFilter withLogGroupName(String logGroupName)
The name of the log group.
logGroupName
- The name of the log group.public String toString()
toString
in class Object
Object.toString()
public MetricFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.