public class MetricTransformation extends Object implements Serializable, Cloneable
| Constructor and Description |
|---|
MetricTransformation() |
| Modifier and Type | Method and Description |
|---|---|
MetricTransformation |
clone() |
boolean |
equals(Object obj) |
String |
getMetricName()
The name of the CloudWatch metric to which the monitored log
information should be published.
|
String |
getMetricNamespace()
The destination namespace of the new CloudWatch metric.
|
String |
getMetricValue()
What to publish to the metric.
|
int |
hashCode() |
void |
setMetricName(String metricName)
The name of the CloudWatch metric to which the monitored log
information should be published.
|
void |
setMetricNamespace(String metricNamespace)
The destination namespace of the new CloudWatch metric.
|
void |
setMetricValue(String metricValue)
What to publish to the metric.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MetricTransformation |
withMetricName(String metricName)
The name of the CloudWatch metric to which the monitored log
information should be published.
|
MetricTransformation |
withMetricNamespace(String metricNamespace)
The destination namespace of the new CloudWatch metric.
|
MetricTransformation |
withMetricValue(String metricValue)
What to publish to the metric.
|
public String getMetricName()
Constraints:
Length: 0 - 255
Pattern: [^:*$]*
public void setMetricName(String metricName)
Constraints:
Length: 0 - 255
Pattern: [^:*$]*
metricName - The name of the CloudWatch metric to which the monitored log
information should be published. For example, you may publish to a
metric called ErrorCount.public MetricTransformation withMetricName(String metricName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 255
Pattern: [^:*$]*
metricName - The name of the CloudWatch metric to which the monitored log
information should be published. For example, you may publish to a
metric called ErrorCount.public String getMetricNamespace()
Constraints:
Length: 0 - 255
Pattern: [^:*$]*
public void setMetricNamespace(String metricNamespace)
Constraints:
Length: 0 - 255
Pattern: [^:*$]*
metricNamespace - The destination namespace of the new CloudWatch metric.public MetricTransformation withMetricNamespace(String metricNamespace)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 255
Pattern: [^:*$]*
metricNamespace - The destination namespace of the new CloudWatch metric.public String getMetricValue()
Constraints:
Length: 0 - 100
public void setMetricValue(String metricValue)
Constraints:
Length: 0 - 100
metricValue - What to publish to the metric. For example, if you're counting the
occurrences of a particular term like "Error", the value will be "1"
for each occurrence. If you're counting the bytes transferred the
published value will be the value in the log event.public MetricTransformation withMetricValue(String metricValue)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 100
metricValue - What to publish to the metric. For example, if you're counting the
occurrences of a particular term like "Error", the value will be "1"
for each occurrence. If you're counting the bytes transferred the
published value will be the value in the log event.public String toString()
toString in class ObjectObject.toString()public MetricTransformation clone()
Copyright © 2015. All rights reserved.