public class TestMetricFilterRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
Constructor and Description |
---|
TestMetricFilterRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getFilterPattern()
A symbolic description of how CloudWatch Logs should interpret the data
in each log event.
|
java.util.List<java.lang.String> |
getLogEventMessages()
The log event messages to test.
|
int |
hashCode() |
void |
setFilterPattern(java.lang.String filterPattern)
A symbolic description of how CloudWatch Logs should interpret the data
in each log event.
|
void |
setLogEventMessages(java.util.Collection<java.lang.String> logEventMessages)
The log event messages to test.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TestMetricFilterRequest |
withFilterPattern(java.lang.String filterPattern)
A symbolic description of how CloudWatch Logs should interpret the data
in each log event.
|
TestMetricFilterRequest |
withLogEventMessages(java.util.Collection<java.lang.String> logEventMessages)
The log event messages to test.
|
TestMetricFilterRequest |
withLogEventMessages(java.lang.String... logEventMessages)
The log event messages to test.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getFilterPattern()
A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event may contain time stamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
Constraints:
Length: 0 - 1024
A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event may contain time stamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
public void setFilterPattern(java.lang.String filterPattern)
A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event may contain time stamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
Constraints:
Length: 0 - 1024
filterPattern
- A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event may contain time stamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
public TestMetricFilterRequest withFilterPattern(java.lang.String filterPattern)
A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event may contain time stamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1024
filterPattern
- A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event may contain time stamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
public java.util.List<java.lang.String> getLogEventMessages()
The log event messages to test.
The log event messages to test.
public void setLogEventMessages(java.util.Collection<java.lang.String> logEventMessages)
The log event messages to test.
logEventMessages
- The log event messages to test.
public TestMetricFilterRequest withLogEventMessages(java.lang.String... logEventMessages)
The log event messages to test.
Returns a reference to this object so that method calls can be chained together.
logEventMessages
- The log event messages to test.
public TestMetricFilterRequest withLogEventMessages(java.util.Collection<java.lang.String> logEventMessages)
The log event messages to test.
Returns a reference to this object so that method calls can be chained together.
logEventMessages
- The log event messages to test.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.