Class TextSample


  • public class TextSample
    extends Metric
    This represents a sample as found in the text data. This may or may not represent a full metric. In the case of a counter or gauge, it will represent the full metric. In the case of a summary or histogram, this only represents one quantile or one bucket in a full summary or histogram metric. For those two cases, additional processing needs to be made to combine multiple TextMetric objects into a single SummaryMetric or HistogramMetric.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  TextSample.Builder  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getLine()
      This is the line of text in the text data where this sample came from.
      java.lang.String getValue()  
      void visit​(MetricVisitor visitor)  
      • Methods inherited from class java.lang.Object

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

      • getValue

        public java.lang.String getValue()
      • getLine

        public java.lang.String getLine()
        This is the line of text in the text data where this sample came from. This can be used for debugging purposes so you know what the sample looked like before being parsed.
        Returns:
        the sample text line