Package com.yahoo.container.jdisc.state
Class MetricSet
- java.lang.Object
-
- com.yahoo.container.jdisc.state.MetricSet
-
- All Implemented Interfaces:
java.lang.Iterable<java.util.Map.Entry<java.lang.String,MetricValue>>
public final class MetricSet extends java.lang.Object implements java.lang.Iterable<java.util.Map.Entry<java.lang.String,MetricValue>>
A set of metrics.- Author:
- Simon Thoresen Hult
-
-
Constructor Summary
Constructors Constructor Description MetricSet(java.util.Map<java.lang.String,MetricValue> data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetricValue
get(java.lang.String key)
Returns a metric valuejava.util.Iterator<java.util.Map.Entry<java.lang.String,MetricValue>>
iterator()
Returns all metrics in thisMetricSet
partialClone()
Create and return a MetricSet which carries over the last values set for gauges in the this MetricSet.
-
-
-
Constructor Detail
-
MetricSet
public MetricSet(java.util.Map<java.lang.String,MetricValue> data)
-
-
Method Detail
-
iterator
public java.util.Iterator<java.util.Map.Entry<java.lang.String,MetricValue>> iterator()
Returns all metrics in this- Specified by:
iterator
in interfacejava.lang.Iterable<java.util.Map.Entry<java.lang.String,MetricValue>>
-
get
public MetricValue get(java.lang.String key)
Returns a metric value
-
partialClone
public MetricSet partialClone()
Create and return a MetricSet which carries over the last values set for gauges in the this MetricSet. Aggregate metrics are currently not carried over and will not be present in the returned set.
-
-