public class MetricV2
extends java.lang.Object
implements java.io.Serializable
Contains information about the metric.
| Constructor and Description |
|---|
MetricV2() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<MetricFilterV2> |
getMetricFilters()
Contains the filters to be used when returning data.
|
java.lang.String |
getName()
The name of the metric.
|
java.util.List<ThresholdV2> |
getThreshold()
Contains information about the threshold for service level metrics.
|
int |
hashCode() |
void |
setMetricFilters(java.util.Collection<MetricFilterV2> metricFilters)
Contains the filters to be used when returning data.
|
void |
setName(java.lang.String name)
The name of the metric.
|
void |
setThreshold(java.util.Collection<ThresholdV2> threshold)
Contains information about the threshold for service level metrics.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MetricV2 |
withMetricFilters(java.util.Collection<MetricFilterV2> metricFilters)
Contains the filters to be used when returning data.
|
MetricV2 |
withMetricFilters(MetricFilterV2... metricFilters)
Contains the filters to be used when returning data.
|
MetricV2 |
withName(java.lang.String name)
The name of the metric.
|
MetricV2 |
withThreshold(java.util.Collection<ThresholdV2> threshold)
Contains information about the threshold for service level metrics.
|
MetricV2 |
withThreshold(ThresholdV2... threshold)
Contains information about the threshold for service level metrics.
|
public java.lang.String getName()
The name of the metric.
This parameter is required. The following Required = No is incorrect.
The name of the metric.
This parameter is required. The following Required = No is incorrect.
public void setName(java.lang.String name)
The name of the metric.
This parameter is required. The following Required = No is incorrect.
name - The name of the metric.
This parameter is required. The following Required = No is incorrect.
public MetricV2 withName(java.lang.String name)
The name of the metric.
This parameter is required. The following Required = No is incorrect.
Returns a reference to this object so that method calls can be chained together.
name - The name of the metric.
This parameter is required. The following Required = No is incorrect.
public java.util.List<ThresholdV2> getThreshold()
Contains information about the threshold for service level metrics.
Contains information about the threshold for service level metrics.
public void setThreshold(java.util.Collection<ThresholdV2> threshold)
Contains information about the threshold for service level metrics.
threshold - Contains information about the threshold for service level metrics.
public MetricV2 withThreshold(ThresholdV2... threshold)
Contains information about the threshold for service level metrics.
Returns a reference to this object so that method calls can be chained together.
threshold - Contains information about the threshold for service level metrics.
public MetricV2 withThreshold(java.util.Collection<ThresholdV2> threshold)
Contains information about the threshold for service level metrics.
Returns a reference to this object so that method calls can be chained together.
threshold - Contains information about the threshold for service level metrics.
public java.util.List<MetricFilterV2> getMetricFilters()
Contains the filters to be used when returning data.
Contains the filters to be used when returning data.
public void setMetricFilters(java.util.Collection<MetricFilterV2> metricFilters)
Contains the filters to be used when returning data.
metricFilters - Contains the filters to be used when returning data.
public MetricV2 withMetricFilters(MetricFilterV2... metricFilters)
Contains the filters to be used when returning data.
Returns a reference to this object so that method calls can be chained together.
metricFilters - Contains the filters to be used when returning data.
public MetricV2 withMetricFilters(java.util.Collection<MetricFilterV2> metricFilters)
Contains the filters to be used when returning data.
Returns a reference to this object so that method calls can be chained together.
metricFilters - Contains the filters to be used when returning data.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object