public class MetricToRetain extends Object implements Serializable
The metric you want to retain. Dimensions are optional.
| Constructor and Description |
|---|
MetricToRetain() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getMetric()
What is measured by the behavior.
|
MetricDimension |
getMetricDimension()
The dimension of a metric.
|
int |
hashCode() |
void |
setMetric(String metric)
What is measured by the behavior.
|
void |
setMetricDimension(MetricDimension metricDimension)
The dimension of a metric.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MetricToRetain |
withMetric(String metric)
What is measured by the behavior.
|
MetricToRetain |
withMetricDimension(MetricDimension metricDimension)
The dimension of a metric.
|
public String getMetric()
What is measured by the behavior.
What is measured by the behavior.
public void setMetric(String metric)
What is measured by the behavior.
metric - What is measured by the behavior.
public MetricToRetain withMetric(String metric)
What is measured by the behavior.
Returns a reference to this object so that method calls can be chained together.
metric - What is measured by the behavior.
public MetricDimension getMetricDimension()
The dimension of a metric.
The dimension of a metric.
public void setMetricDimension(MetricDimension metricDimension)
The dimension of a metric.
metricDimension - The dimension of a metric.
public MetricToRetain withMetricDimension(MetricDimension metricDimension)
The dimension of a metric.
Returns a reference to this object so that method calls can be chained together.
metricDimension - The dimension of a metric.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.