Class 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 value
      java.util.Iterator<java.util.Map.Entry<java.lang.String,​MetricValue>> iterator()
      Returns all metrics in this
      MetricSet partialClone()
      Create and return a MetricSet which carries over the last values set for gauges in the this MetricSet.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • 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 interface java.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.