Class TextSample
- java.lang.Object
-
- org.hawkular.agent.prometheus.types.Metric
-
- org.hawkular.agent.prometheus.text.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
-
Constructor Summary
Constructors Constructor Description TextSample(TextSample.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLine()
This is the line of text in the text data where this sample came from.String
getValue()
void
visit(MetricVisitor visitor)
-
-
-
Constructor Detail
-
TextSample
public TextSample(TextSample.Builder builder)
-
-
Method Detail
-
getValue
public String getValue()
-
getLine
public 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
-
visit
public void visit(MetricVisitor visitor)
-
-