Package com.dynatrace.metric.util
Interface MetricLineBuilder.GaugeStep
-
- Enclosing interface:
- MetricLineBuilder
public static interface MetricLineBuilder.GaugeStep
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MetricLineBuilder.MetadataStepmetadata()Creates aMetadataLineBuilderwith the metric key and type pre-filled.MetricLineBuilder.TimestampOrBuildStepsummary(double min, double max, double sum, long count)Sets the summary value of a gauge data point.MetricLineBuilder.TimestampOrBuildStepvalue(double value)Sets the gauge value.
-
-
-
Method Detail
-
summary
MetricLineBuilder.TimestampOrBuildStep summary(double min, double max, double sum, long count) throws MetricException
Sets the summary value of a gauge data point. It summarizes multiple values e.g., values: [1,1,1,1,2,3] - min: 1, max: 3, sum: 9, count: 6.- Parameters:
min- The min value.max- The max value.sum- The sum of values.count- The number of observations.- Returns:
- A
MetricLineBuilder.TimestampOrBuildStepthat can be used to set the timestamp or build the metric line. - Throws:
MetricException- if any of the stat counter values constraints are violated.
-
value
MetricLineBuilder.TimestampOrBuildStep value(double value) throws MetricException
Sets the gauge value.- Parameters:
value- The gauge value.- Returns:
- A
MetricLineBuilder.TimestampOrBuildStepthat can be used to set the timestamp or build the metric line. - Throws:
MetricException- if the gauge value is NaN or +/- infinity.
-
metadata
MetricLineBuilder.MetadataStep metadata()
Creates aMetadataLineBuilderwith the metric key and type pre-filled.- Returns:
- A
MetricLineBuilder.MetadataStepobject to further configure and serialize a metadata line.
-
-