@OpenApi
public class MetricsSuite
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
MetricsSuite()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addMetric(Metric metric)
Add a metric to the metrics container.
|
java.lang.String |
getDescription() |
java.lang.String |
getId()
Return id
|
Metric |
getMetricByID(java.lang.String id)
Return the metric with the given Id
|
java.lang.String |
getName()
Getter for MetricsSuite's name.
|
java.util.Collection |
getSelectedMetrics()
Return the list of selected metrics
|
boolean |
isSelected(Metric metric)
Check if the metric is selected for this metric suite
|
void |
removeMetric(Metric metric)
Remove the metric
|
void |
removeMetric(java.lang.String id)
Remove the metric with the given ID
|
void |
selectAllMetrics()
Select all metrics.
|
void |
selectMetric(Metric metric)
Select the given metric.
|
void |
selectMetric(java.lang.String id)
Select the metric with the given ID
|
void |
setDescription(java.lang.String description) |
void |
setName(java.lang.String name)
Setter for MetricsSuite's name
|
void |
unselectAllMetrics()
Unselect all metrics.
|
void |
unselectMetric(Metric metric)
Unselect the given metric.
|
void |
unselectMetric(java.lang.String id)
Unselect the metric with the given ID
|
void |
update(MetricsSuite sourceMetricsSuite,
boolean updateName)
Update metrics suite data.
|
@OpenApi public boolean isSelected(Metric metric)
metric
- The given metric.@OpenApi public void selectMetric(Metric metric)
metric
- The given Metric@OpenApi public void unselectMetric(Metric metric)
metric
- The given metric@OpenApi public void selectMetric(java.lang.String id)
id
- The metric 's id.@OpenApi public void unselectMetric(java.lang.String id)
id
- The metric 's id.@OpenApi public void addMetric(Metric metric)
metric
- Metric@OpenApi public void removeMetric(java.lang.String id)
id
- The metric 's id.@OpenApi public void removeMetric(Metric metric)
metric
- The given metric.@OpenApi public java.lang.String getDescription()
@OpenApi public void setDescription(java.lang.String description)
description
- The description to set.@OpenApi public java.lang.String getName()
@OpenApi public void setName(java.lang.String name)
name
- The name to set.@OpenApi public void update(MetricsSuite sourceMetricsSuite, boolean updateName)
sourceMetricsSuite
- updateName
- indicate if name should be updated@OpenApi public Metric getMetricByID(java.lang.String id)
id
- The metric 's id.@OpenApi public void selectAllMetrics()
@OpenApi public void unselectAllMetrics()
@OpenApi public java.util.Collection getSelectedMetrics()
@OpenApi public java.lang.String getId()