public class PutMetricFilterRequest extends AmazonWebServiceRequest implements Serializable
PutMetricFilter operation.
Creates or updates a metric filter and associates it with the
specified log group. Metric filters allow you to configure rules to
extract metric data from log events ingested through
PutLogEvents requests.
NOOP| Constructor and Description |
|---|
PutMetricFilterRequest()
Default constructor for a new PutMetricFilterRequest object.
|
PutMetricFilterRequest(String logGroupName,
String filterName,
String filterPattern,
List<MetricTransformation> metricTransformations)
Constructs a new PutMetricFilterRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getFilterName()
The name of the metric filter.
|
String |
getFilterPattern()
A symbolic description of how Amazon CloudWatch Logs should interpret
the data in each log entry.
|
String |
getLogGroupName()
Returns the value of the LogGroupName property for this object.
|
List<MetricTransformation> |
getMetricTransformations()
Returns the value of the MetricTransformations property for this
object.
|
int |
hashCode() |
void |
setFilterName(String filterName)
The name of the metric filter.
|
void |
setFilterPattern(String filterPattern)
A symbolic description of how Amazon CloudWatch Logs should interpret
the data in each log entry.
|
void |
setLogGroupName(String logGroupName)
Sets the value of the LogGroupName 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.
|
PutMetricFilterRequest |
withFilterName(String filterName)
The name of the metric filter.
|
PutMetricFilterRequest |
withFilterPattern(String filterPattern)
A symbolic description of how Amazon CloudWatch Logs should interpret
the data in each log entry.
|
PutMetricFilterRequest |
withLogGroupName(String logGroupName)
Sets the value of the LogGroupName property for this object.
|
PutMetricFilterRequest |
withMetricTransformations(Collection<MetricTransformation> metricTransformations)
Sets the value of the MetricTransformations property for this object.
|
PutMetricFilterRequest |
withMetricTransformations(MetricTransformation... metricTransformations)
Sets the value of the MetricTransformations property for this object.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic PutMetricFilterRequest()
public PutMetricFilterRequest(String logGroupName, String filterName, String filterPattern, List<MetricTransformation> metricTransformations)
logGroupName - filterName - The name of the metric filter.filterPattern - A symbolic description of how Amazon CloudWatch
Logs should interpret the data in each log entry. For example, a log
entry may contain timestamps, IP addresses, strings, and so on. You
use the pattern to specify what to look for in the log stream.metricTransformations - public String getLogGroupName()
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
public void setLogGroupName(String logGroupName)
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
logGroupName - The new value for the LogGroupName property for this object.public PutMetricFilterRequest withLogGroupName(String logGroupName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
logGroupName - The new value for the LogGroupName property for this object.public String getFilterName()
Constraints:
Length: 1 - 512
Pattern: [^:*]*
public void setFilterName(String filterName)
Constraints:
Length: 1 - 512
Pattern: [^:*]*
filterName - The name of the metric filter.public PutMetricFilterRequest withFilterName(String filterName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
filterName - The name of the metric filter.public String getFilterPattern()
Constraints:
Length: 0 - 512
public void setFilterPattern(String filterPattern)
Constraints:
Length: 0 - 512
filterPattern - A symbolic description of how Amazon CloudWatch Logs should interpret
the data in each log entry. For example, a log entry may contain
timestamps, IP addresses, strings, and so on. You use the pattern to
specify what to look for in the log stream.public PutMetricFilterRequest withFilterPattern(String filterPattern)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 512
filterPattern - A symbolic description of how Amazon CloudWatch Logs should interpret
the data in each log entry. For example, a log entry may contain
timestamps, IP addresses, strings, and so on. You use the pattern to
specify what to look for in the log stream.public List<MetricTransformation> getMetricTransformations()
Constraints:
Length: 1 - 1
public void setMetricTransformations(Collection<MetricTransformation> metricTransformations)
Constraints:
Length: 1 - 1
metricTransformations - The new value for the MetricTransformations property for this object.public PutMetricFilterRequest withMetricTransformations(MetricTransformation... metricTransformations)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1
metricTransformations - The new value for the MetricTransformations property for this object.public PutMetricFilterRequest withMetricTransformations(Collection<MetricTransformation> metricTransformations)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1
metricTransformations - The new value for the MetricTransformations property for this object.public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.