Class Metric


  • public class Metric
    extends java.lang.Object
    Metric object to provide a simple monotonically increasing counter metric
    • Constructor Summary

      Constructors 
      Constructor Description
      Metric()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Metric addTag​(java.lang.String key, java.lang.String value)  
      Metric addTags​(java.util.Map<java.lang.String,​java.lang.String> tags)  
      java.lang.String metricName()
      Generate a fully tagged metric name for this metric
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Metric

        public Metric()
    • Method Detail

      • metricName

        public java.lang.String metricName()
        Generate a fully tagged metric name for this metric
        Returns:
        String for fully tagged metric name
      • addTags

        public Metric addTags​(java.util.Map<java.lang.String,​java.lang.String> tags)
      • addTag

        public Metric addTag​(java.lang.String key,
                             java.lang.String value)