Class MetricSet
- java.lang.Object
-
- com.yahoo.vespa.model.admin.monitoring.MetricSet
-
public class MetricSet extends Object
Models a metric set containing a set of metrics and child metric sets. This should be immutable.- Author:
- gjoranv
-
-
Constructor Summary
Constructors Constructor Description MetricSet(String id, Collection<Metric> metrics)
MetricSet(String id, Collection<Metric> metrics, Collection<MetricSet> children)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MetricSet
empty()
boolean
equals(Object o)
String
getId()
Map<String,Metric>
getMetrics()
Returns all metrics in this set, including all metrics in any contained metric sets.int
hashCode()
-
-
-
Constructor Detail
-
MetricSet
public MetricSet(String id, Collection<Metric> metrics)
-
MetricSet
public MetricSet(String id, Collection<Metric> metrics, Collection<MetricSet> children)
-
-
Method Detail
-
empty
public static MetricSet empty()
-
getId
public final String getId()
-
getMetrics
public final Map<String,Metric> getMetrics()
Returns all metrics in this set, including all metrics in any contained metric sets. Joins this set's metrics with its child sets into a named flat map of metrics. In the case of duplicate metrics, the metrics directly defined in this set takes precedence with respect to output name, description and dimension value (even if they are empty), while new dimensions from the children will be added.- Returns:
- all the metrics contained in this set
-
-