public class TestMetricFilterRequest extends AmazonWebServiceRequest implements Serializable
TestMetricFilter operation.
Tests the filter pattern of a metric filter against a sample of log event messages. You can use this operation to validate the correctness of a metric filter pattern.
NOOP| Constructor and Description |
|---|
TestMetricFilterRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getFilterPattern()
A symbolic description of how Amazon CloudWatch Logs should interpret
the data in each log entry.
|
List<String> |
getLogEventMessages()
Returns the value of the LogEventMessages property for this object.
|
int |
hashCode() |
void |
setFilterPattern(String filterPattern)
A symbolic description of how Amazon CloudWatch Logs should interpret
the data in each log entry.
|
void |
setLogEventMessages(Collection<String> logEventMessages)
Sets the value of the LogEventMessages property for this object.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TestMetricFilterRequest |
withFilterPattern(String filterPattern)
A symbolic description of how Amazon CloudWatch Logs should interpret
the data in each log entry.
|
TestMetricFilterRequest |
withLogEventMessages(Collection<String> logEventMessages)
Sets the value of the LogEventMessages property for this object.
|
TestMetricFilterRequest |
withLogEventMessages(String... logEventMessages)
Sets the value of the LogEventMessages property for this object.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic 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 TestMetricFilterRequest 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<String> getLogEventMessages()
Constraints:
Length: 1 - 50
public void setLogEventMessages(Collection<String> logEventMessages)
Constraints:
Length: 1 - 50
logEventMessages - The new value for the LogEventMessages property for this object.public TestMetricFilterRequest withLogEventMessages(String... logEventMessages)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 50
logEventMessages - The new value for the LogEventMessages property for this object.public TestMetricFilterRequest withLogEventMessages(Collection<String> logEventMessages)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 50
logEventMessages - The new value for the LogEventMessages property for this object.public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.