Package com.wavefront.agent.preprocessor
Class PreprocessorUtil
- java.lang.Object
-
- com.wavefront.agent.preprocessor.PreprocessorUtil
-
public abstract class PreprocessorUtil extends Object
Utility class for methods used by preprocessors.- Author:
- [email protected]
-
-
Constructor Summary
Constructors Constructor Description PreprocessorUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
expandPlaceholders(String input, wavefront.report.ReportPoint reportPoint)
Substitute {{...}} placeholders with corresponding components of the point {{metricName}} {{sourceName}} are replaced with the metric name and source respectively {{anyTagK}} is replaced with the value of the anyTagK point tagstatic String
expandPlaceholders(String input, wavefront.report.Span span)
Substitute {{...}} placeholders with corresponding components of a Span {{spanName}} {{sourceName}} are replaced with the span name and source respectively {{anyKey}} is replaced with the value of an annotation with anyKey key
-
-
-
Method Detail
-
expandPlaceholders
public static String expandPlaceholders(String input, @Nonnull wavefront.report.ReportPoint reportPoint)
Substitute {{...}} placeholders with corresponding components of the point {{metricName}} {{sourceName}} are replaced with the metric name and source respectively {{anyTagK}} is replaced with the value of the anyTagK point tag- Parameters:
input
- input string with {{...}} placeholdersreportPoint
- ReportPoint object to extract components from- Returns:
- string with substituted placeholders
-
expandPlaceholders
public static String expandPlaceholders(String input, @Nonnull wavefront.report.Span span)
Substitute {{...}} placeholders with corresponding components of a Span {{spanName}} {{sourceName}} are replaced with the span name and source respectively {{anyKey}} is replaced with the value of an annotation with anyKey key- Parameters:
input
- input string with {{...}} placeholdersspan
- Span object to extract components from- Returns:
- string with substituted placeholders
-
-