public class PutMetricFilterRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
The maximum number of metric filters that can be associated with a log group is 100.
Constructor and Description |
---|
PutMetricFilterRequest()
Default constructor for PutMetricFilterRequest object.
|
PutMetricFilterRequest(java.lang.String logGroupName,
java.lang.String filterName,
java.lang.String filterPattern,
java.util.List<MetricTransformation> metricTransformations)
Constructs a new PutMetricFilterRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getFilterName()
A name for the metric filter.
|
java.lang.String |
getFilterPattern()
A filter pattern for extracting metric data out of ingested log events.
|
java.lang.String |
getLogGroupName()
The name of the log group.
|
java.util.List<MetricTransformation> |
getMetricTransformations()
A collection of information that defines how metric data gets emitted.
|
int |
hashCode() |
void |
setFilterName(java.lang.String filterName)
A name for the metric filter.
|
void |
setFilterPattern(java.lang.String filterPattern)
A filter pattern for extracting metric data out of ingested log events.
|
void |
setLogGroupName(java.lang.String logGroupName)
The name of the log group.
|
void |
setMetricTransformations(java.util.Collection<MetricTransformation> metricTransformations)
A collection of information that defines how metric data gets emitted.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutMetricFilterRequest |
withFilterName(java.lang.String filterName)
A name for the metric filter.
|
PutMetricFilterRequest |
withFilterPattern(java.lang.String filterPattern)
A filter pattern for extracting metric data out of ingested log events.
|
PutMetricFilterRequest |
withLogGroupName(java.lang.String logGroupName)
The name of the log group.
|
PutMetricFilterRequest |
withMetricTransformations(java.util.Collection<MetricTransformation> metricTransformations)
A collection of information that defines how metric data gets emitted.
|
PutMetricFilterRequest |
withMetricTransformations(MetricTransformation... metricTransformations)
A collection of information that defines how metric data gets emitted.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public PutMetricFilterRequest()
public PutMetricFilterRequest(java.lang.String logGroupName, java.lang.String filterName, java.lang.String filterPattern, java.util.List<MetricTransformation> metricTransformations)
logGroupName
- The name of the log group.
filterName
- A name for the metric filter.
filterPattern
- A filter pattern for extracting metric data out of ingested log events.
metricTransformations
- A collection of information that defines how metric data gets emitted.
public java.lang.String getLogGroupName()
The name of the log group.
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
The name of the log group.
public void setLogGroupName(java.lang.String logGroupName)
The name of the log group.
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
logGroupName
- The name of the log group.
public PutMetricFilterRequest withLogGroupName(java.lang.String logGroupName)
The name of the log group.
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 name of the log group.
public java.lang.String getFilterName()
A name for the metric filter.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
A name for the metric filter.
public void setFilterName(java.lang.String filterName)
A name for the metric filter.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
filterName
- A name for the metric filter.
public PutMetricFilterRequest withFilterName(java.lang.String filterName)
A name for the metric filter.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: [^:*]*
filterName
- A name for the metric filter.
public java.lang.String getFilterPattern()
A filter pattern for extracting metric data out of ingested log events.
Constraints:
Length: 0 - 1024
A filter pattern for extracting metric data out of ingested log events.
public void setFilterPattern(java.lang.String filterPattern)
A filter pattern for extracting metric data out of ingested log events.
Constraints:
Length: 0 - 1024
filterPattern
- A filter pattern for extracting metric data out of ingested log events.
public PutMetricFilterRequest withFilterPattern(java.lang.String filterPattern)
A filter pattern for extracting metric data out of ingested log events.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 1024
filterPattern
- A filter pattern for extracting metric data out of ingested log events.
public java.util.List<MetricTransformation> getMetricTransformations()
A collection of information that defines how metric data gets emitted.
A collection of information that defines how metric data gets emitted.
public void setMetricTransformations(java.util.Collection<MetricTransformation> metricTransformations)
A collection of information that defines how metric data gets emitted.
metricTransformations
- A collection of information that defines how metric data gets emitted.
public PutMetricFilterRequest withMetricTransformations(MetricTransformation... metricTransformations)
A collection of information that defines how metric data gets emitted.
Returns a reference to this object so that method calls can be chained together.
metricTransformations
- A collection of information that defines how metric data gets emitted.
public PutMetricFilterRequest withMetricTransformations(java.util.Collection<MetricTransformation> metricTransformations)
A collection of information that defines how metric data gets emitted.
Returns a reference to this object so that method calls can be chained together.
metricTransformations
- A collection of information that defines how metric data gets emitted.
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.