public class MetricTransformation extends Object implements Serializable, Cloneable
| Constructor and Description |
|---|
MetricTransformation() |
| Modifier and Type | Method and Description |
|---|---|
MetricTransformation |
clone() |
boolean |
equals(Object obj) |
Double |
getDefaultValue()
(Optional) A default value to emit when a filter pattern does not match a log event.
|
String |
getMetricName()
Name of the metric.
|
String |
getMetricNamespace()
Namespace to which the metric belongs.
|
String |
getMetricValue()
A string representing a value to publish to this metric when a filter pattern matches a log event.
|
int |
hashCode() |
void |
setDefaultValue(Double defaultValue)
(Optional) A default value to emit when a filter pattern does not match a log event.
|
void |
setMetricName(String metricName)
Name of the metric.
|
void |
setMetricNamespace(String metricNamespace)
Namespace to which the metric belongs.
|
void |
setMetricValue(String metricValue)
A string representing a value to publish to this metric when a filter pattern matches a log event.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
MetricTransformation |
withDefaultValue(Double defaultValue)
(Optional) A default value to emit when a filter pattern does not match a log event.
|
MetricTransformation |
withMetricName(String metricName)
Name of the metric.
|
MetricTransformation |
withMetricNamespace(String metricNamespace)
Namespace to which the metric belongs.
|
MetricTransformation |
withMetricValue(String metricValue)
A string representing a value to publish to this metric when a filter pattern matches a log event.
|
public void setMetricName(String metricName)
Name of the metric.
metricName - Name of the metric.public String getMetricName()
Name of the metric.
public MetricTransformation withMetricName(String metricName)
Name of the metric.
metricName - Name of the metric.public void setMetricNamespace(String metricNamespace)
Namespace to which the metric belongs.
metricNamespace - Namespace to which the metric belongs.public String getMetricNamespace()
Namespace to which the metric belongs.
public MetricTransformation withMetricNamespace(String metricNamespace)
Namespace to which the metric belongs.
metricNamespace - Namespace to which the metric belongs.public void setMetricValue(String metricValue)
A string representing a value to publish to this metric when a filter pattern matches a log event.
metricValue - A string representing a value to publish to this metric when a filter pattern matches a log event.public String getMetricValue()
A string representing a value to publish to this metric when a filter pattern matches a log event.
public MetricTransformation withMetricValue(String metricValue)
A string representing a value to publish to this metric when a filter pattern matches a log event.
metricValue - A string representing a value to publish to this metric when a filter pattern matches a log event.public void setDefaultValue(Double defaultValue)
(Optional) A default value to emit when a filter pattern does not match a log event. Can be null.
defaultValue - (Optional) A default value to emit when a filter pattern does not match a log event. Can be null.public Double getDefaultValue()
(Optional) A default value to emit when a filter pattern does not match a log event. Can be null.
public MetricTransformation withDefaultValue(Double defaultValue)
(Optional) A default value to emit when a filter pattern does not match a log event. Can be null.
defaultValue - (Optional) A default value to emit when a filter pattern does not match a log event. Can be null.public String toString()
toString in class ObjectObject.toString()public MetricTransformation clone()
Copyright © 2016. All rights reserved.